
ModsJava
Prevent Despawn
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

This is a simple server side mod that prevents the despawning of items that are added to a new tag, aptly named "prevent_despawn".
Currently this only supports ItemEntities.
By default this tag contains
"minecraft:dragon_egg",
"minecraft:nether_star",
"minecraft:totem_of_undying"
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.19.3, 1.19.4, 1.20
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Modrinth — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Verified by MCModsHub
- Ships as preventdespawn-1.1-1.19-1.20-fabric.jar — drop this file into the mods folder
- Download size: 13 KB
- Download link checked 5 Sept 2026 — working
These come from our own check of the pack file, not from the source page.