Topic category: Help with modding (Java Edition)
Heyyy, i'm trying to make a mob teleport when hit, Enderman-style teleport.
I have two issues:
1.- I'm not sure how to limit how far it could teleport.
2.- I don't know how to make it not teleport inside blocks. (I don't want it to teleport inside the walls and suffocate if i hit him inside a cave or something.)
How could i do this? Is it too hard?