Want to use On Player Tick Update, but only within a specific scenario

Started by Nocimar on

Topic category: Help with modding (Java Edition)

Last seen on 18:39, 7. Feb 2022
Joined Nov 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Want to use On Player Tick Update, but only within a specific scenario

example:

if player moves outside of an area, player gets teleported back inside

but i want it to only do so if something is active.

best version to really explain it, is, "red light, green light"

if its red light and you move outside the area, you get teleported back, but if its green light you can go outside the area.

Last seen on 22:27, 29. Jan 2023
Joined Aug 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Just use an if condition. I…
Wed, 06/29/2022 - 09:48

Just use an if condition. I think there is something like global variables, maybe you could test them.