From 307832e10143e8854e57834b99b837f0fa8a8531 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 8 Feb 2017 01:20:14 +0100 Subject: [PATCH] Fix immediate digging times for some nodes --- mods/itemframes/init.lua | 2 +- mods/mcl_core/nodes.lua | 4 ++-- mods/mcl_minecarts/rails.lua | 2 +- mods/redstone/mesecons_button/init.lua | 8 ++++---- mods/redstone/mesecons_delayer/init.lua | 6 +++--- mods/redstone/mesecons_walllever/init.lua | 4 ++-- mods/signs/init.lua | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/mods/itemframes/init.lua b/mods/itemframes/init.lua index 3bc04b25..55b28af1 100644 --- a/mods/itemframes/init.lua +++ b/mods/itemframes/init.lua @@ -99,7 +99,7 @@ minetest.register_node("itemframes:frame",{ paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, - groups = { choppy=2,dig_immediate=2,deco_block=1}, + groups = { dig_immediate=3,deco_block=1}, sounds = mcl_core.node_sound_defaults(), after_place_node = function(pos, placer, itemstack) local meta = minetest.get_meta(pos) diff --git a/mods/mcl_core/nodes.lua b/mods/mcl_core/nodes.lua index d4c92ff6..405b2fd3 100644 --- a/mods/mcl_core/nodes.lua +++ b/mods/mcl_core/nodes.lua @@ -1021,7 +1021,7 @@ minetest.register_node("mcl_core:slimeblock", { stack_max = 64, -- According to Minecraft Wiki, bouncing off a slime block from a height off 255 blocks should result in a bounce height of 50 blocks -- bouncy=44 makes the player bounce up to 49.6. This value was chosen by experiment. - groups = {oddly_breakable_by_hand=3,dig_immediate=2,bouncy=44,fall_damage_add_percent=-100,deco_block=1}, + groups = {oddly_breakable_by_hand=3,bouncy=44,fall_damage_add_percent=-100,deco_block=1}, }) minetest.register_node("mcl_core:glass", { @@ -1070,7 +1070,7 @@ minetest.register_node("mcl_core:rail", { fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, }, stack_max = 64, - groups = {dig_immediate=2,attached_node=1,rail=1,connect_to_raillike=1,dig_by_water=1,transport=1}, + groups = {cracky=3,oddly_breakable_by_hand=3,attached_node=1,rail=1,connect_to_raillike=1,dig_by_water=1,transport=1}, }) minetest.register_node("mcl_core:ladder", { diff --git a/mods/mcl_minecarts/rails.lua b/mods/mcl_minecarts/rails.lua index 85b98a4f..ca6e85cd 100644 --- a/mods/mcl_minecarts/rails.lua +++ b/mods/mcl_minecarts/rails.lua @@ -14,7 +14,7 @@ minetest.register_node("mcl_minecarts:golden_rail", { -- but how to specify the dimensions for curved and sideways rails? fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2}, }, - groups = {dig_immediate = 2, attached_node = 1, rail = 1, connect_to_raillike = 1, dig_by_water = 1, transport = 1}, + groups = {cracky = 3, oddly_breakable_by_hand = 3, attached_node = 1, rail = 1, connect_to_raillike = 1, dig_by_water = 1, transport = 1}, after_place_node = function(pos, placer, itemstack) if not mesecon then diff --git a/mods/redstone/mesecons_button/init.lua b/mods/redstone/mesecons_button/init.lua index 76cbd2cd..053ddb7f 100644 --- a/mods/redstone/mesecons_button/init.lua +++ b/mods/redstone/mesecons_button/init.lua @@ -36,7 +36,7 @@ minetest.register_node("mesecons_button:button_stone_off", { type = "fixed", fixed = boxes_off -- the button itself }, - groups = {dig_immediate=2, attached_node=1, dig_by_water=1}, + groups = {cracky=3, attached_node=1, dig_by_water=1}, description = "Stone Button", on_rightclick = function (pos, node) mesecon:swap_node(pos, "mesecons_button:button_stone_on") @@ -67,7 +67,7 @@ minetest.register_node("mesecons_button:button_stone_on", { type = "fixed", fixed = boxes_on -- the button itself }, - groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1}, + groups = {cracky=3, not_in_creative_inventory=1, attached_node=1, dig_by_water=1}, drop = 'mesecons_button:button_stone_off', description = "Stone Button", sounds = mcl_core.node_sound_stone_defaults(), @@ -93,7 +93,7 @@ minetest.register_node("mesecons_button:button_wood_off", { type = "fixed", fixed = boxes_off -- the button itself }, - groups = {dig_immediate=2, attached_node=1, dig_by_water=1}, + groups = {choppy=3, attached_node=1, dig_by_water=1}, description = "Wooden Button", on_rightclick = function (pos, node) mesecon:swap_node(pos, "mesecons_button:button_wood_on") @@ -124,7 +124,7 @@ minetest.register_node("mesecons_button:button_wood_on", { type = "fixed", fixed = boxes_on -- the button itself }, - groups = {dig_immediate=2, not_in_creative_inventory=1, attached_node=1, dig_by_water=1}, + groups = {choppy=3, not_in_creative_inventory=1, attached_node=1, dig_by_water=1}, drop = 'mesecons_button:button_wood_off', description = "Wooden Button", sounds = mcl_core.node_sound_wood_defaults(), diff --git a/mods/redstone/mesecons_delayer/init.lua b/mods/redstone/mesecons_delayer/init.lua index b518a7d1..fed0bdbb 100644 --- a/mods/redstone/mesecons_delayer/init.lua +++ b/mods/redstone/mesecons_delayer/init.lua @@ -46,9 +46,9 @@ end for i = 1, 4 do local groups = {} if i == 1 then - groups = {snappy=1,dig_immediate=2,dig_by_water=1} + groups = {snappy=1,dig_immediate=3,dig_by_water=1} else - groups = {snappy=1,dig_immediate=2,dig_by_water=1, not_in_creative_inventory=1} + groups = {snappy=1,dig_immediate=3,dig_by_water=1, not_in_creative_inventory=1} end local delaytime @@ -161,7 +161,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), { type = "fixed", fixed = boxes }, - groups = {snappy = 1, dig_immediate = 2, dig_by_water=1, not_in_creative_inventory = 1}, + groups = {snappy = 1, dig_immediate = 3, dig_by_water=1, not_in_creative_inventory = 1}, paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, diff --git a/mods/redstone/mesecons_walllever/init.lua b/mods/redstone/mesecons_walllever/init.lua index f632810d..9f8c979d 100644 --- a/mods/redstone/mesecons_walllever/init.lua +++ b/mods/redstone/mesecons_walllever/init.lua @@ -27,7 +27,7 @@ minetest.register_node("mesecons_walllever:wall_lever_off", { fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base { -1/16, -8/16, 7/16, 1/16, 0/16, 5/16 }} -- the lever itself. }, - groups = {dig_immediate=2, dig_by_water=1}, + groups = {oddly_breakable_by_hand=3, dig_by_water=1}, is_ground_content = false, description="Lever", on_rightclick = function (pos, node) @@ -66,7 +66,7 @@ minetest.register_node("mesecons_walllever:wall_lever_on", { fixed = {{ -2/16, -3/16, 8/16, 2/16, 3/16, 4/16 }, -- the base { -1/16, 0/16, 7/16, 1/16, 8/16, 5/16 }} -- the lever itself. }, - groups = {dig_immediate = 2, not_in_creative_inventory = 1, dig_by_water=1}, + groups = {oddly_breakable_by_hand=3, not_in_creative_inventory = 1, dig_by_water=1}, is_ground_content = false, drop = '"mesecons_walllever:wall_lever_off" 1', description="Lever", diff --git a/mods/signs/init.lua b/mods/signs/init.lua index fbc39ebd..2fba31d8 100644 --- a/mods/signs/init.lua +++ b/mods/signs/init.lua @@ -137,7 +137,7 @@ local signs_yard = { {delta = {x = 0.05, y = 0, z = 0}, yaw = math.pi / 2}, } -local sign_groups = {choppy=2, flammable=1, dig_immediate=2, deco_block=1} +local sign_groups = {choppy=2, flammable=1, deco_block=1} local construct_sign = function(pos) local meta = minetest.get_meta(pos)