Improves the teleportation logic when using a cake.
It checks the following to determine where to teleport. All locations check for a safe block underneath and that the bounding box of the entity is not in anything unable to spawn.
Has the entity teleported from a cake in the other world? If so, spawn at that location.
Loop through a sixteen block area from top to bottom to check for a safe position for the entity to spawn.
Create a safe location at the position the entity is in.
Further work should look into better compatibility layers with other mods like #7. Though, honestly, that could use an entire rewrite to support basic datapack structuring and a custom plugin handler for more complex teleports.
Closes #1
Improves the teleportation logic when using a cake.
It checks the following to determine where to teleport. All locations check for a safe block underneath and that the bounding box of the entity is not in anything unable to spawn.
Further work should look into better compatibility layers with other mods like #7. Though, honestly, that could use an entire rewrite to support basic datapack structuring and a custom plugin handler for more complex teleports.