Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

String Variables

Matt Peterson edited this page Jun 11, 2013 · 10 revisions

String Variables are primarily used in Message Routines. Many of the {variable}_types can even be changed with a TypeName alias. See: FAQ: Is it possible to make custom Death messages?.

  • {item}_type - For example player_wielded_type Returns a Bukkit Enum unless aliased by TypeNames.
  • {entity}_type - For example attacker_type, among many possible results.
  • damage_type - Because non-entity damage sources require a different format.
  • heal_type - Checks for the source whenever an entity gains health.
  • {entity}_name - The name of the player referenced, if applicable.
  • {entity}_owner - Only applicable to Ocelots and Tamed_wolves.
  • {entity}_target - The entity Name (or if no name, the Type) of the entity being chased/attacked by the {entity}.
  • {entity}_passenger - Returns any entity riding on another, such as a boat passenger.
  • {entity}_rider - For any entity that has a passenger, for example minecarts or spiderJockeys.
  • {entity}_world - Gives the world name based on where the event occurred.
  • cause - Gives the cause of an event, such as Teleport
  • spawn_reason - Gives the cause of the Spawn Event
  • {entity}_tags - A list of all integer tags on the entity.
  • {player}_displayname
  • {player}_listname
  • {block}_line({integer}) - The exact string on that sign, at line number {number}.

Relevant

All Integer Variables are also usable in the same way, but will (as expected) show a number, not a word.

Clone this wiki locally