How to make a magic/mana bar system with spells Minecraft(BEDROCK)
Today I will show you how to get a mana bar. with spells that take mana. This is adjustable to ur liking same a the regain on the mana bar. I will also show some spells you can copied these or get your own but You MUST always have the bottem command and the top green command block.
Commands:
Mana action Bar:/title @p[scores={mana=0}] actionbar §7§l-§f[][][][][][][][][][][][][][][][][][][][][]§7-
Mana action Bar With Blue:/title @p[scores={mana=1}] actionbar §7§l-§b[]§f[][][][][][][][][][][][][][][][][][][][]§7-
Mana Adder: scoreboard players add @a mana 1
Mana Stabilizer:/execute @a[scores={mana=-1}] ~~~ scoreboard players remove @s mana -1
Mana Stabilizer 2: /execute @a[scores={mana=22}] ~~~ scoreboard players remove @s mana 1
Bottem Spell command: /execute @e[name="§1O§2m§3e§4g§5a"] ~~~ scoreboard players test @p[r=3,scores={mana=!0}] mana 10 25
Top Spell Command:/execute @e[name="§1O§2m§3e§4g§5a"] ~~~ scoreboard players remove @p[r=3,scores={mana=!0}] mana 10