Skip to content

Let You Despawn

A fork of Let Me Despawn with the Almanac dependency removed. Mobs keep despawning after picking items up and drop the gear they grabbed; spawner and trial spawner toggles included.

<1,000 downloads Updated

No ratings yet

Be the first to rate it.

Rate it

Community listing page

Community listing page, reviews may not be monitored by the author.

About

Description

Let You Despawn

Vanilla pins any mob that picks an item up as permanently persistent — one zombie grabbing a sword in your mob farm and it never despawns again. This mod lets them despawn normally without swallowing the gear they picked up.

It is a fork of Let Me Despawn 1.26.11.1 (by frikinjay): same behaviour, but without the Almanac and Dungeon Config dependencies, with a self-contained config layer.


About this build

Upstream keeps its config and a few helpers in the Almanac library. This build folds them into the mod itself so the pack needs one dependency fewer; the behaviour itself is the original author's work.

On the cost of that dependency: to handle an edge case where an item carries an empty NBT component, Almanac injects into very hot methods such as ItemStack.getCount() and Slot.getItem() and copies NBT on each call. Inventory sync, item merging and tooltip rendering all pass through them, so the overhead is measurable in large packs. This build does not carry that implementation.

  • No Almanac, no Dungeon Config
  • Fzzy Config is optional: with it you get an in-game config screen, without it the files in config/ still work
  • Config keys and semantics match upstream, so existing settings carry over

All credit for the design goes to the original author.


Features

  • Mobs that pick items up despawn normally again
  • They drop only the gear they picked up (tracked per equipment slot)
  • Custom-named mobs stay persistent; mobNames opts mobs out of the mod
  • persistenceEnablers items keep a mob alive once picked up and worn
  • Monster spawners: their mobs can despawn even if something tries to make them persistent (toggle)
  • Trial spawners: a mob still counted by its spawner never despawns, which stops idle reward farming (toggle)
  • Endermen no longer become persistent for carrying a block, and drop it when they despawn
  • Dispensers equipping mobs follow the same rules
  • Spawn origin, trial-spawner position and picked slots are stored in NBT

Commands

Permission level 2 (op); every change is written to disk immediately and mirrored into the Fzzy TOML.

Command Effect
/letyoudespawn add <entity id> Add a mob to the persistent list
/letyoudespawn remove <entity id> Remove it
/letyoudespawn addPersistenceEnabler <item id> Add an item to the "prevents despawning" list
/letyoudespawn removePersistenceEnabler <item id> Remove it
/letyoudespawn standardSpawnerDespawn <true\|false> Allow spawner mobs to despawn
/letyoudespawn trialSpawnerDespawn <true\|false> Allow trial spawner mobs to despawn
/letyoudespawn reload Re-read the config file and apply it

Id arguments are tab-completed and validated against the registry, so unknown ids are rejected. Console works too.


Configuration

Four options, two carriers — picked automatically depending on whether Fzzy Config is installed.

With Fzzy Config Without
config/letyoudespawn/config.toml is authoritative and editable in-game config/letyoudespawn.json is authoritative
Every save also mirrors config/letyoudespawn.json —
On first run the TOML is seeded from the existing JSON —
Key Type Default Meaning
mobNames string list ["corpse:corpse"] Mobs that still become persistent after a pickup
persistenceEnablers string list [] Items that keep a mob alive once picked up and worn
enableStandardSpawnerDespawn boolean true Spawner mobs may despawn
enableTrialSpawnerDespawn boolean true Trial spawner mobs may despawn

In game: Mods → Let You Despawn → Config. The Browse and pick... button opens a searchable picker for both lists, so ids never have to be typed by hand.


Requirements

Minecraft 1.21.1
NeoForge 21.1.218 or newer (any 21.1.x)
Optional Fzzy Config 0.7.0+ (config screen only)
Java 21

Drop the jar into mods/. With Fzzy Config you get an in-game config screen; without it everything still works from the files.


Differences from upstream

Dependencies No Almanac, no Dungeon Config; Fzzy Config optional
Config backend Dungeon Config → own JSON + optional Fzzy Config (same keys and semantics)
Config files config/letyoudespawn.json / config/letyoudespawn/config.toml
Commands Prefix /letyoudespawn; extra reload; permission 3 → 2
Injection checkDespawn uses @Inject + cancel instead of @Redirect
Packaging Plain NeoForge, Architectury wrapper removed

Notes

  • Do not install alongside the original Let Me Despawn — both hook Mob#setPersistenceRequired and checkDespawn, so installing both applies the rules twice. Remove the original and its Almanac first
  • Only despawn rules are touched: no stat, loot table or spawn-rate changes
  • The trial spawner check scans a 47-block area, but only for mobs that came from a trial spawner and have not been released yet

Licence and credits

This is a derivative work of LGPL-3.0 code; the full source is published with every release.