mirror of
https://github.com/minetest-mods/maptools.git
synced 2025-06-30 06:10:22 +02:00
Prevent tools & nodes from being dropped (#11)
Adds a function to message a player that they cannot drop tools/nodes registered by maptools
This commit is contained in:
5
init.lua
5
init.lua
@ -20,6 +20,11 @@ maptools.intllib = S
|
||||
|
||||
local modpath = minetest.get_modpath("maptools")
|
||||
|
||||
maptools.drop_msg = function(itemstack, player)
|
||||
local name = player:get_player_name()
|
||||
minetest.chat_send_player(name, S("[maptools] tools/nodes do not drop!"))
|
||||
end
|
||||
|
||||
dofile(modpath .. "/config.lua")
|
||||
dofile(modpath .. "/aliases.lua")
|
||||
dofile(modpath .. "/craftitems.lua")
|
||||
|
Reference in New Issue
Block a user