how to check if a valuable decreases with a specific value

Started by xX_galaxyFOx_Xx on

Topic category: Help with modding (Java Edition)

Last seen on 22:55, 14. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
how to check if a valuable decreases with a specific value

so i  am makeing a magic mod a how thw mana mechanic shud werk is when your mana decreases with a specific value is does somthig i dont konw how to chek that so if i can get some help i wut aprecete it 

 

btw sory for spelling rong i am disleksik

Last seen on 02:51, 19. Feb 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How are you storing and…
Sat, 01/01/2022 - 21:45

How are you storing and checking the current player's mana level? Are you using a number variable? 

Last seen on 22:55, 14. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
yes i am useing a global…
Sat, 01/01/2022 - 23:45

yes i am useing a global number variable to store the amunt of mana the palyer has at all times. and in a sepret one for the max amunt of mana that the player can use so i esely can change the max amunt of mana the palyer can use

Last seen on 22:55, 14. Jan 2022
Joined Dec 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
i have done it no need for…
Tue, 01/11/2022 - 21:39

i have done it no need for hlep tock my a long time to figer aut but it is posebul