Skip to content
KoryuObihiro edited this page Oct 21, 2011 · 22 revisions

Syntax: message.($entity|world|server).$messagealias

Description: Sends a message with the specified filters. It is recommended that you use double quotes where you are actually defining the message to be sent - see example.

There are two major features that most configgers will find tasteful for Message routines (included in the examples at the bottom):

  • Dynamic insertion of string/number properties. These are encapsulated with % marks. See the bullets below and the Dynamic Number References page for an exhaustive list of what you can use.

    • event.environment

    • event.rangedelement

    • event.world

    • $entity.armorset

    • $entity.group - prints a block-noted list of player groups.

    • $entity.name - "null" if not a player.

    • $entity.region - prints a block-noted list of regions the entity is in.

    • $entity.tag - prints a block-noted list of entity tags.

    • $entity.wield - Player or Enderman's item in hand. Otherwise returns "null".

  • Color support! Use "&" to set a color, which is a valid hexadecimal digit (0-9, a-f), case-insensitive.

Examples:

Damage:
     - 'if attacker.type.player and binom.30'
         - 'mult.2'
         - 'message.target.You took a critical hit!'
Spawn:
    - "message.target.&3Welcome to life in &4%target.world%&3, human child!"

See also: Group

Clone this wiki locally