ModsFinder

DontDespawn

by YourAverageDev

DontDespawn keeps specified items from despawning on a Fabric server, so valuable drops stay in the world until a player picks them up.

FabricServer-side onlyMIT License1.20.4 – 1.20.6

What it does

Item entities normally vanish after a set amount of time. DontDespawn checks item entities during each server tick and matches each one against a list of item IDs in the configuration file. A matching entity has its age reset to 0, which keeps it from despawning. The list is a plain text file named dontdespawn.items inside the config folder, with one item name per line, such as minecraft:netherite_ingot or a custom modid:item.

The mod runs on the server alone and is published for Fabric only, for 1.20.4, 1.20.5 and 1.20.6, with 1.1 for 1.20.6 as the latest file. Fabric API is required. Players join without installing anything. The code is under the MIT License and is not open source. The mod logs a message at startup and a warning when the configuration file is missing or unreadable, and it logs a warning for items prevented from despawning.

Key features

  1. Per-item despawn protection

    Only the item IDs listed in the configuration file are kept, while every other item despawns as normal.

  2. Age reset each tick

    Matching item entities have their age reset during each server tick, which stops the despawn timer.

  3. Editable item list

    Server owners add item names to a text file, one per line, and set the items to protect without changing code.

  4. Startup and error logging

    The mod logs an initialization message, warns about prevented items and reports configuration read errors.

Compatibility

Latest build for each game version and loader.

1.20.61.1
1.20.51.1
1.20.41.1
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Protecting rare drops

Servers can keep netherite or other valuable items on the ground until a player arrives to collect them.

Who it’s for: Server owners who want certain items to stay in the world instead of vanishing after a timer runs out.

How it compares

Full comparison

Prevent Despawn is server-side only, published for 1.19.2 – 1.20.1, and not open source under the MIT License. I Died, My Items Didn't (IDMID) is open source under the MIT License, is server-side only and targets 1.20 – 1.21.1, so it covers a wider range than DontDespawn. Persistent Pearls is open source under the MIT License, server-side only and published for 1.17 – 1.20.1.

ModLoadersGame versionsEnvironmentUpdated
DontDespawnFabric1.20.4 – 1.20.6Server-side only2024-08-21
Prevent DespawnFabric1.19.2 – 1.20.1Server-side only2023-06-15
I Died, My Items Didn't (IDMID)Fabric1.20 – 1.21.1Server-side only2024-10-12
Persistent PearlsFabric1.17 – 1.20.1Server-side only2023-06-27

Questions

Does DontDespawn need Fabric API?

Yes. Fabric API is required, and the mod is published for Fabric only.

Does a player need to install DontDespawn?

No. It runs on the server alone, so players need nothing extra to join.

How are items added to the protected list?

Create a file named dontdespawn.items in the config folder and write one item name per line, such as minecraft:netherite_ingot.

In the catalog

DontDespawn is one of 29,952 Game mechanics mods on ModsFinder, and one of 19,630 Game mechanics mods for Fabric. 11,154 mods support Minecraft 1.20.6.

More from YourAverageDev

All projects

Similar mods

What the author says

The DontDespawn Mod is a simple yet powerful Fabric mod for Minecraft that prevents specified items from despawning (disappearing after a certain amount of time). This can be incredibly useful for keeping valuable or important items from being lost forever if not picked up quickly enough. During each server tick, the…
YourAverageDev, on the Modrinth page

Official listing

Owner
YourAverageDev
Published
2024-04-28
Updated on Modrinth
2024-08-21
Facts verified
2026-10-15

Tags