Respawning Animals

About the Mod
The Respawning Animals mod completely changes animal spawning mechanics in Minecraft, making it similar to the Bedrock Edition. Animals can now disappear and reappear in different locations throughout the world, rather than staying forever where they spawned during world generation. Meanwhile, all tamed, bred, or named animals are preserved as they should be.
Key Features
🔄 Dynamic Animal Spawning All animals can now freely despawn and respawn in the world. This eliminates the problem where after eliminating all animals in an area, they no longer regenerate. This system also opens up possibilities for creating passive mob farms.
🛡️ Protection of Important Animals To avoid breaking game mechanics, animals automatically gain "persistent" status (which prevents them from despawning) in the following cases:
- When the player is riding the animal
- When using a name tag
- After breeding or being born as a result of breeding
- After being tamed by the player
⚙️ Flexible Configuration If changes to animal spawning mechanics conflict with other mods, you can add specific animals to a blacklist through the configuration file.
🎮 Control via Game Rules
The mod's behavior is controlled through the custom game rule persistentAnimals. When the rule is set to false, the mod activates (this is the default value for new worlds). For existing worlds, execute the command /gamerule persistentAnimals false.

Installation
⚠️ REQUIRES INSTALLATION ON SERVER
📦 REQUIRED DEPENDENCIES:
- PUZZLES LIB (Fabric and Neoforge)
- FABRIC API (Fabric only)
- FORGE CONFIG API PORT (Fabric only)
Configuration
Configuration can be changed directly in-game through the mod menu (requires Mod Menu installation on Fabric). For manual editing, configuration files are located in the .minecraft/config folder and are named MOD_ID-client.toml, MOD_ID-common.toml, or MOD_ID-server.toml depending on the type of settings.
Credits
Special thanks to B3spectacled for the inspiration from their Custom Spawns mod.