Перейти к содержимому
Mineforgian

Stay A While

Add gamerules for item despawn timers!

2K загрузок17 подписчиковGPL-3.0-onlyfabricneoforge

Обновлён 2 февраля 2026 г. · опубликован 10 апреля 2023 г.

Stay A While

Have you ever thought that your items disappear too quickly? Perhaps the normal timer is just fine, but you wish you had just a little more time to collect your items after you die. Or maybe you want your items to despawn faster to give death that little extra stress factor. You might also hate it when you die and your items scatter everywhere. If any of these things sound like you, Stay A While can help with that.

What does it do?

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:

  • maxPlayerThrownItemAge the amount of ticks an item that was thrown by a player (using Q key by default) takes to despawn (default: 6000)
  • maxPlayerDeathItemAge the amount of ticks an item that was dropped by a player upon death takes to despawn (default: -1; vanilla behavior: 6000)
  • maxItemAge the amount of ticks all other dropped items take to despawn (default: 6000)
  • scatterDeathItems 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 item-age gamerules are interpreted to mean "never despawn"

Other questions you might want answers to

Does this work on servers?

Yes! Just install on the server and you're good to go. No players need to install!

What if I change the value while items are still on the ground?

If the max age is raised while the item is still alive, it will always follow the new lifespan, extending the life of the item.
If the max age is lowered while the item is still alive, the behavior currently differs between modloaders:

  • On Fabric: items begin checking against the new age immediately, so the item's lifespan is reduced upon changing the gamerule
  • On Neoforge: items only begin checking against the new age if they attempt to despawn, so the item's lifespan is unaffected, continuing to follow the previous timer

Центр версий

11 версий
  • Релиз629 КБ
  • Релиз628 КБ
  • Релиз14 КБ
  • Релиз16 КБ
  • Релиз14 КБ
  • Релиз14 КБ
  • Релиз14 КБ
  • Релиз14 КБ
  • Релиз14 КБ
  • Релиз14 КБ
  • Релиз9 КБ

Ченджлог

2.0.0Релиз1.21.1 · 2 февраля 2026 г.

Version 2.0.0

Additions

  • Added scatterDeathItems gamerule. Controls whether items dropped on player death scatter randomly (default: false)
  • Now available on Neoforge!

Removals

  • Removed villagerConversionPercent gamerule. Will be spun off into its own mod.

Bugfixes

  • Fixed: Items lose their thrown/death-specific despawn timers upon chunk reload.
1.2.0Релиз1.21.4 · 29 января 2025 г.
  • Now compatable with Minecraft 1.21.4
1.2.0-1.20.2Релиз1.20.2 · 22 октября 2023 г.

Added villagerConversionPercent gamerule

1.1.1-1.20.2Релиз1.20.2 · 20 октября 2023 г.

Version bump to 1.20.2

1.1.1-1.20.1Релиз1.20.1 · 20 октября 2023 г.

Version bump to 1.20.1

1.1.1-1.20Релиз1.20 · 7 июня 2023 г.

1.1.1

  • Version bump to 1.20
1.1.1-1.19.4Релиз1.19.4 · 11 апреля 2023 г.

Version 1.1.1

Bugfixes

  • Fixed a bug where translation strings for gamerules were not being shown properly
1.1.0-1.19.4Релиз1.19.4 · 11 апреля 2023 г.

Version 1.1.0

Additions

  • Added maxPlayerThrownItemAge gamerule. Controls number of ticks until items thrown on the by players (using the Q key by default) despawn (default: 6000)

Changes

  • Renamed gamerule itemDespawnAge to maxItemAge
  • Renamed gamerule deathItemDespawnAge to maxPlayerDeathItemAge

Technical Changes

  • Negative value despawn prevention is now implemented by setting the itemAge in the ItemEntity to the minimum signed 16-bit integer limit (-32768), taking advantage of vanilla behavior

Комментарии

Загружаем…