Fix immediate digging times for some nodes

Wuzzy 2017-02-08 01:20:14 +01:00
parent 6028be2076
commit 307832e101
7 changed files with 14 additions and 14 deletions

@ -99,7 +99,7 @@ minetest.register_node("itemframes:frame",{
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, 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(), sounds = mcl_core.node_sound_defaults(),
after_place_node = function(pos, placer, itemstack) after_place_node = function(pos, placer, itemstack)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)

@ -1021,7 +1021,7 @@ minetest.register_node("mcl_core:slimeblock", {
stack_max = 64, 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 -- 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. -- 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", { 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}, fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
}, },
stack_max = 64, 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", { minetest.register_node("mcl_core:ladder", {

@ -14,7 +14,7 @@ minetest.register_node("mcl_minecarts:golden_rail", {
-- but how to specify the dimensions for curved and sideways rails? -- 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}, 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) after_place_node = function(pos, placer, itemstack)
if not mesecon then if not mesecon then

@ -36,7 +36,7 @@ minetest.register_node("mesecons_button:button_stone_off", {
type = "fixed", type = "fixed",
fixed = boxes_off -- the button itself 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", description = "Stone Button",
on_rightclick = function (pos, node) on_rightclick = function (pos, node)
mesecon:swap_node(pos, "mesecons_button:button_stone_on") mesecon:swap_node(pos, "mesecons_button:button_stone_on")
@ -67,7 +67,7 @@ minetest.register_node("mesecons_button:button_stone_on", {
type = "fixed", type = "fixed",
fixed = boxes_on -- the button itself 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', drop = 'mesecons_button:button_stone_off',
description = "Stone Button", description = "Stone Button",
sounds = mcl_core.node_sound_stone_defaults(), sounds = mcl_core.node_sound_stone_defaults(),
@ -93,7 +93,7 @@ minetest.register_node("mesecons_button:button_wood_off", {
type = "fixed", type = "fixed",
fixed = boxes_off -- the button itself 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", description = "Wooden Button",
on_rightclick = function (pos, node) on_rightclick = function (pos, node)
mesecon:swap_node(pos, "mesecons_button:button_wood_on") mesecon:swap_node(pos, "mesecons_button:button_wood_on")
@ -124,7 +124,7 @@ minetest.register_node("mesecons_button:button_wood_on", {
type = "fixed", type = "fixed",
fixed = boxes_on -- the button itself 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', drop = 'mesecons_button:button_wood_off',
description = "Wooden Button", description = "Wooden Button",
sounds = mcl_core.node_sound_wood_defaults(), sounds = mcl_core.node_sound_wood_defaults(),

@ -46,9 +46,9 @@ end
for i = 1, 4 do for i = 1, 4 do
local groups = {} local groups = {}
if i == 1 then 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 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 end
local delaytime local delaytime
@ -161,7 +161,7 @@ minetest.register_node("mesecons_delayer:delayer_on_"..tostring(i), {
type = "fixed", type = "fixed",
fixed = boxes 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", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,

@ -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 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. { -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, is_ground_content = false,
description="Lever", description="Lever",
on_rightclick = function (pos, node) 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 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. { -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, is_ground_content = false,
drop = '"mesecons_walllever:wall_lever_off" 1', drop = '"mesecons_walllever:wall_lever_off" 1',
description="Lever", description="Lever",

@ -137,7 +137,7 @@ local signs_yard = {
{delta = {x = 0.05, y = 0, z = 0}, yaw = math.pi / 2}, {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 construct_sign = function(pos)
local meta = minetest.get_meta(pos) local meta = minetest.get_meta(pos)