Disable repair recipe

This commit is contained in:
Wuzzy 2018-10-16 12:59:51 +02:00
parent 0b05efa1db
commit b415088b74

View File

@ -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()