Wednesday, February 8, 2017

How to Use Code in Minecraft Adventure


WORKSPACE

On the right you can see 3 spaces. There is the gamespace: where you see how your code is being put to use. There is the toolbox: where you can find all the tools you are limited to using. There is also the workspace, where you make your code to perform the task.



MOVING AND DESTROYING
In This program, you can move Steve or Alex to a space forward by adding the move forward block. You can also destroy blocks by adding the destroy block button. Finally, you can turn right or left by adding the turn left or turn right blocks.








REPEATING LOOPS AND PLACING BLOCKS

Instead of having to redo the same code every single time, you can place loops to do that for you! You just have to drag what ever you want to repeat under the repeat block to repeat it. You can even repeat other repeat blocks for more complicated codes. In minecraft, you can place blocks to make structures. In code, you just get the place block and pick what you want to place. Like birth planks.

IF STATEMENTS

If statements allow you to perform a certain task if there is something triggering it. For example, if there is lava ahead you could make it so you place a cobblestone to save yourself from dieing. The best part about if statements is that you don't need to tell the computer to do repeat something again, unlike repeat blocks. It can go on forever!

No comments:

Post a Comment