Wont change dimension when player is at a specific Y level

Started by Bball_262 on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 year ago
Joined Nov 2023
Points:
191

User statistics:

  • Modifications: 0
  • Forum topics: 3
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 4
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
Active 1 year ago
Joined Dec 2023
Points:
171

User statistics:

  • Modifications: 0
  • Forum topics: 2
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 3
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.