We've split up the commands, scripting and mods, and add ons category! Please be sure you get your thread in the right place.

128

Ability to change item despawn time

11 Comments

Please sign in to leave a comment.

Sorted by oldest
  • 3
    Registered User commented
    Comment actions Permalink

    Although, if you change the time of despawning on bedrock on hard difficulty, I fell it should count as using a cheat so you can’t get achievements for that world

  • 9
    Registered User commented
    Comment actions Permalink

    This would be a decent gamerule. You can somewhat do this with commands however:

    [Put this in Repeating, Unconditional, Always Active, command block]
    execute as @e[type=minecraft:item,tag=!10minDespawn] run data merge entity @s {Age:-6000s}

    [Put this in Chain, Conditional, Always Active, command block, off of the repeating command block, with the arrow pointing the same direction]
    tag @e[type=minecraft:item,tag=!10minDespawn] add 10minDespawn

    The way this works is, when you normally drop an item, it has an Age value of 0 and gradually ticks up at 20 ticks per second till it reaches 6000 (which is the default despawn time of 5 mins). By setting the Age to -6000, it takes the item another 5 mins to reach 6000. Adding the tag after data merging the Age value prevents the item from continuously being set to -6000 and never being able to despawn.

    Note: The method above only lets you set a max lifespan of ~27.3 minutes at a time due to the Age value being stored in short (the age value cannot go below -32768 or above 32767). If you want to "bypass" this, you would have to setup a slightly more complex system.

  • 3
    Registered User commented
    Comment actions Permalink

    but it may be laggier then, But im stil gonna vote

  • 6
    Registered User commented
    Comment actions Permalink

    This has been a neverending source of frustration in any survival game I've played.

    Whenever you die somewhere in a cave your items are as good as gone, because 5 minutes does not give enough time to traverse some mazes.

    There's a "keep inventory" option that is also useless, because it takes away any challenge and deaths are then absolutely meaningless.

    How in the world has this not been changed since Minecraft was created is beyond me. People should be able to set it as high as 24 hours if they want to, especially in single player worlds where lag doesn't matter.

  • 2
    Registered User commented
    Comment actions Permalink

    That's a great thing i think because that will remove the clear lag thing that is use in a lot of moded servers, so they can just change the despawn time to less than 5 min

  • 3
    Registered User commented
    Comment actions Permalink

    I completely agree with Michał Stefańczyk, I think this would be best implemented to change despawn time of items dropped by a dead player. I think besides this, it could be used on servers to decrease the amount of time items are on the ground for performance purposes.

  • 2
    Registered User commented
    Comment actions Permalink

    This is a great idea! But I think this could lag the game very easily 

     

  • 2
    Registered User commented
    Comment actions Permalink

    This seems common sense; with the exception of performance I see no reason why items need to despawn at all, let alone at exactly 5 minutes. The idea for an adjustable despawn timer (e.g. a slider) is a great one and seems like it would be relatively easy to implement and have no down sides since people can choose what setting works best for their computer, server, phone, etc., which is part of what Minecraft is all about: infinite wonders, endless possibilities...except for the item despawn rate ;) Another idea to consider, whether alongside or instead of an adjustable timer, would be to have items begin to randomly disappear at a certain rate once the timer runs out.

  • 2
    Registered User commented
    Comment actions Permalink

    I think at a minimum this needs to be implemented for ite.s dropped. It would be much more realistic that times dropped when a player dies never despawn. It is super frustrating to lose stuff because of the 4 minute despawn rule. I vote there be an option to change this to be anywhere from 0 minutes to indefinite. For instance on my server I play on with my kids, there would not be much lag at all created by making it indefinite, yet it would sure make my kids a lot happier to know that if they can find where they were, they can retrieve their stuff. Please implement. Thank you.

  • 1
    Registered User commented
    Comment actions Permalink

    Yes!
    I would love a simple to use setting in the server settings to change these and command.
    Having the ability to lower the time or make it higher would be a great help.
    It can be done with command blocks but can spam command outputs. Having it as part of the main game would be much better.
    I think we would need 3? Player, Mob and Other drops.
    Mob drops do not need to be 5 minutes and 1 minute is more than enough.
    Mob drops is where most lag comes from when it comes to farms.
    Mob farms can be so fast that if it hasn't picked the items up within 1 minute, then it isn't going to and the build up of items would benefit from a lower timer.
    Player drops.
    How many times have we all got to our items just as it's started to despawn, or even already despawned!
    Now caves are deeper, it's even harder to get there in time.
    Others. Breaking chest/s or creepers breaking them for you, Mining etc.
    All of these extra ways that are not covered would benefit from a higher timer, eg. 10 minutes.
    Such times as when a bunch of chests are broken, extra time would help sort it out.
    While it may lag for a time, this time is still ticking and we'd lose items without more time.

    Personally I think adjustable timers would be a great thing to add, for single and server use.
    I would have Mobs on 1 minute, Others on 10 minutes and Players on up to 1 hour.
    Other players may be loading your items without knowing, you may need to get things to help get to them. How much lag comes from 1 persons items!

  • 0
    Registered User commented
    Comment actions Permalink

    I'd rather have an option to enable despawning items. It could have a several time options. A Minecraft day, week, month or year.

    The default should be never to despawn items. I know it will make the game lag.

    There could be a trashcan or several trashcans araound the realms, where you have to deposit the thing that you don't want or an inventory trashcan, that is a bit separate from the inventory, where you put the unwanted items.