2021-03-27 20:12:48 +01:00
|
|
|
# mcl_death_drop
|
|
|
|
Drop registered inventories on player death.
|
|
|
|
|
|
|
|
## mcl_death_drop.register_dropped_list(inv, listname, drop)
|
2021-03-27 23:07:46 +01:00
|
|
|
* inv: can be:
|
2021-03-27 23:39:22 +01:00
|
|
|
* "PLAYER": will be interpreted like player inventory (to avoid multiple calling to get_inventory())
|
|
|
|
* function(player): must return inventory
|
2021-03-27 20:12:48 +01:00
|
|
|
* listname: string
|
|
|
|
* drop: bool
|
2021-04-23 15:59:37 +02:00
|
|
|
* true: the list will be dropped
|
|
|
|
* false: the list will only be cleared
|
2021-03-27 20:12:48 +01:00
|
|
|
|
|
|
|
## mcl_death_drop.registered_dropped_lists
|
2021-03-27 23:07:46 +01:00
|
|
|
Table containing dropped list inventory, name and drop state.
|