#A mod letting the player be a boss in multiplayer fabric 1.20.1
1 messages · Page 1 of 1 (latest)
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.
Just a bossbar that shows that specific players health
Because i tried with commands and i believe i done something wrong
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
I'll see later on a test server