nomohakon wrote:None of the above, more like trash from creative, but in block.
4aiman wrote:[Lava is the best way to get rid of an item (but not implemented even in Lua AFAIK).
jojoa1997 wrote:if we do have a trashcan then just maake the trash box go in survival also
jojoa1997 wrote:if we do have a trashcan then just maake the trash box go in survival also
0gb.us wrote:Now that's an idea. It would be a lot quicker to use than a trash can node.
local trashInv = minetest.create_detached_inventory(
"trash",
{
on_put = function(inv, toList, toIndex, stack, player)
inv:set_stack(toList, toIndex, ItemStack(nil))
end
})
trashInv:set_size("main", 1)
minetest.register_on_joinplayer(
function(player)
player:set_inventory_formspec(
"size[10,7.5]"..
"list[current_player;main;0,3.5;8,4;]"..
"list[current_player;craft;3,0;3,3;]"..
"list[current_player;craftpreview;7,1;1,1;]"..
"label[9,3.5;Trash]"..
"list[detached:trash;main;9,4.5;1,1;]"
)
end)Users browsing this forum: No registered users and 4 guests