#A mod letting the player be a boss in multiplayer fabric 1.20.1

1 messages · Page 1 of 1 (latest)

pastel wigeon
#

Heyo i need a mod that will let me (Inkboi_) be a boss for the final moments of the beta of the Minecraft server for 1.20.1 fabric

spark forge
#

If you're looking for something custom-made, the fabric discord might be a good place to ask. Though I'll warn you that it's not very likely.

clear perch
#

What exactly do you mean by "be a boss" ?

#

like a bossfight?

pastel wigeon
#

Just a bossbar that shows that specific players health

#

Because i tried with commands and i believe i done something wrong

dense lava
#

It's definitely possible with commands

#

but you will need a repeating command block or a #tick function to update the bar every tick

#

I think these should work
Setup:

/bossbar add yourid_player playername
/bossbar set yourid_player color red
/execute store result bossbar yourid_player max run attribute playername generic.max_health get
/bossbar set yourid_player players @a
/bossbar set style notched_20
/scoreboard objectives add health health

Every tick:

/execute store result bossbar yourid_player value run scoreboard players get playername health

Replace yourid with some id you want to use and replace playername with the player you want to be a boss

#

and you can change the color and style if you like

pastel wigeon
#

I'll see later on a test server