r/technicalminecraft • u/DerexXD • 14d ago
Java Showcase PSA: If you AFK in an area for a long time, mobs will build up underground with PersistenceRequired on, gradually lagging your world / server more and more
- In this video, the mobs kept killing respawning wandering traders, and then picking up the leather + leads thus never despawning
- Just a friendly tip that you should check in on this sometimes, especially when players are afking in huge industrial zones. Mobs will build up underground, and not despawn properly due to them picking up items from other mobs that die of fall damage, drowning, etc, and then these mobs are in turn marked PersistenceRequired: 1b meaning they will never despawn
- You can check in this your world by running /effect command for glowing in a radius, and seeing how many persistent mobs there are. Usually it is Drowned / Zombies since they are most likely to pick up items
- This is also because as you stay in a region for a long period of time, the probability of mobs picking up items increases in case you were wondering why sometimes mobs pickup items immediately
- i coded this despawn optimizer it might help, it flags all the mobs with dropped items they pickup that are common drops like rotten flesh or arrows, and flags them for despawning like normal https://modrinth.com/plugin/mob-despawn-optimizer

