
Safe(ish) Respawn
In standard Minecraft, hostile mobs only despawn when the player is very far away from them. This can create problems if the player encounters a horde of monsters near their respawn point, leading to an endless death cycle from the same creatures.
This mod changes entity behavior logic, allowing mobs to despawn if there are no living players nearby. This way, after death, the player will respawn without hostile mobs around (provided there are no other players in the area).
This behavior is similar to what happens on PaperMC servers, possibly due to their "delay-chunk-unloads-by" implementation.
This change could disrupt the operation of some specific mob farms that use Nether or End portals, but the developer has tried to ensure this is not the case! Please report an issue if you discover any unintended consequences.
License
Copyright (C) 2023 James Fenn
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.