mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-02 14:31:05 +01:00
8 lines
418 B
Text
8 lines
418 B
Text
mcl_entity_invs
|
|
===============
|
|
|
|
Inventories for your entities. It's simple. Depend on mcl_entity_invs and register your entity like so:
|
|
|
|
* mcl_entity_invs.register_inv("entity:name","Title shown in formspec",inventory_size)
|
|
|
|
It works by setting up a detached inventory per entity which is accessed by an id/hash generated from the entities position at creation, the progressed gametime at creation and a random salt.
|