How do i make mana

Started by FerretWithACatHat on

Topic category: Help with Minecraft modding (Java Edition)

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

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.)

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

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

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

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

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.

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)).

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

Joined May 2024
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
In the latest version of…
Thu, 05/30/2024 - 08:12

In the latest version of mcreator, the <VAR:Integer:Mana> doesn't work, any different methods?