Data Packs Weapons and Armor

Simple Mana Datapack

  • Functions
  • 3,117 views • 1 today
  • 50 downloads • 0 today
  • 5
  • 6
  • 3
citharus
Level 20 : Expert Procrastinator
0
Mana

Re-useable
Mana Data Pack for implementing a ready to use Mana scoreboard.
You can use the it with every targeting command out there.

Works also in the newest snapshot! c:


Documentation :

Test for Mana [​location: --- ]

Test for exact Mana :
execute at @a[​scores={mana=amount}]
give @a[​scores={mana=amount}]

Test for Mana up to (X) :
execute at @a[​scores={mana=..amount}]
give @a[​scores={mana=..amount}]

Test for Mana from (X) :
execute at @a[​scores={mana=amount..}]
give @a[​scores={mana=amount..}]

Reduce or increase Mana [​location: --- ]

Reduce Mana :
scoreboard players remove target mana amount

Increase Mana :
scoreboard players add target mana amount


Mana regeneration
[​location: schedule/mana.mcfunction]

Mana amount to regen. :
scoreboard players add @a mana amount

Time to regen. :
schedule function m:schedule/mana 20t

Max. Mana [​location: tick.mcfunction]

Maximal Mana to have :
execute as @a[scores={mana=condition..}] at @s run scoreboard players set @s mana amount


Scoreboard [​location: --- ]

Set Display :
scoreboard objectives setdisplay sidebar mana



Fell free to use

CompatibilityMinecraft 1.14
Tags

2 Update Logs

Update 1.2.1 (Documentation & Download) : by citharus 10/25/2019 6:13:29 amOctober 25, 2019 @ 10:13 am UTC

Changelog 1.2.1 :
+ Documentation update
+ Direct Download link
LOAD MORE LOGS

  Have something to say?

Hadies_Alchemist
10/25/2019 3:48 pm
Level 1 : New Explorer
it would be cool if you made something to use the mana for.
2
citharus
10/25/2019 4:40 pm
Level 20 : Expert Procrastinator
I will add some thing like that in future updates
1
citharus
10/24/2019 12:34 pm
Level 20 : Expert Procrastinator
Very Gooooooood C:
1

Welcome