Difference between revisions of "Commands"
From 8x9craft
(→Teleportation) |
|||
(17 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | <languages/> | ||
+ | <translate> | ||
+ | <!--T:1--> | ||
Commands are divided into two groups: one dealing with writing a program and another where commands manipulate a crab directly. | Commands are divided into two groups: one dealing with writing a program and another where commands manipulate a crab directly. | ||
− | |||
+ | == JS == <!--T:2--> | ||
+ | |||
+ | <!--T:3--> | ||
With those commands you can program a crab inside Minecraft. Each player can write her or his own program line by line and execute it pointing at a crab and running command <code>/js run</code>. | With those commands you can program a crab inside Minecraft. Each player can write her or his own program line by line and execute it pointing at a crab and running command <code>/js run</code>. | ||
+ | <!--T:4--> | ||
{| class="example" | {| class="example" | ||
! Command signature | ! Command signature | ||
Line 29: | Line 35: | ||
| /js run | | /js run | ||
| Run current program. | | Run current program. | ||
+ | |- | ||
+ | | /js eval | ||
+ | | | ||
|- | |- | ||
| /js runall | | /js runall | ||
Line 43: | Line 52: | ||
|} | |} | ||
− | == Crab == | + | == Crab == <!--T:5--> |
− | |||
+ | ==== Managing crabs ==== <!--T:6--> | ||
+ | |||
+ | <!--T:7--> | ||
{| class="example" | {| class="example" | ||
! Command signature | ! Command signature | ||
Line 55: | Line 66: | ||
|- | |- | ||
| /crab name [name] | | /crab name [name] | ||
− | | Give a particular name to | + | | Give a particular name to the crab. |
|- | |- | ||
− | | /crab creative on or off | + | | /crab creative [on or off] |
− | | Change mode to | + | | Change the mode to creative. Under the creative mode you can place blocks without them being taken from the crab's inventory. |
|} | |} | ||
− | |||
+ | ==== Moving a crab ==== <!--T:8--> | ||
+ | |||
+ | <!--T:9--> | ||
{| class="example" | {| class="example" | ||
! Command signature | ! Command signature | ||
Line 68: | Line 81: | ||
|- | |- | ||
| /crab back | | /crab back | ||
− | | Move crab back. | + | | Move the crab back. |
|- | |- | ||
| /crab down | | /crab down | ||
− | | Move crab down. | + | | Move the crab down. |
|- | |- | ||
| /crab forward | | /crab forward | ||
− | | Move crab forward. | + | | Move the crab forward. |
|- | |- | ||
| /crab move | | /crab move | ||
− | | Move | + | | Move the crab if it's standing in the way. |
|- | |- | ||
| /crab stepLeft | | /crab stepLeft | ||
− | | Move crab left. | + | | Move the crab left. |
|- | |- | ||
| /crab stepRight | | /crab stepRight | ||
− | | Move crab right. | + | | Move the crab right. |
|- | |- | ||
| /crab turnLeft | | /crab turnLeft | ||
− | | | + | | Make the crab turn left. |
|- | |- | ||
| /crab turnRight | | /crab turnRight | ||
− | | | + | | Make the crab turn right. |
|- | |- | ||
| /crab up | | /crab up | ||
− | | Move crab up. | + | | Move the crab up. |
|} | |} | ||
− | |||
+ | ==== Teleportation ==== <!--T:10--> | ||
+ | |||
+ | <!--T:11--> | ||
{| class="example" | {| class="example" | ||
! Command signature | ! Command signature | ||
! Description | ! Description | ||
|- | |- | ||
− | | /crab delhome [name] | + | | /crab delhome [home name] |
| Remove a named position. | | Remove a named position. | ||
|- | |- | ||
− | | /crab here [name] | + | | /crab here [crab name] |
− | | Teleport | + | | Teleport the crab with a given name onto the block pointed at by the player. |
|- | |- | ||
− | | /crab home [name] | + | | /crab home [home name] |
− | | Teleport | + | | Teleport the crab pointed at by the player to the position saved under the given name. |
|- | |- | ||
− | | /crab sethome [name] | + | | /crab sethome [home name] |
− | | Save the position that the player is looking at under | + | | Save the position that the player is looking at under the given name. |
− | |||
− | |||
− | |||
|- | |- | ||
| /crab listhome | | /crab listhome | ||
Line 120: | Line 132: | ||
|} | |} | ||
− | ==== Interacting with the world ==== | + | ==== Interacting with the world ==== <!--T:12--> |
+ | <!--T:13--> | ||
{| class="example" | {| class="example" | ||
! Command signature | ! Command signature | ||
Line 127: | Line 140: | ||
|- | |- | ||
| /crab dig | | /crab dig | ||
− | | Make | + | | Make the crab dig. |
+ | |- | ||
+ | | /crab digUp | ||
+ | | | ||
+ | |- | ||
+ | | /crab digDown | ||
+ | | | ||
|- | |- | ||
| /crab inspect | | /crab inspect | ||
− | | Inspect | + | | Inspect the block in front of the crab. |
|- | |- | ||
| /crab place [slot] | | /crab place [slot] | ||
− | | Place | + | | Place the item at the given slot in the crab's inventory in front of the crab. |
|} | |} | ||
+ | |||
+ | </translate> |
Latest revision as of 02:44, 17 October 2017
Commands are divided into two groups: one dealing with writing a program and another where commands manipulate a crab directly.
Contents
JS
With those commands you can program a crab inside Minecraft. Each player can write her or his own program line by line and execute it pointing at a crab and running command /js run
.
Command signature | Description |
---|---|
/js [line] [code] | Insert a line of JavaScript code into current program at a given line number. |
/js clear | Clear current program. |
/js files | Display player's file list. |
/js list | Display contents of current program. |
/js load [filename] | Load contents of a given file into current program. |
/js renum | Renumber current program's lines. |
/js run | Run current program. |
/js eval | |
/js runall | Run current program on all player's crabs. |
/js save [filename] | Save current program to a given file. |
/js stop | Stop execution of crab's program. |
/js stopall | Stop execution of all crabs programs. |
Crab
Managing crabs
Command signature | Description |
---|---|
/crab list | Display a list of your crabs living in the world. |
/crab name [name] | Give a particular name to the crab. |
/crab creative [on or off] | Change the mode to creative. Under the creative mode you can place blocks without them being taken from the crab's inventory. |
Moving a crab
Command signature | Description |
---|---|
/crab back | Move the crab back. |
/crab down | Move the crab down. |
/crab forward | Move the crab forward. |
/crab move | Move the crab if it's standing in the way. |
/crab stepLeft | Move the crab left. |
/crab stepRight | Move the crab right. |
/crab turnLeft | Make the crab turn left. |
/crab turnRight | Make the crab turn right. |
/crab up | Move the crab up. |
Teleportation
Command signature | Description |
---|---|
/crab delhome [home name] | Remove a named position. |
/crab here [crab name] | Teleport the crab with a given name onto the block pointed at by the player. |
/crab home [home name] | Teleport the crab pointed at by the player to the position saved under the given name. |
/crab sethome [home name] | Save the position that the player is looking at under the given name. |
/crab listhome | Display a list with all saved positions. |
Interacting with the world
Command signature | Description |
---|---|
/crab dig | Make the crab dig. |
/crab digUp | |
/crab digDown | |
/crab inspect | Inspect the block in front of the crab. |
/crab place [slot] | Place the item at the given slot in the crab's inventory in front of the crab. |