HyperScript
Docs

← All of the Docs What players see

Action bars and titles

effectsend action bar <text> [to <who>]

Text above the hotbar; it fades after a couple of seconds. send actionbar, in one word, is the same

send action bar "&a+100 Coins!" to player
Try it
effectsend title <text>

Large text in the middle of the screen

send title "&cServer restarting" to all players
Try it
effectwith subtitle <text>

Optional smaller line underneath. with description <text> is the same

send title "&6Victory!" with subtitle "&eYou won!" to player with fadein 10 stay 70 fadeout 20
Try it
expressionto <who>

Optional; the default is the player of this trigger

send action bar "&a+100 Coins!" to player
Try it
effectwith fadein <n> stay <n> fadeout <n>

Optional timings in ticks (20 ticks = 1 second). Any of the three may be left out; the defaults are 10, 70 and 20

send title "&6Victory!" with subtitle "&eYou won!" to player with fadein 10 stay 70 fadeout 20
Try it
Guide and examples
send action bar "&a+100 Coins!" to player
send title "&6Victory!" with subtitle "&eYou won!" to player with fadein 10 stay 70 fadeout 20
send title "&cServer restarting" to all players
PartMeaning
send action bar <text> [to <who>]Text above the hotbar; it fades after a couple of seconds. send actionbar, in one word, is the same
send title <text>Large text in the middle of the screen
with subtitle <text>Optional smaller line underneath. with description <text> is the same
to <who>Optional; the default is the player of this trigger
with fadein <n> stay <n> fadeout <n>Optional timings in ticks (20 ticks = 1 second). Any of the three may be left out; the defaults are 10, 70 and 20

An action bar fades after a couple of seconds. To keep one, say how long: send action bar "&cIn combat" to player for 10 seconds, or until <condition> or while <condition>, which look at the condition four times a second. The text is the one it had when the line ran; for a text that changes, resend it from a timer: every 1 second for all players:. Sending another action bar ends one that was staying.