How do i make mana

Started by FerretWithACatHat on

Topic category: Help with Minecraft modding (Java Edition)

Active 2 months ago
Joined Aug 2019
Points:
795

User statistics:

  • Modifications: 0
  • Forum topics: 27
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
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

Active 7 hours ago
Joined Mar 2020
Points:
1153

User statistics:

  • Modifications: 6
  • Forum topics: 71
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 270
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.)

Active 3 years ago
Joined Oct 2020
Points:
617

User statistics:

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

It does not sound easy at all

Active 3 years ago
Joined Oct 2020
Points:
617

User statistics:

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

It does not sound easy at all

Active 2 months ago
Joined Aug 2019
Points:
795

User statistics:

  • Modifications: 0
  • Forum topics: 27
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 54
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

Active 6 months ago
Joined Aug 2019
Points:
1067

User statistics:

  • Modifications: 11
  • Forum topics: 30
  • Wiki pages: 0
  • MCreator plugins: 1
  • Comments: 290
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

Active 2 years ago
Joined Jul 2021
Points:
477

User statistics:

  • Modifications: 0
  • Forum topics: 1
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 2
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.

Active 3 months ago
Joined Feb 2022
Points:
448

User statistics:

  • Modifications: 3
  • Forum topics: 9
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 31
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)).

Active 9 months ago
Joined Jul 2023
Points:
134

User statistics:

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

None Of These Worked

PLS HELP

Active 2 months ago
Joined May 2024
Points:
89

User statistics:

  • Modifications: 1
  • Forum topics: 5
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 39
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?