Minecraft Wiki
Advertisement

Note: After saving, you have to bypass your browser's cache to see the changes.

Google Chrome, Firefox, Microsoft Edge, and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button.
For details and instructions about other browsers, see Wikipedia:Bypass your cache.

Education Edition commands

List of Education Edition commands, some information were taken from Code Connection API.pdf and at the program folder of Minecraft: Windows 10 Edition.

Gear (item)
This user page is a work in progress. 
Please help in the expansion or creation of this user page by expanding or improving it. The talk page may contain suggestions.
Note: 80
Additional research required. 
This section requires additional research.
Brush
This user page needs cleanup to comply with the style guide. [discuss]
Please help improve this page. The talk page may contain suggestions.
Reason: 80

Main

ability

Commands/infobox

Grants or revokes player with a specific ability.

Syntax
ability <player: target> <ability: string> <value: bool>
Arguments
player: target
Specifies the target to grant/revoke player ability. Must be a player name or target selector.
ability: string
Specifies the player ability.
Must be one of:
  • worldbuilder for ability to become a World Builder.
  • mayfly for ability to fly.
value: bool
Specifies the value to set the ability to, must in between true or false.
Result
Fails if the arguments are not specified correctly.
On success, grants/revokes the player ability into the specified ability.


classroommode

Commands/infobox


Syntax
classroommode


clearfixedinv

Commands/infobox

Clears fixed inventory slots.

Syntax
clearfixedinv
Result
Fails if there are no fixed inventory slots available.
On success, fixed inventory slots cleared successfully.


code

Commands/infobox

Used to access Code Connection.

Syntax
code
Result
Fails if there is no Code Connection installed.
On success, Code Connection connected successfully.


executeasother

Commands/infobox

Executes another command as the specified target.

Syntax
executeasother <origin: target> <position: x y z> <command: string>
Arguments
origin: target
Specifies the target to be the command's executor. Must be a player name or target selector. If more than one entity is selected, the command will be run once as each of them.
position: x y z
Specifies the position from which to run the command. x and z must be within the range -30,000,000 to 30,000,000 (inclusive). Coordinates specified with tilde notation are relative to the target, not to the position of the command's execution.
command: string
Specifies the command to be run. Must be a valid command.
Result
Fails if ...
On success, ...


executeasself

Commands/infobox

Similar to /execute, but executes the command to the executor.

Syntax
executeasself <command: rawText>
Arguments
command: rawText
Specifies the command to be run. Must be a valid command.
Result
Fails if ...
On success, ...


getchunkdata

Commands/infobox

Gets pixels for a specific chunk.

Syntax
getchunkdata <dimension: string> <chunkX: int> <chunkZ: int> <height: int>
Arguments
dimension: string
The dimension name.
chunkX: int
Specifies the coordinates of the chunk in X-axis.
chunkZ: int
Specifies the coordinates of the chunk in Z-axis.
height: int
Specifies the height of the chunk.
Result
Unknown


getchunks

Commands/infobox


Syntax
getchunks <dimension: string>


geteduclientinfo

Commands/infobox


Syntax
geteduclientinfo


getspawnpoint

Commands/infobox


Syntax
getspawnpoint <player: target>
Arguments
player: target
Specifies the target to get the player spawn point. Must be a player name or target selector.
Result
Fails if ...
On success, ...


globalpause

Commands/infobox

Sets or gets the paused state of the game for all players.

Syntax
globalpause <isPaused: bool>
Arguments
isPaused: bool
Specifies the value to pause the world, must in between true or false.
Result
Fails if ...
On success, ...


immutableworld

Commands/infobox

Toggles the world to be able altered or cannot be altered.

Syntax
immutableworld [value: bool]
Arguments
value: bool (optional)
Specifies the value to set the world to be able altered, must in between true or false.
Result
Fails if ...
On success, if true the world cannot be altered, but doors, levers, etc. can still be used, and vice versa if set to false.


position

Commands/infobox

Toggles player coordinates to be displayed on the HUD.

Syntax
position
Result
Always success, coordinates displayed on the HUD succesfully.


querytarget

Commands/infobox

Gets transform, name, and id information about the given target entity or entities.

