mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-25 16:45:03 -04:00
bones: bones are now holding 150 item slots and register_transfer_inventory_to_bones_on_player_death callback
This commit is contained in:
parent
0351c66915
commit
7ce365f4e4
2 changed files with 111 additions and 57 deletions
10
game_api.txt
10
game_api.txt
|
@ -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
|
||||
------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue