How to make a chakra system

Started by dragonverse on

Topic category: Advanced modding

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 

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

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?

 

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

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.