Article Index |
---|
Minecraft Robot Programming |
Robot Movement |
Instruction Set |
All Pages |
Page 3 of 3
<!-- @page { margin: 0.79in } P { margin-bottom: 0.08in } -->
Movement:
forward();
backward();
left();
right();
jumpForward();
jumpBackward();
jumpLeft();
jumpRight();
getReward();
Setting Blocks:
setBlock();
setBlockForward();
setBlockBackward();
setBlockRight();
setBlockLeft();
Loops:
repeat(<number of times>)
{
<instructions to repeat>
}
Function Template:
function <name> ()
{
<function body>
}
With Parameters:
function <name> (<param1>, <param2>, …. )
{
<function body>
}