Make slimeblock, melon/pumpkin stem dig immediate

This commit is contained in:
Wuzzy 2017-02-24 05:34:03 +01:00
parent d05fb0c15f
commit 6e3f7d06b5
4 changed files with 25 additions and 25 deletions

@ -46,9 +46,9 @@ end
for i = 1, 4 do
local groups = {}
if i == 1 then
groups = {snappy=1,dig_immediate=3,dig_by_water=1}
groups = {dig_immediate=3,dig_by_water=1}
else
groups = {snappy=1,dig_immediate=3,dig_by_water=1, not_in_creative_inventory=1}
groups = {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 = 3, dig_by_water=1, not_in_creative_inventory = 1},
groups = {dig_immediate = 3, dig_by_water=1, not_in_creative_inventory = 1},
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,

@ -542,7 +542,7 @@ minetest.register_node("mcl_core:sapling", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
stack_max = 64,
groups = {sapling=1,snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
groups = {sapling=1,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -610,7 +610,7 @@ minetest.register_node("mcl_core:darksapling", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
stack_max = 64,
groups = {sapling=1,snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
groups = {sapling=1,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -732,7 +732,7 @@ minetest.register_node("mcl_core:junglesapling", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
stack_max = 64,
groups = {sapling=1,snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
groups = {sapling=1,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -796,7 +796,7 @@ minetest.register_node("mcl_core:acaciasapling", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
stack_max = 64,
groups = {sapling=1,snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
groups = {sapling=1,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -865,7 +865,7 @@ minetest.register_node("mcl_core:sprucesapling", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
stack_max = 64,
groups = {sapling=1,snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
groups = {sapling=1,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -929,7 +929,7 @@ minetest.register_node("mcl_core:birchsapling", {
fixed = {-0.3, -0.5, -0.3, 0.3, 0.35, 0.3}
},
stack_max = 64,
groups = {sapling=1,snappy=2,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
groups = {sapling=1,dig_immediate=3,attached_node=1,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -1025,7 +1025,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,bouncy=44,fall_damage_add_percent=-100,deco_block=1},
groups = {dig_immediate=3,bouncy=44,fall_damage_add_percent=-100,deco_block=1},
_mcl_blast_resistance = 0,
})
@ -1419,7 +1419,7 @@ minetest.register_node("mcl_core:tallgrass", {
walkable = false,
buildable_to = true,
is_ground_content = true,
groups = {snappy=3,flammable=3,attached_node=1,dig_immediate=3,dig_by_water=1,deco_block=1},
groups = {flammable=3,attached_node=1,dig_immediate=3,dig_by_water=1,deco_block=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
after_dig_node = function(pos, oldnode, oldmetadata, user)
local item = user:get_wielded_item()

@ -73,7 +73,7 @@ minetest.register_node("mcl_farming:melontige_1", {
{-0.5, -0.5, -0.5, 0.5, -0.5+6/16, 0.5}
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -92,7 +92,7 @@ minetest.register_node("mcl_farming:melontige_2", {
{-0.5, -0.5, -0.5, 0.5, -0.5+9/16, 0.5}
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -105,7 +105,7 @@ minetest.register_node("mcl_farming:melontige_unconnect", {
drop = stemdrop,
drawtype = "plantlike",
tiles = {"farming_tige_end.png"},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -137,7 +137,7 @@ minetest.register_node("mcl_farming:melontige_linked_r", {
"farming_tige_connnect.png", -- back
"farming_tige_connnect.png^[transformFX90" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -169,7 +169,7 @@ minetest.register_node("mcl_farming:melontige_linked_l", {
"farming_tige_connnect.png^[transformFX90", -- back
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -201,7 +201,7 @@ minetest.register_node("mcl_farming:melontige_linked_t", {
"farming_tige_connnect.png", -- back
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -233,7 +233,7 @@ minetest.register_node("mcl_farming:melontige_linked_b", {
"farming_tige_connnect.png", -- back
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})

@ -43,7 +43,7 @@ minetest.register_node("mcl_farming:pumpkin_1", {
{-0.5, -0.5, -0.5, 0.5, -0.5+6/16, 0.5}
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -62,7 +62,7 @@ minetest.register_node("mcl_farming:pumpkin_2", {
{-0.5, -0.5, -0.5, 0.5, -0.5+9/16, 0.5}
},
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -107,7 +107,7 @@ minetest.register_node("mcl_farming:pumpkintige_unconnect", {
drop = stemdrop,
drawtype = "plantlike",
tiles = {"farming_tige_end.png"},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -140,7 +140,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_r", {
"farming_tige_connnect.png", -- back
"farming_tige_connnect.png^[transformFX90" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -172,7 +172,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_l", {
"farming_tige_connnect.png^[transformFX90", -- back
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -204,7 +204,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_t", {
"farming_tige_connnect.png", -- back
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})
@ -236,7 +236,7 @@ minetest.register_node("mcl_farming:pumpkintige_linked_b", {
"farming_tige_connnect.png", -- back
"farming_tige_connnect.png" --front
},
groups = {snappy=3, not_in_creative_inventory=1 ,dig_by_water=1},
groups = {dig_immediate=3, not_in_creative_inventory=1 ,dig_by_water=1},
sounds = mcl_sounds.node_sound_leaves_defaults(),
_mcl_blast_resistance = 0,
})