Requires the library mod Collective.
This mod is part of The Vanilla Experience modpack and Serilum's Customization Bundle mod.
Configurable Despawn Timer allows items and experience orbs to remain on the ground longer or shorter than the default lifespan. It is highly configurable. There is a global settings file for the default values. You can also set it so that all items dropped by players will remain on the ground infinitely. And lastly a config file is generated after the first world load, containing all item names. Here you can set a despawn time for any item specifically. There is a command to reload any changes.
Minecraft's default despawn time is 5 minutes. The mod's default is 10 minutes for both items and experience orbs.
The ItemExpireEvent will still run after the altered lifespan, making it compatible with other mods.
Configurable: ( how do I configure? )
globalItemDespawnTimeInTicks (default = 12000, min 1, max 2147483647): The delay in ticks when an item should despawn. Minecraft's default time is 6000 ticks. 1 second is 20 ticks.
globalExperienceOrbDespawnTimeInTicks (default = 12000, min 1, max 2147483647): The delay in ticks when experience orbs should despawn. Minecraft's default time is 6000 ticks. 1 second is 20 ticks.
preventDespawnForPlayerItems (default = false): Whether items thrown/dropped by players should not despawn at all. Works for manual dropping and also on death. Overrides the other time settings.
Commands:
/cdt usage - Shows the usage of commands.
/cdt reload - Reloads all manual changes to the despawn timer config file.
Item specific settings:
It is possible to set despawn times for specific items as well. When you first generate or load a world, a file is created located in './config/configurabledespawntimer' called 'specific_despawn_times.txt'.
A value of -1 means it will use the global settings, 0 means the item won't despawn at all, and any other positive value will be the despawn time in ticks. 20 ticks = 1 second.
------------------
You may freely use this mod in any modpack, as long as the download remains hosted within the Modrinth ecosystem.
Serilum.com contains an overview and more information on all mods available.
Comments are disabled as I'm unable to keep track of all the separate pages on each mod.
For issues, ideas, suggestions or anything else there is the Github repo. Thanks!
90% of ad revenue goes to creators
Support creators and Modrinth ad-free with Modrinth+