[Mod] Player Must Have Item [mod]
This is the musthave mod, the mod for game creators that want to insist that players be carrying certain items at all times.
Download at https://github.com/eidy/musthave/archive/master.zip
Specify some item types that the player must always have one of in their inventory. They can't drop it and if it's trashed it will just be re-created.
Could be used for a loadstone or similarly sticky magical item.
minetest.conf Parameters
musthave
If set, every player must have the items specified.
eg
musthave="default:dirt,default:stone"
(Because it's always handy to have some dirt and stone)
API
musthave.set(playername, itemlist)
Specifies a list of items a specific player must have.
(Note: This is not currently saved)
musthave.get(playername)
Returns a table of items (spec strings) the player must have
Licence: Apache 2.0
Github: https://github.com/eidy/musthave