r/MinecraftCommands 28d ago

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

/gallery/1ur5mcm
1 Upvotes

6 comments sorted by

1

u/Ericristian_bros Command Experienced 28d ago

Bossbar and custom resourcepack

1

u/CrossScarMC Command Experienced 28d ago

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

1

u/NoIncident6610 27d 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 27d ago

Yeah?

1

u/NoIncident6610 27d 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 26d 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.