forked from mtcontrib/minetest_returnmirror
Disable repair recipe
This commit is contained in:
parent
0b05efa1db
commit
b415088b74
2
init.lua
2
init.lua
|
@ -97,6 +97,7 @@ minetest.register_tool("returnmirror:mirror_inactive", {
|
|||
inventory_image = "returnmirror_mirror_inactive.png",
|
||||
wield_image = "returnmirror_mirror_inactive.png",
|
||||
tool_capabilities = {},
|
||||
groups = { disable_repair = 1 },
|
||||
range = 2,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
minetest.sound_play( {name="returnmirror_fail", gain=1}, {pos=user:getpos(), max_hear_distance=18})
|
||||
|
@ -112,6 +113,7 @@ minetest.register_tool("returnmirror:mirror_active", {
|
|||
inventory_image = "returnmirror_mirror_active.png",
|
||||
wield_image = "returnmirror_mirror_active.png",
|
||||
tool_capabilities = {},
|
||||
groups = { disable_repair = 1 },
|
||||
range = 2,
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
local dest_string = itemstack:get_metadata()
|
||||
|
|
Loading…
Reference in New Issue
Block a user