Started by
Bball_262
on
Topic category: Help with Minecraft modding (Java Edition)
I've been attempting to make a void mod that works by teleporting the player to a new dimension when they are below or at Y -76
On practice though, it never works, I've been battering my brain at this for a while now. Code is below:
Event trigger - On trigger: On player tick update
if Y position of Event/target Entity <= -76
do Switch dimension of Event/target Entity to CUSTOM:TheShallowVoid
elseif Y position of Event/target Entity => 16
do Switch dimension of Event/target Entity to Surface
Does it completely not teleport you, or does it teleport you into the void? because when I tested it, it put me into the void and I instantly died because my coordinates stayed the same.