

Originally, this seemed like the best option. (In the overworld, this would be the surface, in my "void" dimension, this would be the nearest island). I simply want to teleport the player to their relative coordinates in either dimension, but move them to the nearest "safe" surface. I have an item that on right click, teleports the player to another dimension. Please describe what you want to achieve from a gameplay perspective, not how you have attempted to program it. Forgive me, but I can't find how I would add additional methods to check, and as mentioned, the place portal method that might be doing that is quite "unreadable," or at the very least hard to dissect. My custom teleporter only overrides placeEntity from ITeleporter so that it does not place a portal.

Passing in my custom dimension and then my custom teleporter. VOID_DIM_TYPE ), new VoidTeleporter (( ServerWorld ) player. I'm using changeDimension accepts a DimensionType and then ITeleporter, at least as far as I can tell, and so right now I'm using
/005_how-to-use-the-tp-teleport-command-in-minecraft-5080340-d63bdae122ab481fae42aea6f5a8e900.jpg)
That's exactly what a custom teleporter does, right? what do you mean by "conditions"?
