Shears selfdrop dead bush, tall grass, fern, vine, leaves
This commit is contained in:
parent
627d103b20
commit
54fb702c8f
5 changed files with 21 additions and 19 deletions
|
@ -95,12 +95,7 @@ minetest.register_node("mcl_core:vine", {
|
|||
groups = {handy=1,axey=1,shearsy=1,swordy=1, flammable=2,deco_block=1,destroy_by_lava_flow=1,dig_by_piston=1},
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||
drop = "",
|
||||
after_dig_node = function(pos, oldnode, oldmetadata, user)
|
||||
local item = user:get_wielded_item()
|
||||
if item:get_name() == "mcl_tools:shears" then
|
||||
minetest.add_item(pos, oldnode.name)
|
||||
end
|
||||
end,
|
||||
_mcl_shears_drop = true,
|
||||
node_placement_prediction = "",
|
||||
-- Restrict placement of vines
|
||||
on_place = function(itemstack, placer, pointed_thing)
|
||||
|
|
|
@ -98,6 +98,7 @@ minetest.register_node("mcl_core:deadbush", {
|
|||
},
|
||||
}
|
||||
},
|
||||
_mcl_shears_drop = true,
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||
selection_box = {
|
||||
type = "fixed",
|
||||
|
@ -162,4 +163,4 @@ minetest.register_node("mcl_core:void", {
|
|||
-- Infinite blast resistance; it should never be destroyed by explosions
|
||||
_mcl_blast_resistance = -1,
|
||||
_mcl_hardness = -1,
|
||||
})
|
||||
})
|
||||
|
|
|
@ -72,6 +72,7 @@ local register_leaves = function(subname, description, longdesc, tiles, drop1, d
|
|||
stack_max = 64,
|
||||
groups = {handy=1,shearsy=1,swordy=1, leafdecay=4, flammable=2, leaves=1, deco_block=1, dig_by_piston=1},
|
||||
drop = drop,
|
||||
_mcl_shears_drop = true,
|
||||
sounds = mcl_sounds.node_sound_leaves_defaults(),
|
||||
_mcl_blast_resistance = 1,
|
||||
_mcl_hardness = 0.2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue