148: Raid style boss bar. [Minecraft Map Making]

Subscribers:
3,900
Published on ● Video Link: https://www.youtube.com/watch?v=bsdGYPA3bJ8



Minecraft
Game:
Minecraft (2011)
Duration: 9:00
351 views
29


Ep148: A raid style boss bar that shows the combined health of all zombies in the raid.

Java Version: 1.19

Commands, builds and ideas for people making their own Minecraft maps.

Check out my collabs on Coppit's channel: https://www.youtube.com/c/CoppitJ

Join the server I play on and the Discord where I hang out.
Server IP: 51.81.246.145:25588
Discord: https://discord.gg/amU84KykEu

The following commands are prefixed with three letters which represent the settings of the command block. E.g IUN: = Impulse Unconditional Needs_Redstone. These prefixes need to be removed if copying the commands.

Commands used: YouTube formatting may make some of these wrong. :)


Summon zombie:
IUN: summon zombie ~ ~ ~3 {Tags:["raidZombie"],ArmorItems:[{},{},{},{id:"oak_button",Count:1b}]}

Create the bossbar:
IUN: bossbar add zombiehealth "Zombie Raid"
CUA: bossbar set zombiehealth players @a

Remove the bossbar:
IUN: bossbar remove zombiehealth

Create objective:
scoreboard objectives add zombieHealth dummy

Initialize the bossbar:
IUN: execute as @e[tag=raidZombie] store result score @s zombieHealth run data get entity @s Health
CUA: scoreboard players operation #fakePlayer zombieHealth += @e[tag=raidZombie] zombieHealth
CUA: execute store result bossbar zombiehealth max run scoreboard players get #fakePlayer zombieHealth

Update the bossbar:
RUA: execute as @e[tag=raidZombie] store result score @s zombieHealth run data get entity @s Health
CUA: scoreboard players operation #fakePlayer zombieHealth += @e[tag=raidZombie] zombieHealth
CUA: execute store result bossbar zombiehealth value run scoreboard players get #fakePlayer zombieHealth
CUA: execute unless score #fakePlayer zombieHealth matches 1.. run bossbar remove zombiehealth
CUA: scoreboard players reset #fakePlayer zombieHealth







Tags:
minecraft
adventure map
map making
commands
command blocks
1.18
custom commands
redstone
map ideas
map suggesstions
custom maps
1.19



Other Statistics

Minecraft Statistics For Infernal Device

At present, Infernal Device has 182,428 views spread across 865 videos for Minecraft, accounting for over 10 days of watchable video on his channel. This is 94.82% of the total watchable video for Minecraft on Infernal Device's YouTube channel.