How to create something that gives you a potion effect when you ascend 10 or 15 blocks (y level)

Started by Rockdcb on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to create something that gives you a potion effect when you ascend 10 or 15 blocks (y level)

Im trying to make something where if you ascend around 10 or 15 blocks you get a hunger effect that makes it so you need to eat a lot of food to continue 


Sorry if I worded it wrong I am not too good with computers I'm just trying to make a modpack for me and some friends.

Joined Jun 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
-NEW PRODECURE -change…
Sat, 06/10/2023 - 10:10

-NEW PRODECURE

-change global trigger to on player tick

-IF  Y < 15 

give potion effect hunger level 2 to TARGET ENTITY (player) 2 ticks