This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
labs:minecraft [2017/05/17 13:47] mikoenig [Hints] |
labs:minecraft [2020/08/31 21:05] (current) |
||
---|---|---|---|
Line 20: | Line 20: | ||
Run and read through the example program ("TurtleMain"). | Run and read through the example program ("TurtleMain"). | ||
If you can't find the turtle moving about, try printing its location using ''System.out.println(turtle.getLocation())''. | If you can't find the turtle moving about, try printing its location using ''System.out.println(turtle.getLocation())''. | ||
- | If you have trouble understanding what's going on, be sure to check out the [[labs:minecraft#Hints|Hints section]] below! | ||
- | |||
==== Hints ==== | ==== Hints ==== | ||
* In Minecraft the y coordinate is used for the height axis: near 0 you will encounter indestructible bedrock blocks, while ocean level is 64. | * In Minecraft the y coordinate is used for the height axis: near 0 you will encounter indestructible bedrock blocks, while ocean level is 64. | ||
Line 40: | Line 38: | ||
===== Exercise 2 ===== | ===== Exercise 2 ===== | ||
+ | **Setup:** Copy ''/home/lab/local-data/turtles/exercise2/ComputerCraft.cfg'' over the existing file of the same name in ''/home/lab/.minecraft/config'', and restart Minecraft. | ||
+ | |||
Now that you have understood the basics, it is time to add some parallelization! Build tower hollow of height 10 with a 5x5 area and a few holes in the side (see whiteboard). The tower should be made of cobblestone only (block name ''minecraft:cobblestone''). | Now that you have understood the basics, it is time to add some parallelization! Build tower hollow of height 10 with a 5x5 area and a few holes in the side (see whiteboard). The tower should be made of cobblestone only (block name ''minecraft:cobblestone''). | ||
Again, the tower should start at y = 90 and be centered around the spawning location. | Again, the tower should start at y = 90 and be centered around the spawning location. | ||
- | Try to complete this task as quickly as possible by using as many turtles as you can handle! On world seed ''qwer'' 60 seconds is a good time. The assistants' record is 47.2 seconds. | + | Try to complete this task as quickly as possible by using as many turtles as you can handle! On world seed ''qwer'' 60 seconds is a good time. The assistants' record is 43.1 seconds. |
- | + | ||
- | To tell the mod to look for the tower shape instead of the square, copy ''/home/lab/local-data/turtles/exercise2/ComputerCraft.cfg'' over the existing file of the same name in ''/home/lab/.minecraft/config'', and restart Minecraft. | + | |
==== Hints ==== | ==== Hints ==== |