#✅ | how to make text in a text box centered?

1 messages · Page 1 of 1 (latest)

timber sleet
#

.

static kestrelBOT
# timber sleet .

To center text inside a Text element, wrap the lines you want centered between the center-alignment markers:

^^^
This text is centered.
So is this line.
^^^

Everything between the ^^^ markers will render centered. When you want to go back to normal alignment, just close the block with ^^^ and start typing again.
If you ever need other alignments, ||| works the same way for right-aligned text.

More styling tricks are in the Text Formatting guide: Text Formatting 😊

timber sleet
#

and how to change the font from deafult pixelated one minecraft has?

static kestrelBOT
# timber sleet and how to change the font from deafult pixelated one minecraft has?

You can change the font inside Text elements by using Minecraft’s font tags around the text:

%!!uniform%This uses the “uniform” font.%!!%

Replace uniform with any font provided by your resource pack (you can add new fonts via a resource pack and refer to them by name). Just wrap each piece of text you want in that font between %!!font_name% and %!!%.

More font tricks are in the Text Formatting guide if you want to go deeper: Text Formatting

timber sleet
#

okay... I have buttons I want to assign to "continue" (joining last world person played), "multiplayer" and "singleplayer" (opening menu with list of singleplayer and multiplayer words), "options" (opening settings), "mods" (opening mod menu), and "quit" (leaving the game)
how to do that without using vanilla buttons?

static kestrelBOT
# timber sleet okay... I have buttons I want to assign to "continue" (joining last world person...

You can replace the vanilla buttons with custom ones by giving each custom button the right action script (no vanilla widgets needed).

  1. Create a custom button and right‑click → Manage Action Script.
  2. Add the matching action:
    • Continue: use the join_last_world action (no value).
    • Singleplayer / Multiplayer / Options / Mods: add the opengui action and paste the screen identifier of the target menu.
      To find those IDs, open the screen, enable the Debug Overlay, and copy the identifier shown there (see the steps in Screen Identifiers).
    • Quit: use quitgame.

If you’d rather mimic the vanilla button (usually easier for things like Mods or Options), use the mimicbutton action instead—right-click the target button to copy its identifier/locator and supply it to mimicbutton (refer to the “Mimic Vanilla/Mod Button” entry in the Action Scripts guide).

Remember to save the layout after assigning the actions.

timber sleet
#

okay... if I have text on top of these buttons (not written on them, separate elements), how to make game ignore these? now I can't click on most of a button because of said text

static kestrelBOT
# timber sleet okay... if I have text on top of these buttons (not written on them, separate el...

Right-click the Text element that is covering your buttons, go to Interactable and set it to Disabled. That makes the text stop absorbing mouse clicks/scrolls, so the buttons underneath become clickable again.

More context: this is explained under the “Text in Menus” guide, where it says Text elements are interactable by default and you can turn that off when needed (see the “Disabling Interactability” section).

#

✅ | how to make text in a text box centered?