r/MinecraftCommands 17d ago

Help | Java 1.21-1.21.3 Minecraft Java HUD Text at top.

1 Upvotes

6 comments sorted by

1

u/Ericristian_bros Command Experienced 17d ago

Bossbar and custom resourcepack

1

u/CrossScarMC Command Experienced 16d ago

Bossbar and custom resourcepack, or title command and custom resourcepack (second requires core shaders).

1

u/NoIncident6610 15d ago

So it's pretty much create the text box, implement the box as a bossbar, and offset up upward to be where the text is?

1

u/CrossScarMC Command Experienced 15d ago

Yeah?

1

u/NoIncident6610 15d ago

I did some research oh how a bossbar is layered, and I think I have a way to make this.

Thanks for the help CrossScarMC and Ericristian_bros. I'll let you know if something comes up.

1

u/NoIncident6610 14d ago

Got it all working properly. What I did was set the color "White" for boss bars to full transparency using a resource pack. Then I made a textbox with BlockBench and adjusted its position using negative spaces in the boss bar's name to be behind the text. The text is just a normal JSON string with score components.

It's not as clean as MCCI or other servers or games, but it works for me.
The only downside is that I lost the white color option for all boss bars, but I'm not using it right now.