How to make a mana bar system. REMADE(MINECRAFT)(BEDROCK)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ส.ค. 2024
  • Today I will show you how to make a mana system in Minecraft.
    COMMANDS:
    /scoreboard objectives add Mana dummy
    /scoreboard players set @a Mana 0
    /tickingarea add circle ~ ~ ~ 4
    /scoreboard players add @a Mana 1
    /execute as @a[scores={Mana=-1}] run scoreboard players remove @s Mana -1
    /execute as @a[scores={Mana=21}] run scoreboard players set @s Mana 20
    /title @p [scores={Mana=0}] actionbar §7§l-§f[][][][][][][][][][][][][][][][][][][][][]§7-
    /title @p[scores={Mana=1}] actionbar §7§l-§b[]§f[][][][][][][][][][][][][][][][][][][][]§7-
    /title @p[scores={Mana=2}] actionbar §7§l-§b[][] §f[][][][][][][][][][][][][][][][][][][]§7-
    Continue adding bars over until you reach 20
    /execute at @e[name="§1O§2m§3e§4g§5a"] run scoreboard players test @p[r=3,scores={Mana=!0}] Mana 10 25
    /execute at @e[name="§1O§2m§3e§4g§5a"] run scoreboard players remove @p[r=3,scores={Mana=!0}] Mana 10
    /execute at @e[name="§1O§2m§3e§4g§5a"] run effect @p[r=3,scores={Mana=!0}] speed 10 10 true

ความคิดเห็น •