Page 1 of 1

Make the 'crap' disappear

PostPosted: Mon Aug 05, 2013 13:46
by DarthNihilus
How much time it takes for an item (thrown out) to disappear from the world? I waited for 4 'days' and it's still there, so I guess it's there for an eternity. Can this somehow be tweaked?

PostPosted: Mon Aug 05, 2013 14:03
by PilzAdam
By default it stays there forever, but my builtin_item mod makes them dissappear after 5 minutes.

PostPosted: Mon Aug 05, 2013 14:05
by Inocudom
Items laying around could end up being placed in the treasure chest of a nearby dungeon. Same with bones and their items.

PostPosted: Mon Aug 05, 2013 14:18
by mauvebic
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
--                 Delete Items on 'q'                    ***

function minetest.item_drop(itemstack, dropper, pos)
    return ItemStack("")
end

--                 Delete Items on full inv            ***

function minetest.handle_node_drops(pos, drops, digger)
    -- Add dropped items to object's inventory
    if digger:get_inventory() then
        local _, dropped_item
        for _, dropped_item in ipairs(drops) do
            digger:get_inventory():add_item("main", dropped_item)
        end
    end
end

PostPosted: Mon Aug 05, 2013 15:20
by DarthNihilus
thanks