How do i make mana

Started by FerretWithACatHatYT on

Topic category: Help with modding (Java Edition)

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
How do i make mana

I want to make a mana system for my mod
It needs to:
Be consumed by various tools/ranged items/blocks
Prevent said things from being used if the mana cost is above your current mana
Be displayable on the screen as a number
Be upgradable using advancments

Last seen on 05:41, 29. Mar 2024
Joined Mar 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Easy, go on variable tab at…
Thu, 04/08/2021 - 15:52

Easy, go on variable tab at the left of your screen, add a variable named Mana with those configs: Type Number, Player_Persistant. and set the initial amount to (what u want, 0 if you want for the player to start with 0 mana).after, create another  variable named max_mana, and set it to the max amount of mana the player can have. after create a Overlay, add a Label Text and where you write <VAR:Integer:mana>/<VAR:Interger:max_mana> and put the text where you want. this will show the amount of mana on your screen. (if this <VAR:Integer:mana>/<VAR:Interger:max_mana> dont work, tell me ill send you screenshots too show you how.)

Last seen on 19:21, 11. Jul 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It does not sound easy at all
Thu, 04/08/2021 - 15:57

It does not sound easy at all

Last seen on 19:21, 11. Jul 2021
Joined Oct 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It does not sound easy at all
Thu, 04/08/2021 - 15:58

It does not sound easy at all

Last seen on 15:21, 3. May 2023
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
so now i have the variables…
Thu, 04/08/2021 - 16:15

so now i have the variables how do I do points 1 and 2? Ive never understood player variables

Last seen on 01:15, 24. Mar 2024
Joined Aug 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I made a video tutorial on a…
Thu, 04/08/2021 - 18:07

I made a video tutorial on a Custom Health Bar, just follow it and modify some of it to fit your use - https://youtu.be/kyxSPIczdCU

Last seen on 10:51, 24. Apr 2022
Joined Jul 2021
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I wrote in the text VAR…
Mon, 03/21/2022 - 15:32

I wrote in the text VAR:Integer:mana but it didn't work for me. Then I added <>, These brackets are not displayed, and the text is the same.

Last seen on 03:27, 13. Nov 2023
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Make sure the name of the…
Sun, 07/17/2022 - 17:33

Make sure the name of the overlay thing is: <VAR:integer:[VARIABLE NAME]> (replace [VARIABLE NAME] with what your variable name is (should be mana)).

Last seen on 14:49, 16. Mar 2024
Joined Jul 2023
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
None Of These Worked PLS HELP
Sat, 07/22/2023 - 19:58

None Of These Worked

PLS HELP