#Titleraw say name

1 messages · Page 1 of 1 (latest)

wraith heron
#

I want to make a thing so titleraw will announce the name of the target tje titleraw is targeting for example /titleraw Squarepancake08 actionbar etc etc "add name":"@wraith heron" i want it to be automatic and work with execute as @a at @s run /titleraw @s like so is this possible??

hollow karma
#

Yes, you can use the "selector" component. @wraith heron

execute as @a at @s run tellraw @s {"rawtext":[{"selector":"@s"},{"text":" is a cool person"}]}
thin orbit
#

What’s that 😭🙏 just avoid commands and use player.sendMessage()

#
player.onScreenDisplay.setTitle(`${player.name} is a cool person`)
hollow karma
#

Er, I had it wrong too—/titleraw and not /tellraw—but the principle is the same

wraith heron
#

Ohhh yeah i forgot abt selector i haven't played in months so im alttile rusty 😅

#

Thanks 😁

hollow pewter