2017-01-16 18:40:08 +02:00
2022-02-13 22:40:12 +02:00
local S = minetest.get_translator ( " mcl_mobs " )
2017-01-16 18:40:08 +02:00
-- name tag
2018-05-31 19:32:26 +03:00
minetest.register_craftitem ( " mcl_mobs:nametag " , {
2017-01-17 00:58:09 +02:00
description = S ( " Name Tag " ) ,
2020-02-19 05:54:17 +02:00
_tt_help = S ( " Give names to mobs " ) .. " \n " .. S ( " Set name at anvil " ) ,
2018-05-30 12:34:17 +03:00
_doc_items_longdesc = S ( " A name tag is an item to name a mob. " ) ,
2019-03-16 03:38:36 +02:00
_doc_items_usagehelp = S ( " Before you use the name tag, you need to set a name at an anvil. Then you can use the name tag to name a mob. This uses up the name tag. " ) ,
2017-01-16 18:40:08 +02:00
inventory_image = " mobs_nametag.png " ,
2017-01-20 05:54:09 +02:00
wield_image = " mobs_nametag.png " ,
stack_max = 64 ,
groups = { tool = 1 } ,
2017-01-16 18:40:08 +02:00
} )
2018-05-31 19:40:02 +03:00
minetest.register_alias ( " mobs:nametag " , " mcl_mobs:nametag " )