Type Bindings
Named types used in pattern placeholders. Each binding controls how tokens are consumed, parsed, and converted to Java source.
LOCATIONorg.bukkit.LocationResolves a location reference from a variable name.
teleport player to %loc:LOCATION%VILLAGER_TYPEorg.bukkit.entity.Villager$TypeResolves a single token to a org.bukkit.entity.Villager$Type enum constant.
PLAYER_POSSESSIVEorg.bukkit.entity.PlayerResolves a player reference from a possessive token (e.g. player's). The token must end with 's.
%who:PLAYER_POSSESSIVE% name%who:PLAYER_POSSESSIVE% healthAXOLOTL_VARIANTorg.bukkit.entity.Axolotl$VariantResolves a single token to a org.bukkit.entity.Axolotl$Variant enum constant.
INTintParses an integer number from a single token or a variable reference, supporting modulo with %.
give player diamond %amt:INT%ENTITYorg.bukkit.entity.EntityResolves an entity reference from a variable name. Does not accept possessive syntax.
kill %e:ENTITY%teleport entity to locationGAME_MODEorg.bukkit.GameModeResolves a single token to a org.bukkit.GameMode enum constant.
EXPRStringCaptures all remaining tokens as a raw expression. Preserves string literal quoting and is used for arbitrary sub-expressions.
set %var:EXPR% to %val:EXPR%DOUBLEdoubleParses a decimal number from a single token or a variable reference. Trailing zeros are stripped for cleaner output (e.g. 20.50 becomes 20.5).
set %e:ENTITY% max_health [to] %val:DOUBLE%WORLDorg.bukkit.WorldResolves a world reference from a variable name.
set time in %w:WORLD% to 0MATERIALorg.bukkit.MaterialResolves a single token to a Bukkit Material enum constant, or a variable reference for runtime resolution.
give player %mat:MATERIAL% 1LONGlongParses a long integer from a single token or a variable reference. Useful for large numeric values that exceed the int range.
set %var:EXPR% to %val:LONG%OPStringParses a comparison operator from natural language (e.g. 'greater than', 'is', '==') into a Java operator string.
%a:EXPR% %op:OP% %b:EXPR%DYE_COLORorg.bukkit.DyeColorResolves a single token to a org.bukkit.DyeColor enum constant.
NUMBERNumberParses any numeric literal (int, long, or double) from a single token or a variable reference. Automatically detects the appropriate numeric type based on the token content.
set %var:EXPR% to %val:NUMBER%