Is there a way to (when runned a certain amount of blocks), decrease a variable?

Started by ILikeMakingMods2103 on

Topic category: Help with modding (Java Edition)

Last seen on 22:48, 25. Mar 2024
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Is there a way to (when runned a certain amount of blocks), decrease a variable?

Don´t know what to include in this place so yea, maybe answer the question pls?

Last seen on 22:34, 11. Feb 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Tho actually you could…
Wed, 01/05/2022 - 02:09

Tho actually you could create a procedure that activates every tick and checks if player is moving in x or z axis, if so check if they are riding something, if not then check if they are in flowing water or lava, and if not then then set stamina to get stamina - (whatever you want to decrease it by)

Last seen on 22:34, 11. Feb 2023
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Honestly i should do that…
Wed, 01/05/2022 - 02:11

Honestly i should do that for my mod but i am too tired right now