1 files modified
2 files added
| | |
| | | end, |
| | | on_put = function(inv, listname, index, stack, player) |
| | | inv:set_stack(listname, index, nil) |
| | | local player_name=player:get_player_name() |
| | | minetest.sound_play("trash", {to_player=player_name, gain = 1.0}) |
| | | end, |
| | | }) |
| | | unified_inventory.trash:set_size("main", 1) |
| | |
| | | local inventory = {} |
| | | player:get_inventory():set_list("main", inventory) |
| | | minetest.chat_send_player(player_name, 'Inventory Cleared!') |
| | | minetest.sound_play("trash_all", {to_player=player_name, gain = 1.0}) |
| | | end |
| | | |
| | | -- Inventory page controls |