A Minecraft mod that allows specific entities to automatically respawn after death, perfect for boss mobs and other important entities.
The mod uses a datapack to define respawn rules:
Example:

Use entity id to create a new json file under the data/mod_id/entity_to_respawn folder.

Every field is optional.
use
RespawnableEntityManager#createFrom(Entity entity, RespawnableEntityData data)to create a SoulEntity. You can modify it's pos or some params. Don't forget to add it to the level after create it.The respawned entity will contains a "create-from-soul-entity" tag.