Kevblocknikow Posted February 6, 2023 Share Posted February 6, 2023 Id like to change it from 5 minutes to like 15 minutes. Somebody know how to change it? Link to comment Share on other sites More sharing options...
Moony_0 Posted February 7, 2023 Share Posted February 7, 2023 This would be a decent gamerule. You can somewhat do this with commands however: [Put this in Repeating, Unconditional, Always Active, command block]execute if entity @e[type=minecraft:item,tag=!10minDespawn] 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. just note that the maximum time you can extend this to is ~26.5 minutes. If you want to extend it further you'll have to build a more complex system. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now