forked from ModDamage/ModDamage
-
Notifications
You must be signed in to change notification settings - Fork 0
String Variables
1cec0ld edited this page Jan 9, 2013
·
9 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 exampleplayer_wielded_typeReturns a Bukkit Enum unless aliased by TypeNames. -
{entity}_type- For exampleattacker_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.