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 modding (Java Edition)

Last seen on 03:42, 10. Jun 2023
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.

Last seen on 19:33, 18. Apr 2024
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