👥Target patterns
Target patterns define who and where a message is sent. For example, let's say you want one text to be sent if the receiver is a player and another different text to be sent if the receiver is the console, well, you can do that on a single message with these patterns.
Any other pattern can be applied inside any target pattern, but keep in mind the color limitations.
ActionBar
Messages can be sent to a player action bar with this pattern. Note that this pattern will be ignored if the receiver of the message is not a player. Here is the pattern: <ab:Text to send/ab>
Let's see a an example. Imagine we want to send both an action bar message and a regular chat message, then our message would look something like this:
<ab:&aThis goes to the ActionBar/ab>&aThis goes to the chat

Console
What if we want a chat message to only be sent to the console and not players? Well, that's easy too. Let's take the ActionBar example, making it so players only receive the ActionBar message and the console receives its own message.
<ab:&aThis goes to the ActionBar/ab><c:&aThis goes to the console/c>
We already know how that looks in-game, but let's see the console

Player
A message without any target pattern would be sent to any target that receives it, but what if we want one message to be sent only to players and another message to be sent only to the console? We can achieve that with this pattern: <p:Text to send/p>
, so let's take a look at an example:
<p:&aThis goes only to players/p><c:&aThis goes only to the console/c>
So in-game, that looks like this

Last updated
Was this helpful?