Make the 'crap' disappear

DarthNihilus
Member
 
Posts: 14
Joined: Fri Aug 02, 2013 10:45

Make the 'crap' disappear

by DarthNihilus » Mon Aug 05, 2013 13:46

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?
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Mon Aug 05, 2013 14:03

By default it stays there forever, but my builtin_item mod makes them dissappear after 5 minutes.
 

User avatar
Inocudom
Member
 
Posts: 2889
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Mon Aug 05, 2013 14:05

Items laying around could end up being placed in the treasure chest of a nearby dungeon. Same with bones and their items.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Mon Aug 05, 2013 14:18

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
"Fuck the hat." - Paulie Gualtieri
 

DarthNihilus
Member
 
Posts: 14
Joined: Fri Aug 02, 2013 10:45

by DarthNihilus » Mon Aug 05, 2013 15:20

thanks
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 16 guests

cron