Statements
Single-line actions that execute within a block.
Attribute
set %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE% [base] [value] [to] %val:EXPR%Sets the base value of an attribute on a living entity.
set mob's max_health to 40reset %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE%Resets an entity's attribute base value to its default value.
reset mob's max_healthadd %val:EXPR% [to] %e:ENTITY_POSSESSIVE% %attr:ATTRIBUTE%Adds a value to an entity's attribute base value.
add 10 to mob's max_healthBlock
set %b:BLOCK% type [to] %mat:MATERIAL%Sets the type (material) of a block.
set block type to stonebreak %b:BLOCK% naturallyBreaks a block naturally, dropping its items as if mined by a player.
break block naturallyset %b:BLOCK% data [to] %data:EXPR%Sets raw block data on a block from a string representation.
set block data to "facing=north"fill (from|between) %a:LOCATION% (to|and) %b:LOCATION% with %mat:MATERIAL%Fills all blocks in a cuboid region between two locations with the given material.
fill from loc1 to loc2 with stoneCommand
description %d:STRING%Sets the description of a command.
description "Teleports the player home"name %n:EXPR%Sets the primary name of a command, useful if you need to have the command name based on a variable or expression.
name tpaliases %list:EXPR%Adds comma-separated aliases to a command.
aliases tp, teleport, gotonamespace %ns:EXPR%Sets the namespace of a command.
namespace mypluginpermission %perm:STRING%Sets the required permission for a command.
permission "myplugin.admin"Inventory
add %item:MATERIAL% %amt:INT% to %b:BLOCK% inventoryAdds the specified amount of a material to a container block's inventory.
add diamond 3 to block inventoryadd %item:ITEMSTACK% to %b:BLOCK% inventoryAdds an item stack to a container block's inventory.
add myItem to block inventoryclear %b:BLOCK% inventoryClears all items from a container block's inventory.
clear block inventory