Message

Returns a constructed Message object which can be used with DisplayGameModeMessage, DisplayNotificationMessage, DisplayHighlightedWorldLogMessage, and DisplayCustomMessage. The Message object is created by providing a format String, which can take up to 3 format items.
A format String is a String that contains {} (called braces) within them, which can be substituted for parameters. For example, the String - {} gained {} points! - can be given a Player and Number parameter and could output as John gained 2 points!. See the example below for how this can be used with blocks.

Note: It's your responsibility to ensure a safe and fair experience for others, violating the EA User Agreement by using offensive or inappropriate text may result in account bans.

Inputs

  1. String

  2. String | Number | Player

    Optional

  3. String | Number | Player

    Optional

  4. String | Number | Player

    Optional

Output

  • Message
<block type="Message">
    <value name="VALUE-0">
        <block type="Text">
            <field name="TEXT">{} took the lead! They have {} points!</field>
        </block>
    </value>
    <value name="VALUE-1">
        <block type="EventPlayer"></block>
    </value>
    <value name="VALUE-2">
        <block type="GetGamemodeScore">
            <value name="VALUE-0">
                <block type="EventPlayer"></block>
            </value>
        </block>
    </value>
</block>

Notes

The supplied string literal is subject to vague censoring rules PRE-formatting. This means that, if you try to print a message with the string literal test B: {} test, and a parameter for {} it will change the text to test ***** test and throw an error saying that there's no braces in the text.

This is presumably due to the game thinking you wrote b*itch. : = i, { = c -> bi c}, which is close enough to the swear word.