Disallow using the hammer against nodes
This commit is contained in:
parent
2dc1d7f429
commit
2a9ad8adcd
@ -219,7 +219,7 @@ for _, c in pairs(colors) do
|
|||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
groups = {dig_immediate=3, flammable=3},
|
groups = {dig_immediate=3, flammable=3},
|
||||||
selection_box = {type="wallmounted"},
|
selection_box = {type="wallmounted"},
|
||||||
on_rightclick = function(pos, node, clicker, itemstack)
|
on_rightclick = function(pos, node, _, _)
|
||||||
minetest.set_node(pos, {name="xdecor:curtain_open_"..c, param2=node.param2})
|
minetest.set_node(pos, {name="xdecor:curtain_open_"..c, param2=node.param2})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
@ -233,7 +233,7 @@ for _, c in pairs(colors) do
|
|||||||
groups = {dig_immediate=3, flammable=3, not_in_creative_inventory=1},
|
groups = {dig_immediate=3, flammable=3, not_in_creative_inventory=1},
|
||||||
selection_box = {type="wallmounted"},
|
selection_box = {type="wallmounted"},
|
||||||
drop = "xdecor:curtain_"..c,
|
drop = "xdecor:curtain_"..c,
|
||||||
on_rightclick = function(pos, node, clicker, itemstack)
|
on_rightclick = function(pos, node, _, _)
|
||||||
minetest.set_node(pos, {name="xdecor:curtain_"..c, param2=node.param2})
|
minetest.set_node(pos, {name="xdecor:curtain_"..c, param2=node.param2})
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
@ -374,7 +374,8 @@ minetest.register_tool("xdecor:flint_steel", {
|
|||||||
minetest.register_tool("xdecor:hammer", {
|
minetest.register_tool("xdecor:hammer", {
|
||||||
description = "Hammer",
|
description = "Hammer",
|
||||||
inventory_image = "xdecor_hammer.png",
|
inventory_image = "xdecor_hammer.png",
|
||||||
wield_image = "xdecor_hammer.png"
|
wield_image = "xdecor_hammer.png",
|
||||||
|
on_use = function(_,_,_) do return end end
|
||||||
})
|
})
|
||||||
|
|
||||||
xdecor.register("ivy", {
|
xdecor.register("ivy", {
|
||||||
|
Loading…
Reference in New Issue
Block a user