Stay a While
Stay a While allows you to customize the amount of time it takes for items on the ground to despawn, and allows for customization based on how the item was dropped. It makes items dropped on death not randomly scatter on the ground.
By default, Stay A While makes items dropped upon death never despawn and not scatter randomly. Additionally, it adds 4 new gamerules to customize behavior:
thrownItemDespawnTime(1.21.1)/stay_a_while:thrown_item_despawn_time(26.2) - the amount of ticks an item that was thrown by a player (usingQkey by default) takes to despawn (default:6000)deathDropDespawnTime(1.21.1)/stay_a_while:death_drop_despawn_time(26.2) - the amount of ticks an item that was dropped by a player upon death takes to despawn (default:-1; vanilla behavior:6000)itemDespawnTime(1.21.1)/stay_a_while:item_despawn_time- the amount of ticks all other dropped items take to despawn (default:6000)scatterDeathDrops(1.21.1)/stay_a_while:scatter_death_drops(26.2) - whether or not items dropped upon death scatter randomly (default:false, vanilla behavior:true)
In case you are unfamiliar with them, 20 ticks == 1 second : 1200 ticks == 1 minute : 6000 ticks == 5 minutes
Values less than 0 (i.e. negative values) on the despawn time gamerules are make their category of items never despawn
Works Fully Serverside
In multiplayer, the mod only needs to be installed on the server to function, and players without the mod installed are able to connect to servers with the mod installed.
Version Policy
As with most of my mods, the plan is to keep Stay a While on 1.21.1 Neoforge & Fabric for as long as 1.21.1 is a prominent version for modpacks, and continue pushing updates for the latest version of Minecraft on Fabric.
As the "long-term-support" version, 1.21.1 is the only Minecraft version older than Latest Release which will be receiving new versions of the mod.
Bug Reports
If you find any bugs, please report them to the codeberg repo
Modpacks
As with all of my mods, you may include Stay a While in any modpack.
How to Install Stay A While (Mod)
Stay A While by jolkert is verified for Fabric, Neoforge across Minecraft versions 1.19.2, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.21.1, 1.21.4, 26.2 (latest release: 2.0.3, file size: 15 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.2, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.21.1, 1.21.4, 26.2) and platform (Fabric, Neoforge).
- Make sure you have the compatible loader or environment installed for Fabric, Neoforge.
- Move the downloaded Stay A While file into your Minecraft
.minecraft/modsfolder and launch the game.
All Versions
+ Add Version- Fixed:** [#5](https://codeberg.org/jolkert/stay-a-while/issues/5) Curse of Vanishing causes server crash
- Now available on 26.2 (Fabric)!
- All gamerules named differently on 26.2 for consistency with vanilla gamerule names
itemDespawnTime==stay_a_while:item_despawn_timethrownItemDespawnTime==stay_a_while:thrown_item_despawn_timedeathDropDespawnTime==stay_a_while:thrown_item_despawn_timescatterDeathDrops==stay_a_while:scatter_death_drops
- BREAKING:** renamed all gamerules on 1.21.1 to be more intuitively named. You will have to reset your gamerules on update.
maxItemage->itemDespawnTimemaxPlayerThrownItemAge->thrownItemDespawnTimemaxPlayerThrownItemAge->deathDropDespawnTimescatterDeathItems->scatterDeathDrops
## Additions
- Added
scatterDeathItemsgamerule. Controls whether items dropped on player death scatter randomly (default:false) - Now available on Neoforge!
- Removed
villagerConversionPercentgamerule. Will be spun off into its own mod.
- Fixed:** Items lose their thrown/death-specific despawn timers upon chunk reload.
- Now compatable with Minecraft 1.21.4
villagerConversionPercent gamerule- Version bump to 1.20
## Bugfixes
- Fixed a bug where translation strings for gamerules were not being shown properly
## Additions
- Added
maxPlayerThrownItemAgegamerule. Controls number of ticks until items thrown on the by players (using theQkey by default) despawn (default: 6000)
## Changes
- Renamed gamerule
itemDespawnAgetomaxItemAge - Renamed gamerule
deathItemDespawnAgetomaxPlayerDeathItemAge
## Technical Changes
- Negative value despawn prevention is now implemented by setting the
itemAgein theItemEntityto the minimum signed 16-bit integer limit (-32768), taking advantage of vanilla behavior
- Added
itemDespawnAgegamerule. Controls number of ticks until items on the ground despawn (default: 6000) - Added
deathItemDespawnAgegamerule. Controls number of ticks until items dropped by players upon death despawn (default: 6000) - Negative values for either gamerule cause items in the category to never despawn