Nametagged Hostile No Despawn

This mod makes it so that hostile mobs will not despawn if they are nametagged, even if the world is set to peaceful.

Downloads

5

Remixes

0

Price

Free

fabric · Both · 1.21.1 · mod

Nametagged Hostile No Despawn

  • Hostile mobs that have been nametagged (or otherwise given a custom name and made persistent) no longer despawn when the game is set to Peaceful; unnamed hostiles still clear out as usual.
  • Uses a mixin on hostile mobs' peaceful-removal check to allow named, persistent mobs to stay loaded without affecting other despawn rules.
  • Runs on both client and server; no configuration is required beyond installing the mod.
  • Known limitation: only affects mobs counted as hostile; neutral/passive creatures already ignore the Peaceful cleanup and are unchanged. Future improvements could add a config toggle to extend or narrow which mobs stay.

Server Validation

Server validation passed - The mod was tested on a real Minecraft server and loaded successfully.

MORE LIKE THIS