Skip to content
coolsquid edited this page Jan 25, 2018 · 2 revisions

Properties, or target properties, are dynamic strings that can be inserted into action parameters to provide additional information.

Example:

animal_tame=[
	{
		action=send_chat
		parameters {
			message="%%%tamer.name%%% tamed a %%%mob.name%%%!" # e.g. "CoolSquid tamed Wolf!"
		}
	}
]

Properties

For mob targets

  • name
  • uuid
  • position
  • type
  • x_position
  • y_position
  • z_position
  • health
  • helmet
  • chestplate
  • leggings
  • boots
  • mainhand_item
  • offhand_item
  • current_item

For player targets

  • ip

For block targets

  • id
  • position
  • x_position
  • y_position
  • z_position

For world targets

  • id
  • seed
  • time

For explosions

  • x_position
  • y_position
  • z_position

For damage sources

  • name

For commands

  • name

For lists of strings (e.g. command_arguments)

  • list

No context required

These properties can be used independently of any target or context, i.e. %%%message%%% instead of %%%mob.name%%%.

  • message (chat-related events)

Clone this wiki locally