minetest.register_chatcommand("clearinv", {player:get_inventory():set_list("main", {})ronan_patrick wrote:The command for clearing your entire inventory is "/clear".
In the command block, try "/clear @p"
ronan_patrick wrote:The command for clearing your entire inventory is "/clear".
In the command block, try "/clear @p"
core.register_chatcommand("pulverizeall", {
description = "Pulverize inventory",
func = function(name, param)
local player = core.get_player_by_name(name)
player:get_inventory():set_list("main", {})
return true, "An inventory was pulverized."
end,
})Users browsing this forum: Google [Bot] and 5 guests