Add warning message to tools

This commit is contained in:
shivajiva101
2018-05-13 19:21:50 +01:00
committed by GitHub
parent 10ef724e0e
commit cbeec92135

View File

@ -29,6 +29,7 @@ minetest.register_tool("maptools:pick_admin", {
damage_groups = {fleshy = 1000}, damage_groups = {fleshy = 1000},
}, },
on_drop = function(itemstack, dropper, pos) on_drop = function(itemstack, dropper, pos)
maptools.msg(dropper)
return return
end, end,
}) })
@ -53,6 +54,7 @@ minetest.register_tool("maptools:pick_admin_with_drops", {
damage_groups = {fleshy = 1000}, damage_groups = {fleshy = 1000},
}, },
on_drop = function(itemstack, dropper, pos) on_drop = function(itemstack, dropper, pos)
maptools.msg(dropper)
return return
end, end,
}) })