Syntax
querytarget <victim: target>
Arguments
victim: target
Specifies the targets. Must be one or more player names and/or [#Target selectors|target selectors] separated by spaces (@e is permitted to target entities other than players).
Result
Fails if ...
On success, ...


setfixedinvslot

Commands/infobox

Sets fixed inventory slot with a specific item.

Syntax
setfixedinvslot <fixedinvslotnum: int> <itemName: string> [data: int]
Arguments
fixedinvslotnum: int
Specifies the number of fixed inventory slot.
itemName: string
Specifies the item for the fixed slot. Must be a valid item id (for example, iron_shovel), or block id for which items exist.
data: int (optional)
Specifies the item data of the item. Must be an integer between -2,147,483,648 and 2,147,483,647 (inclusive, without the commas), but values which are invalid for the specified item id revert to 0. If not specified, defaults to 0.
Result
Fails if arguments are not specified correctly.
On success, players are given the specified items in the fixed inventory slot.


setfixedinvslots

Commands/infobox

Sets the amount of fixed inventory slots.

Syntax
setfixedinvslots <fixedinvslotnum: int>
Arguments
fixedinvslotnum: int
Specifies the amount of fixed inventory slots, up into three slots.
Result
Fails if the argument is empty, or not specified correctly.
On success, players grant fixed slots with the specified amount.


worldbuilder

Commands/infobox

Toggles the World Builder ability to enable or disable alternately.

Syntax
worldbuilder
wb
Result
Fails if the player does not have permission to become a World Builder.
On success, player switch the World Builder ability alternately.


Agent

move

Commands/infobox

Moves Agent in specified direction.

Syntax
move <direction: string>
Arguments
direction: string
Specifies the direction of Agent to move.
Must be one of:
  • forward to move Agent forward.
  • back to move Agent backward.
  • left to move Agent leftward.
  • right to move Agent rightward.
  • up to move Agent upward.
  • down to move Agent downward.
Result
Fails if the specified direction is blocked by a block.
On success, Agent moved in the direction specified by one block.


turn

Commands/infobox

Rotate Agent in the specified direction by 90 degrees.

Syntax
turn <direction: string>
Arguments
direction: string
Specifies the direction of Agent to rotate.
Must be one of:
  • left to rotate Agent leftward.
  • right to rotate Agent rightward.
Result
Always success, Agent rotate in the specified direction as expected.


attack

Commands/infobox

Attacks in the direction specified.

Syntax
attack <direction: string>
Arguments
direction: string
Specifies the direction of Agent to attack.
Must be one of:
  • forward to attack forward.
  • back to attack backward.
  • left to attack leftward.
  • right to attack rightward.
  • up to attack upward.
  • down to attack downward.
Result
Always success, Agent attacks in the specified direction by 8♥♥♥♥ attack damage.


destroy

Commands/infobox

Destroys block or item in the specified direction.

Syntax
destroy <direction: string>
Arguments
direction: string
Specifies the direction of Agent to destroy.
Must be one of:
  • forward to destroy block/item on the front.
  • back to destroy block/item on the back.
  • left to destroy block/item on the left-hand side.
  • right to destroy block/item on the right-hand side.
  • up to destroy block/item on the top-hand side.
  • down to destroy block/item on the bottom-hand side.
Result
Fails if the block was unbreakable or a non-solid block.
On success, Agent destroys the block/item by one hit as expected.


drop

Commands/infobox

Drops the given number of items from the specified inventory slot onto the ground by one block in the specified direction.

Syntax
drop <slotNum: int> <quantity:

int> <direction: string>

Arguments
slotNum: int
Specifies the slot number to drop, slots are numbered from 1 to 27.
quantity: int
Specifies the number of items to be dropped from the Agent's inventory slot. Must be between 1 and 64.
direction: string
Specifies the direction of Agent to drop the item(s).
Must be one of:
  • forward to drop item(s) to the front.
  • back to drop item(s) to the back.
  • left to drop item(s) to the left.
  • right to drop item(s) to the right.
Result
Fails if the arguments are not specified correctly or the slot was empty.
On success, returns if items were dropped onto the ground in the direction specified.


dropall

Commands/infobox

Drops all items from all slots onto the ground by one block in the specified direction.

Syntax
dropall <direction: string>
Arguments
direction: string
Specifies the direction of Agent to drop all the items.
Must be one of:
  • forward to drop items to the front.
  • back to drop items to the back.
  • left to drop items to the left.
  • right to drop items to the right.
Result
Fails if the arguments are not specified correctly or the Agent's inventory was empty.
On success, returns if all items were dropped onto the ground in the direction specified.


inspect

Commands/infobox

Returns the name of the block in the specified direction.

Syntax
inspect <direction: string>
Arguments
direction: string
Specifies the direction of Agent to verify the name of the block.
Must be one of:
  • forward to inspect the block on the front.
  • back to inspect the block on the back.
  • left to inspect the block on the left-hand side.
  • right to inpect the block on the right-hand side.
  • up to inspect the block on the top-hand side.
  • down to inspect the block on the bottom-hand side.
Result
Fails if the arguments are not specified correctly.
On success, returns the form of the block in the specified direction. See block id for the complete list.


inspectdata

Commands/infobox

Returns the data value of the block in the specified direction.

Syntax
inspectdata <direction: string>
Arguments
direction: string
Specifies the direction of Agent to verify the data value of the block.
Must be one of:
  • forward to inspect the block on the front.
  • back to inspect the block on the back.
  • left to inspect the block on the left-hand side.
  • right to inpect the block on the right-hand side.
  • up to inspect the block on the top-hand side.
  • down to inspect the block on the bottom-hand side.
Result
Fails if the arguments are not specified correctly.
On success, returns the data value of the block in the specified direction. See block id for the complete list.


detect

Commands/infobox

Detects if there is a collidable block in the specified direction.

Syntax
detect <direction: string>
Arguments
direction: string
Specifies the direction of Agent to detect a collidable block.
Must be one of:
  • forward to detect the block on the front.
  • back to detect the block on the back.
  • left to detect the block on the left-hand side.
  • right to detect the block on the right-hand side.
  • up to detect the block on the top-hand side.
  • down to detect the block on the bottom-hand side.
Result
Fails if the arguments are not specified correctly.
On success, returns if there was a collidable block in the specified direction.


detectredstone

Commands/infobox

Detects redstone signal in the specified direction.

Syntax
detectredstone <direction: string>
Arguments
direction: string
Specifies the direction of Agent to detect a redstone signal.
Must be one of:
  • forward to detect the block on the front.
  • back to detect the block on the back.
  • left to detect the block on the left-hand side.
  • right to detect the block on the right-hand side.
  • up to detect the block on the top-hand side.
  • down to detect the block on the bottom-hand side.
Result
Fails if the arguments are not specified correctly.
On success, returns if the object in the specified direction received a redstone signal at that moment.


transfer

Commands/infobox

Transfers specified quantity of items from the selected slot to another specified slot of Agent's inventory.

Syntax
transfer <srcSlotNum: int> <quantity: int> <dstSlotNum: int>
Arguments
srcSlotNum: int
Specifies the source of slot number to be transferred, slots are numbered from 1 to 27.
quantity: int
Specifies the number of items to be transferred from the Agent's inventory slot.
srcSlotNum: int
Specifies the destination of slot number to be transferred, slots are numbered from 1 to 27.
Result
Fails if the arguments are not specified correctly, or returns false if the destination already has items of a different type, and if the source slot was empty.
On success, returns true if there was a room for the items to be transferred.


createagent

Commands/infobox

Creates Agent on the current player position.

Syntax
createagent
Result
Always success, Agent created succesfully.


tpagent

Commands/infobox

Teleport player to the Agent's position.

Syntax
tpagent
Result
Fails if there is no Agent existed.
On success, player teleported to Agent successfully.


tptoplayer

Commands/infobox

Teleport Agent to the player's position.

Syntax
tpagent
Result
Fails if there is no Agent existed.
On success, Agent teleported to player successfully.


collect

Commands/infobox

Collects all items within a one block from Agent in three dimensions.

Syntax
collect <item: string>
Arguments
Specifies the item to be collected on the block to the Agent's inventory. Must be an item id, or a block id for which an item exists (for example, golden_sword).
Result
Fails if the arguments are not specified correctly or no items of the same name were collected.
On success, returns if any items of the same name were collected.


till

Commands/infobox

Tills grass in the specified direction.

Syntax
till <direction: string>
Arguments
direction: string
Specifies the direction of Agent to till the block.
Must be one of:
  • forward to till the block on the front.
  • back to till the block on the back.
  • left to till the block on the left-hand side.
  • right to till the block on the right-hand side.
  • up to till the block on the top-hand side.
  • down to till the block on the bottom-hand side.
Result
Fails if the arguments are not specified correctly or there is no till-able block in the specified direction.
On success, returns if any till-able block was turned into farmland in the specified direction.


place

Commands/infobox

Right-clicks on the block in the specified direction.

Syntax
place <slotNum: int> <direction: string>
Arguments
slotNum: int
Specifies the slot number of block to be placed, slots are numbered from 1 to 27.
direction: string
Specifies the direction of Agent to place the block.
Must be one of:
  • forward to place the block on the front.
  • back to place the block on the back.
  • left to place the block on the left-hand side.
  • right to place the block on the right-hand side.
  • up to place the block on the top-hand side.
  • down to place the block on the bottom-hand side.
Result
Fails if the arguments are not specified correctly or the specified slot was empty.
On success, returns if a block in the specified inventory slot was placed.
Note
This basically places a block (ex: Place Stone Block) or a placeable item (ex: Place Oak Fence) from the selected inventory slot in the specified direction.
However, this doesn’t interact with things like doors, levers, and containers.
Additionally, when player specifies a slot which contains the following non-place-able items, this behaves as follows:
Place water/lava
  • Bucket
Till grass
Make a path
Spawn a mob
Dye something
Make a fire
Placeable material


getitemcount

Commands/infobox

Returns the number of items in the specified slot, as in how many the player could use before it would be empty.

Syntax
getitemcount <slotNum: int>
Arguments
slotNum: int
Specifies the slot number of items to be counted, slots are numbered from 1 to 27.
Result
Fails if the arguments are not specified correctly.
On success, returns the number of item in the specified slot. See block ids for the complete list.


getitemspace

Commands/infobox

Returns the number of spaces remaining in the specified slot, as in the number of items you could add before it would be full.

Syntax
getitemspace <slotNum: int>
Arguments
slotNum: int
Specifies the slot number of items to be counted, slots are numbered from 1 to 27.
Result
Fails if the arguments are not specified correctly.
On success, returns the remaining number of the item in the specified slot.


getitemdetail

Commands/infobox

Returns the name of the item in the specified slot.

Syntax
getitemdetail <slotNum: int>
Arguments
slotNum: int
Specifies the slot number of items to be counted, slots are numbered from 1 to 27.
Result
Fails if the arguments are not specified correctly.
On success, returns the form of the item in the specified slot. See block id for the complete list.


Advertisement