Here are all the blocks you will need to complete the challenges in Rocklandia. However, if you can find another way to successfully complete the challenge, that works, too! Click here to learn about more MakeCode Blocks.
Runs code when you type a certain message in the game chat.
command: the chat keyword that will be associated with this command (* for all messages), eg: “jump”
handler: code to run when the keyword is typed in the chat by the current player
Teleports the Agent to another position facing in a certain direction.
pos: the destination position.
dir: compass direction, in degrees, that the agent will face.
Request the agent to move in a certain direction.
direction: the direction to move the agent, such as: FORWARD
blocks: how far the agent should move, in blocks, like: 1
Turn the agent in a specific direction.
direction: the turn direction, like: TurnDirection.Left
Places an item or block in the world from the agent’s currently selected inventory slot.
direction: the direction in which to place the item, eg: BACK
Commands the agent to destroy a block in the given direction.
direction: the direction in which the agent will destroy a block, eg: FORWARD
Set some amount of blocks or items in an inventory slot.
blockOrItem: the block or item to place in a slot
count: the number of blocks or items to put in the slot
slot: the slot index to put the blocks or items in, from 1 to 27, eg: 1
Create a new world, (absolute), position: East/West, up/down, North/South.
A world position is the distance in each direction from the world’s origin, which is (0, 0, 0). The distance is measured in blocks.
World positions aren’t changed by the player’s current position. They always stay the same.
This block fits inside the green oval in the teleport block.
x: the East (+x) or West (-x) distance from world coordinate 0, in blocks
y: the up (+y) or down (-y) distance from world coordinate 0, in blocks
z: the South (+z) or North (-z) distance from world coordinate 0, in blocks
Run part of the program the number of times you say.
loops: the number of times the code will repeat
function: the blocks of code that will repeat as many times as specified.