players enter dimension when at specific y level

Started by YoshiYoshi2012 on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
players enter dimension when at specific y level

i need help i can't make the player enter a dimension when at y = -70 for my mod

Joined Sep 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Here is a basic procedure in…
Sat, 09/21/2024 - 02:46

Here is a basic procedure in pseudocode for that:

if you have trouble understanding, I can send a screenshot of the blocks :)

on globalTrigger(PlayerTickUpdate) {
	if(eventTargetEntity.yPosition ≤ -70) {
		eventTargetEntity.SwitchDimension(yourDimension);
	}
}