Actions.
Every step a rule can take, with its parameters, their types, and bounds.
Messages.
Send a message
Sends a chat message.
Send text to to
Parameters
- text
- text, up to 256 characters, required. Up to 256 characters; {player} is the player in context.
- to
- players, required. Who it affects.
Show a title
Shows a title on screen.
Show the title text to to
Parameters
- text
- text, up to 64 characters, required. Up to 64 characters.
- subtitle
- text, up to 128 characters, optional. Up to 128 characters.
- fadeIn
- a number, 0 to 10, optional. Seconds, 0.5 by default.
- stay
- a number, 0 to 60, optional. Seconds, 3.5 by default.
- fadeOut
- a number, 0 to 10, optional. Seconds, 1 by default.
- to
- players, required. Who it affects.
Show action bar text
Shows text just above the hotbar.
Show text above the hotbar of to
Parameters
- text
- text, up to 128 characters, required. Up to 128 characters.
- to
- players, required. Who it affects.
Play a sound
Plays a sound to players where they stand.
Play sound to to
Parameters
- sound
- a sound, required. A sound ID.
- volume
- a number, 0 to 10, optional. 0 to 10, 1 by default.
- pitch
- a number, 0.5 to 2, optional. 0.5 to 2, 1 by default.
- to
- players, required. Who it affects.
Show particles
Shows particles at a place.
Show count particle at at
Parameters
- particle
- a particle, required. A particle ID.
- count
- a whole number, 1 to 500, optional. 1 to 500, 20 by default.
- spread
- a number, 0 to 16, optional. How far they scatter, in blocks.
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
- color
- a colour, optional. For dust particles, as #rrggbb.
Show a boss bar
Shows a boss bar at the top of the screen, or updates it.
Show the boss bar bar saying text to to
Parameters
- bar
- a name, required. A name for the bar, so later steps can update or hide it.
- text
- text, up to 128 characters, required. Up to 128 characters.
- color
- pink, blue, red, green, yellow, purple or white, optional. The bar's colour.
- style
- solid, segmented_6, segmented_10, segmented_12 or segmented_20, optional. Solid, or split into notches.
- progress
- a number, 0 to 100, optional. How full it is, 0 to 100.
- to
- players, required. Who it affects.
Hide a boss bar
Hides a boss bar.
Hide the boss bar bar
Parameters
- bar
- a name, required. The bar's name.
Items.
Give an item
Gives an item.
Give count item to to
Parameters
- item
- an item, required. An item, or a custom item.
- count
- a whole number, 1 to 64, optional. From 1 to 64; 1 by default.
- to
- players, required. Who it affects.
Give a random item
Gives a random item a player could get in survival.
Give count random items to to
Parameters
- count
- a whole number, 1 to 16, optional. From 1 to 16; 1 by default.
- to
- players, required. Who it affects.
Take items
Takes items from players' inventories.
Take count item from to
Parameters
- item
- items, required. Items, tags and custom items; any of them is taken.
- count
- a whole number, 1 to 2304, optional. How many; all of them when left out.
- to
- players, required. Who it affects.
Clear inventory
Empties players' inventories.
Empty the inventory of to
Parameters
- to
- players, required. Who it affects.
Equip an item
Puts an item in a hand or armour slot; what was there goes into the inventory.
Put item in the slot of to
Parameters
- item
- an item, required. An item, or a custom item.
- slot
- hand, offhand, head, chest, legs or feet, required. Where it goes.
- to
- players, required. Who it affects.
Drop an item
Drops an item on the ground.
Drop count item at at
Parameters
- item
- an item, required. An item, or a custom item.
- count
- a whole number, 1 to 64, optional. From 1 to 64; 1 by default.
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
Enchant held item
Adds an enchantment to the item in each player's main hand.
Enchant what to holds with enchantment level
Parameters
- enchantment
- an enchantment, required. An enchantment ID.
- level
- a whole number, 1 to 255, optional. 1 to 255, 1 by default.
- to
- players, required. Who it affects.
Shuffle inventories
Swaps the players' inventories around at random; spectators are left out.
Shuffle the inventories of to
Parameters
- to
- players, required. Who it affects.
Mobs and entities.
Apply an effect
Applies a potion effect.
Give to effect level for seconds seconds
Parameters
- effect
- an effect, required. An effect ID.
- seconds
- a number, 1 to 86400, required. From 1 to 86,400.
- level
- a whole number, 1 to 255, optional. From 1 to 255; 1 by default.
- hideParticles
- yes or no, optional. Hides the effect's particles.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Clear effects
Removes potion effects.
Clear the effect effects of to
Parameters
- effect
- an effect, optional. One effect; all of them when left out.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Heal
Heals players or mobs.
Heal to by amount
Parameters
- amount
- a number, 0 to 1024, optional. Health points (2 is a heart); fully when left out.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Damage
Hurts players or mobs.
Hurt to by amount
Parameters
- amount
- a number, 0 to 1024, required. Health points (2 is a heart).
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Set health
Sets health; 0 kills.
Set the health of to to value
Parameters
- value
- a number, 0 to 1024, required. Health points (2 is a heart).
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Kill
Kills players or mobs, with their drops.
Kill to
Parameters
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Remove
Makes mobs and other entities vanish, without drops; players are left alone.
Remove to
Parameters
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Set an attribute
Changes an attribute, such as scale, speed, gravity or maximum health, until the challenge ends.
Set attribute of to to value
Parameters
- attribute
- an attribute, required. An attribute ID.
- value
- a number, -1000000 to 1000000, required. The attribute's new value.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Reset an attribute
Puts an attribute back to normal.
Reset attribute of to
Parameters
- attribute
- an attribute, required. An attribute ID.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Set on fire
Sets players or mobs on fire.
Set to on fire for seconds seconds
Parameters
- seconds
- a number, 0 to 600, required. 0 to 600; 0 puts the fire out.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Freeze
Freezes players or mobs as powder snow does.
Freeze to for seconds seconds
Parameters
- seconds
- a number, 0 to 600, required. 0 to 600; 0 thaws them.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Launch
Pushes players or mobs up and the way they face.
Launch to up up forward forward
Parameters
- up
- a number, -10 to 10, optional. -10 to 10.
- forward
- a number, -10 to 10, optional. -10 to 10.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Push
Pushes players or mobs along a direction, or toward a place.
Push to toward toward along direction with strength
Parameters
- direction
- a vector, optional. The way to push; or give a place to push toward.
- toward
- a place, optional. A place to push toward; or give a direction.
- strength
- a number, 0.1 to 10, optional. 0.1 to 10; 1 is a firm shove.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Pull
Pulls players or mobs toward a place.
Pull to toward toward with strength
Parameters
- toward
- a place, required. Where they are pulled to.
- strength
- a number, 0.1 to 10, optional. 0.1 to 10; 1 is a firm tug.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Set velocity
Sets how players or mobs are moving.
Set the velocity of to to vector
Parameters
- vector
- a vector, required. Blocks per tick along each axis.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Set gravity
Makes gravity pull players or mobs down, up or not at all, until the challenge ends.
Set gravity for to to direction at strength
Parameters
- direction
- down, up or none, required. Down as usual, up, or none.
- strength
- a number, 0 to 10, optional. 0 to 10; the game's own pull is 0.08.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Mount
Puts one entity on another's back.
Put rider on vehicle
Parameters
- rider
- an entity, required. Who rides.
- vehicle
- an entity, required. What they ride.
Set invulnerable
Makes players or mobs take no damage, or take it again.
Make to invulnerable: on
Parameters
- on
- yes or no, required. Yes for no damage at all.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Teleport
Moves players or mobs to a place.
Teleport to to destination
Parameters
- destination
- a place, required. Where they go.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Glow
Outlines players or mobs so they show through walls, or stops that.
Set whether to glow to glowing
Parameters
- glowing
- yes or no, required. Whether they glow.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Name
Names mobs; the name shows above them. Players are left alone.
Name to name
Parameters
- name
- text, up to 64 characters, required. Up to 64 characters.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Make mobs attack
Sends mobs after a player.
Make to attack target
Parameters
- target
- a player, required. Whom they go after.
- to
- mobs, required. The mobs it affects.
Let mobs think
Lets mobs move and act, or stops them where they stand.
Set whether to think and move to on
Parameters
- on
- yes or no, required. Whether they move and act.
- to
- mobs, required. The mobs it affects.
Tag
Gives mobs or players a tag, so later steps can find them.
Tag to with tag
Parameters
- tag
- a name, required. The tag's name.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Untag
Takes a tag off mobs or players.
Take the tag tag off to
Parameters
- tag
- a name, required. The tag's name.
- to
- entities, required. Who or what it affects: players, mobs or other entities.
Players.
Set hunger
Sets players' hunger bar.
Set the hunger of to to value
Parameters
- value
- a number, 0 to 20, required. 0 to 20; 20 is full.
- saturation
- a number, 0 to 20, optional. 0 to 20.
- to
- players, required. Who it affects.
Give experience
Gives or takes experience.
Give to amount experience unit
Parameters
- amount
- a number, -1000000 to 1000000, required. May be negative.
- unit
- points or levels, optional. Points or levels.
- to
- players, required. Who it affects.
Set game mode
Changes players' game mode.
Put to in gamemode mode
Parameters
- gamemode
- survival, creative, adventure or spectator, required. The game mode.
- to
- players, required. Who it affects.
Shuffle positions
Swaps the players' positions around at random, so nobody stays put; spectators are left out.
Shuffle the positions of to
Parameters
- to
- players, required. Who it affects.
Set max health
Sets how many hearts players have, until the challenge ends.
Set the max health of to to hearts hearts
Parameters
- hearts
- a number, 0.5 to 512, required. 0.5 to 512.
- to
- players, required. Who it affects.
Copy inventory
Gives players a copy of someone's inventory.
Copy the inventory of from to to
Parameters
- from
- a player, required. Whose inventory is copied.
- to
- players, required. Who it affects.
Swap inventories
Two players trade inventories.
Swap the inventories of a and b
Parameters
- a
- a player, required. One player.
- b
- a player, required. The other.
Swap positions
Two players trade places.
Swap the positions of a and b
Parameters
- a
- a player, required. One player.
- b
- a player, required. The other.
Lock slots
Locks the last slots of players' inventories; they show a barrier and can't be used.
Lock count slots of to
Parameters
- count
- a whole number, 1 to 36, required. 1 to 36, from the bottom right of the inventory up.
- to
- players, required. Who it affects.
Unlock slots
Unlocks every slot locked before.
Unlock the slots of to
Parameters
- to
- players, required. Who it affects.
Set a slot
Puts an item in one slot of players' inventories.
Put count item in slot slot of to
Parameters
- slot
- a whole number, 0 to 40, required. 0 to 8 the hotbar, 9 to 35 the inventory, 36 to 39 armour, 40 the off hand.
- item
- an item, required. What to put there.
- count
- a whole number, 1 to 64, optional. 1 to 64.
- to
- players, required. Who it affects.
Clear a slot
Empties one slot of players' inventories.
Clear slot slot of to
Parameters
- slot
- a whole number, 0 to 40, required. 0 to 40, as set_slot counts them.
- to
- players, required. Who it affects.
Set team
Puts players on one of the file's teams, leaving any other.
Put to on team team
Parameters
- team
- a team's id, required. One of the file's teams.
- to
- players, required. Who it affects.
Clear team
Takes players off their team.
Take to off their team
Parameters
- to
- players, required. Who it affects.
Run a command
Runs a command as each player, with their own permissions.
Have to run command
Parameters
- command
- text, required. The command, without the slash.
- to
- players, required. Who it affects.
Set spawn point
Sets where players respawn.
Set the spawn point of to to at
Parameters
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
- to
- players, required. Who it affects.
Allow flying
Lets players fly, or stops them.
Set whether to can fly to allowed
Parameters
- allowed
- yes or no, required. Whether they can fly.
- to
- players, required. Who it affects.
Point compasses
Points players' compasses at a place.
Point the compasses of to at at
Parameters
- at
- a place, required. Where compasses point.
- to
- players, required. Who it affects.
Menus.
Open a menu
Shows players one of the challenge's menus.
Open menu for to
Parameters
- menu
- a menu's id, required. One of the file's menus.
- to
- players, required. Who it affects.
Close the menu
Closes whatever menu players have open.
Close the menu for to
Parameters
- to
- players, required. Who it affects.
Game.
Run a console command
Runs one of the game's own commands as the server: give, effect, tp, summon, fill, setblock, kill, gamemode, time, weather, title, playsound, particle, tellraw, attribute, clear, xp, spawnpoint, difficulty, gamerule or worldborder; never op, stop or execute.
Run command as the server
Parameters
- command
- text, required. The command, without the slash.
Lose the challenge
Ends the challenge as lost.
Lose: reason
Parameters
- reason
- text, up to 128 characters, required. Up to 128 characters; {player} is the player in context.
Win the challenge
Ends the challenge as won.
Win: reason
Parameters
- reason
- text, up to 128 characters, optional. Up to 128 characters.
Complete a goal
Marks an objective complete.
Complete the goal objective
Parameters
- objective
- a goal's id, required. An objective's id.
World.
Spawn a mob
Spawns mobs or other entities.
Spawn count of mob at at
Parameters
- mob
- a kind of mob, required. What kind of mob.
- count
- a whole number, 1 to 50, optional. 1 to 50, 1 by default.
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
- name
- text, up to 64 characters, optional. A name shown above it, up to 64 characters.
- health
- a number, 1 to 1024, optional. Its maximum health, 1 to 1024.
- glowing
- yes or no, optional. Outlined so it can be seen through walls.
- baby
- yes or no, optional. A baby, for mobs that have them.
- noAi
- yes or no, optional. Stands still and does nothing.
- silent
- yes or no, optional. Makes no sounds.
- equipment
- an item for each equipment slot, optional. Items by slot.
- attack
- yes or no, optional. Goes after the player in context.
- tag
- a name, optional. A tag the mobs carry, so later steps can find them.
- persistent
- yes or no, optional. Keeps the mobs until something removes them; true by default when tagged.
- as
- a name for each one, optional. A name for the spawned mobs, for the steps after this one; the game spawns them a tick later, so the next step waits for them.
Strike lightning
Strikes lightning at a place.
Strike lightning at at
Parameters
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
- harmless
- yes or no, optional. Only the flash and the sound.
Explosion
Makes an explosion at a place.
Explode at at with power power
Parameters
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
- power
- a number, 0 to 10, optional. 0 to 10; TNT is 4.
- fire
- yes or no, optional. Sets fires.
- breakBlocks
- yes or no, optional. Destroys blocks; true by default.
Place a block
Places a block.
Place block at at
Parameters
- block
- a kind of block, required. What kind of block.
- at
- a place, optional. Where it happens; at the player, or the event's place, when left out.
- physics
- yes or no, optional. Let sand fall and water flow; true by default.
Fill blocks
Turns some blocks into one kind, or into one of several at random per block.
Fill in with block
Parameters
- block
- kinds of block, required. What they become; one at random each from a list.
- in
- blocks, required. Which blocks: those in a box, a layer, a chunk, or a list.
- chance
- a whole number, 1 to 100, optional. The percentage of them changed; all when left out.
- physics
- yes or no, optional. Let sand fall and water flow; false by default.
Replace blocks
Turns blocks of some kinds into others.
Turn from in in into to
Parameters
- in
- blocks, required. Which blocks to look through.
- from
- kinds of block, required. The kinds to replace; ids and tags.
- to
- kinds of block, required. What they become; one at random from a list.
- chance
- a whole number, 1 to 100, optional. The percentage replaced; all when left out.
- per
- block or chunk, optional. Per block, each deciding for itself, or per chunk, one pick each.
Clear blocks
Turns blocks into air.
Clear in
Parameters
- in
- blocks, required. Which blocks.
Break a block
Breaks a block as a player would.
Break at
Parameters
- at
- a block, required. The block.
- drops
- yes or no, optional. Drop what it would drop; true by default.
Break blocks
Breaks many blocks as a player would.
Break in
Parameters
- in
- blocks, required. Which blocks.
- drops
- yes or no, optional. Drop what they would drop; false by default.
Set the biome
Changes the biome where some blocks are.
Make in biome
Parameters
- in
- blocks, required. Which blocks.
- biome
- a biome, required. A biome id.
Set the game speed
Runs the game faster or slower; the challenge's clock keeps real time.
Run the game at multiplier times its speed
Parameters
- multiplier
- a number, 0.1 to 10, required. 0.1 to 10; 1 is normal.
Set the spawn rate
Changes how many mobs of a kind the world spawns, and how often.
Spawn category mobs up to limit every ticksPerSpawn ticks
Parameters
- category
- monster, animal, water_animal or ambient, required. Which kind of mob.
- limit
- a whole number, 0 to 1000, required. The most at once near players, 0 to 1000; the game's own is 70.
- ticksPerSpawn
- a whole number, 1 to 1200, optional. Ticks between spawn attempts, 1 to 1200.
Set the time
Sets the time of day.
Set the time to time
Parameters
- time
- a number, 0 to 23999, required. 0 to 23999; 0 is sunrise, 6000 noon, 13000 night, 18000 midnight.
Set the weather
Changes the weather.
Set the weather to weather for seconds seconds
Parameters
- weather
- clear, rain or thunder, required. The weather.
- seconds
- a whole number, 1 to 86400, optional. How many seconds; the weather cycle decides when left out.
Set a game rule
Changes a game rule.
Set the rule rule to value
Parameters
- rule
- a game rule, required. A game rule ID.
- value
- the game rule's value, required. true, false or a whole number, as the rule takes.
Set difficulty
Changes the difficulty.
Set the difficulty to difficulty
Parameters
- difficulty
- peaceful, easy, normal or hard, required. The difficulty.
Set the world border
Moves the world border.
Set the world border to size blocks over seconds seconds
Parameters
- size
- a number, 1 to 60000000, required. In blocks, 1 to 60,000,000.
- seconds
- a whole number, 0 to 86400, optional. Seconds to get there; at once when 0.
- center
- a place, optional. Its centre; where it is now when left out.
Flow.
If
Runs some steps if a check holds, and others if it doesn't.
If condition
Parameters
- condition
- yes or no, required. The check.
- then
- steps, 1 to 50 of them, required. What happens when it holds.
- else
- steps, 1 to 50 of them, optional. What happens when it doesn't.
Repeat
Runs some steps several times.
Repeat times times
Parameters
- times
- a whole number, 1 to 10000, required. 1 to 10,000.
- do
- steps, 1 to 50 of them, required. The steps to repeat.
For each
Runs some steps once for each thing in a list; for players, each is the player in those steps.
For each as of list
Parameters
- list
- a list of anything, required. The list.
- as
- a name for each one, optional. A name for the thing of each round; "each" when left out.
- do
- steps, 1 to 50 of them, required. The steps for each thing.
Wait
Waits before the next steps, on the challenge clock.
Wait seconds seconds
Parameters
- seconds
- a number, 0.05 to 86400, required. 0.05 to 86400.
Pick at random
Runs one of several options, chosen at random.
Pick at random
Parameters
- options
- the options, each its own steps, 2 to 10 of them, required. Each option's weight and steps.
Run a function
Runs a function's steps here, with values for its inputs.
Run function
Parameters
- function
- a function's name, required. The function's name.
- with
- the function's inputs, optional. A value for each of the function's inputs.
Send a signal
Sets off Signal received rules.
Send the signal signal
Parameters
- signal
- a name, required. The signal's name.
Stop
Stops this run of the rule; nothing after it happens.
Stop
Variables.
Set a variable
Sets a variable to a value of its type.
Set variable to value for of
Parameters
- variable
- a variable's name, required. A declared variable.
- value
- anything, required. The new value, of the variable's type.
- of
- a player, optional. For a per-player variable: whose; the player in context when left out.
Change a number
Adds to a number variable; the amount may be negative.
Add amount to variable for of
Parameters
- variable
- a variable's name, required. A number variable.
- amount
- a number, -1000000000 to 1000000000, required. How much to add.
- of
- a player, optional. For a per-player variable: whose; the player in context when left out.
Clear a variable
Empties a variable: nobody, nowhere, nothing, 0.
Clear variable for of
Parameters
- variable
- a variable's name, required. A declared variable.
- of
- a player, optional. For a per-player variable: whose; the player in context when left out.
Add to a list
Adds a thing to a list variable, if it isn't there.
Add item to variable for of
Parameters
- variable
- a variable's name, required. A list variable.
- item
- anything, required. The thing to add, of the list's kind.
- of
- a player, optional. For a per-player variable: whose; the player in context when left out.
Remove from a list
Takes a thing out of a list variable.
Remove item from variable for of
Parameters
- variable
- a variable's name, required. A list variable.
- item
- anything, required. The thing to remove, of the list's kind.
- of
- a player, optional. For a per-player variable: whose; the player in context when left out.
Event.
Cancel the event
Stops the event from happening.
Cancel the event
Change the damage
Changes how much damage the hit does.
Set the damage to value
Parameters
- value
- a number, 0 to 1024, required. Health points (2 is a heart).
Drop nothing
Removes what the block, mob or player would drop.
Drop nothing
Add a drop
Adds an item to what is dropped.
Also drop count item
Parameters
- item
- an item, required. An item, or a custom item.
- count
- a whole number, 1 to 64, optional. From 1 to 64; 1 by default.
Multiply the drops
Drops several times what would be dropped.
Drop times times as much
Parameters
- times
- a whole number, 0 to 100, required. 0 to 100; 0 drops nothing.
Set the drops
Drops this item instead of whatever would have dropped.
Drop count item instead
Parameters
- item
- an item, required. What drops.
- count
- a whole number, 1 to 64, optional. 1 to 64.
Change dropped experience
Changes how much experience is dropped.
Set the dropped experience to amount
Parameters
- amount
- a number, 0 to 100000, required. 0 to 100,000.
Keep inventory
The player keeps their items and levels this time.
Keep the inventory