Wont change dimension when player is at a specific Y level

Started by Bball_262 on

Topic category: Help with modding (Java Edition)

Last seen on 03:47, 13. May 2024
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Wont change dimension when player is at a specific Y level

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
Last seen on 18:29, 2. Jun 2024
Joined Dec 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Does it completely not…
Sun, 12/31/2023 - 02:45

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.