Conditions
Boolean expressions used inside if/else if blocks. Can be combined with 'and' or 'or' keywords.
Attribute
%e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE% [value] %op:OP% %val:EXPR%Compares a living entity's attribute value against a number using a relational operator.
if mob's max_health > 20:%e:ENTITY% has %attr:ATTRIBUTE%Checks if a living entity has the specified attribute.
if mob has max_health:%e:ENTITY% (does not have|doesn't have|lacks) %attr:ATTRIBUTE%Checks if a living entity does not have the specified attribute.
if mob lacks attack_damage:Block
%b:BLOCK% type (is|is not) %mat:MATERIAL%Checks if a block's type matches or does not match the given material.
if block type is stone:if block type is not air:%b:BLOCK% (is|is not) (solid|passable)Checks if a block is or is not solid.
if block is solid:if block is not solid:%b:BLOCK% (is|is not) (air|empty)Checks if a block is or is not air (empty).
if block is air:if block is not air:Event
[this] (is|is not) [already] cancelledChecks if the current event is cancelled. Only works inside cancelable event handlers.
if this is cancelled:Inventory
%b:BLOCK% inventory (is|is not) emptyChecks if a container block's inventory is or is not empty.
if block inventory is empty:if block inventory is not empty:%b:BLOCK% is [a] containerChecks if a block is a container (chest, barrel, hopper, etc.).
if block is a container:slot %slot:INT% of %inv:EXPR% is emptyChecks if a specific slot in an inventory contains no item.
if slot 0 of gui is empty:slot %slot:INT% of %inv:EXPR% is not emptyChecks if a specific slot in an inventory contains an item.
if slot 0 of gui is not empty:%inv:EXPR% inventory is emptyChecks if a custom inventory is completely empty.
if gui inventory is empty:%inv:EXPR% inventory is not emptyChecks if a custom inventory contains at least one item.
if gui inventory is not empty:%inv:EXPR% inventory contains %mat:MATERIAL%Checks if a custom inventory contains at least one item of the given material.
if gui inventory contains diamond:%inv:EXPR% inventory does not contain %mat:MATERIAL%Checks if a custom inventory does not contain any item of the given material.
if gui inventory does not contain diamond: