Рет қаралды 457
Today we make custom bosses in Minecraft java 1.20.6! This is just the basics to create a simple boss but anyone can go ahead and use their creativity and add particles, effects, and more to the boss to make it cooler! This should also work in 1.21 as well!
Please Subscribe and Like for more weird tutorials!
The command:
I only added some of the commands
repeat: execute as @e[tag=boss] at @s run attribute @s minecraft:generic.max_health base set 256
conditional: execute as @e[tag=boss] at @s run data modify entity @s Health set value 256
(did not add the command for armor and weapon)
(add tag bossPhase1, bossBar and remove tag boss)
bossbar stuff
repeat: execute store result bossbar minecraft:boss value run data get entity @e[tag=bossBar,limit=1] Health
chain: execute as @e[tag=bossBar,limit=1] at @s store result score @s bossHealth run data get entity @s Health
bossbar command to remove the bar on top if no boss
repeat: execute if entity @e[tag=bossBar] run bossbar set minecraft:boss players @a
chain: execute unless entity @e[tag=bossBar] run bossbar set minecraft:boss players none
phase1
repeat: execute as @e[tag=bossPhase1] at @s if score @s bossHealth matches ..170 run tag @s add bossFloat1
conditional: execute as @e[tag=bossFloat1] at @s run summon minecraft:creeper ~ ~ ~ {Tags:["minion"]}
conditional: execute as @e[tag=bossFloat1] at @s run tp @s ~ ~10 ~
conditional: execute as @e[tag=bossFloat1] at @s run data modify entity @s NoGravity set value 1b
CHAIN: execute as @e[tag=bossFloat1] at @s unless entity @e[tag=minion,distance=..100] run tag @s add bossPhase2
conditional: execute as @e[tag=bossPhase2] at @s run data modify entity @s NoGravity set value 0
conditional: execute as @e[tag=bossPhase2] at @s run effect give @s minecraft:strength infinite 2
conditional: execute as @e[tag=bossPhase2] at @s run tag @s remove bossPhase1
conditional: execute as @e[tag=bossPhase2] at @s run tag @s remove bossFloat1
Phase2 is copy and paste of phase1 expect bossPhase1 is bossPhase2 and bossFloat1 is bossFloat2 and bossPhase2 is bossPhase3
Remember that you can go crazy and add particles and other cool stuff and this is just the basics to create a simple boss!
Become A Member - / @vivtorsing
My Discord - / discord
Thanks for watching