1
0
mirror of https://github.com/minetest/minetest_game.git synced 2025-07-10 18:10:22 +02:00

bones: bones are now holding 150 item slots and register_transfer_inventory_to_bones_on_player_death callback

This commit is contained in:
Imre Péntek
2023-05-05 07:31:06 +02:00
parent 316c0c7224
commit b0545dc5c2
2 changed files with 111 additions and 57 deletions

View File

@ -83,6 +83,16 @@ in `bones.player_inventory_lists`.
e.g. `table.insert(bones.player_inventory_lists, "backpack")`
Additionally, callbacks can be registered to transfer items into the bones on death:
`bones.public.register_transfer_inventory_to_bones_on_player_death(function(player){})`
In the above functions this routine should be used to add itmes to the bones inventory:
`bones.public.transfer_stack_to_bones(stack)`
please note that the inventory these items were taken from still need to be disposed of.
Creative API
------------