How to make a chakra system

Started by dragonverse on

Topic category: Advanced modding

Last seen on 14:20, 6. Jun 2022
Joined May 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How to make a chakra system

Hello I want to make a chakra system with a gui which would allow the chakra to increase does anyone know how to do this If so please help me would be appreciated 

Last seen on 17:03, 1. Mar 2024
Joined Sep 2016
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
From what I'm reading you…
Sat, 05/28/2022 - 16:51

From what I'm reading you want some sort or variable/number system. Something like Mana from Terraria for example.

If you want to make that, you would start with making two variables, one for current Chakra and one for max Chakra (Max Chakra variable is not always needed, but you have to make it if you want to increase max Chakra later). Make a procedure and set the call to "on world tick", that will make the procedre run every tick. with that increase the chakra by your selected number.

Don't forget to add an if statement to check if your chakra is above max Chakra or not.

You can also add other variables to the mix like Chakra regeneration, in this you just increase Chakra by chakra regen each tick, with that you can make it so chakra regen also slowly increases each tick so it looks like your chakra increases exponentially.

 

Hope this helped with the more technical side of things

Last seen on 16:39, 7. Apr 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Could you explain how to…
Sat, 07/22/2023 - 18:21

Could you explain how to make chakra in the game i didn't get a lot of what you said?

 

Last seen on 03:22, 22. Nov 2023
Joined Nov 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
do you still need help monke
Mon, 11/06/2023 - 00:01

do you still need help monke

Last seen on 14:00, 24. Apr 2024
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Use Attributes. Chakra could…
Mon, 11/27/2023 - 23:48

Use Attributes. Chakra could be like an Attribute.