... | ... | @@ -22,8 +22,6 @@ world is made of a 3D grid of blocks, which can be mined (“dug”) to |
|
|
obtain them as “item” in one’s inventory, allowing one to place them
|
|
|
somewhere else.
|
|
|
|
|
|
Edit
|
|
|
|
|
|
- Before opening Eclipse or Minecraft, run
|
|
|
`/opt/Uebungen/turtles/setup.sh`.
|
|
|
|
... | ... | @@ -36,14 +34,12 @@ Edit |
|
|
- Open a singleplayer world, for example the one we pre-installed for
|
|
|
you. Turtles may now be created by connecting on the port 7473.
|
|
|
|
|
|
Edit
|
|
|
**Task 1**
|
|
|
|
|
|
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())`.
|
|
|
|
|
|
Edit
|
|
|
|
|
|
- In Minecraft the y coordinate is used for the height axis: near 0
|
|
|
you will encounter indestructible bedrock blocks, while ocean level
|
|
|
is 64.
|
... | ... | @@ -52,7 +48,7 @@ Edit |
|
|
can be displayed. This is particularly useful for finding a certain
|
|
|
coordinate.
|
|
|
|
|
|
Edit
|
|
|
**Task 2**
|
|
|
|
|
|
Your first real task is to build a simple 3x1x3 grid (i.e., horizontal,
|
|
|
height 1) of blocks at height y = 90 centered right above the spawning
|
... | ... | @@ -60,8 +56,6 @@ location. The goal here is to get accustomed to the |
|
|
[API](http://computercraft.info/wiki/Turtle_%28API%29). Keep in mind
|
|
|
that turtles need to collect some blocks before being able to place any!
|
|
|
|
|
|
Edit
|
|
|
|
|
|
- Once turtles start placing blocks in the correct spots, the progress
|
|
|
of the building will be displayed in in-game chat.
|
|
|
|
... | ... | @@ -84,7 +78,7 @@ Edit |
|
|
additional methods to allow a turtle to determine its position and
|
|
|
orientation in the world: `getLocation()` and `getFacing()`.
|
|
|
|
|
|
Edit
|
|
|
**Task 3**
|
|
|
|
|
|
**Setup:** Copy
|
|
|
`/home/lab/local-data/turtles/exercise2/ComputerCraft.cfg` over the
|
... | ... | @@ -101,8 +95,6 @@ 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.
|
|
|
|
|
|
Edit
|
|
|
|
|
|
- Use `getItemDetail()` to find out what materials you picked up.
|
|
|
|
|
|
- All function calls are blocking, i.e., they only return once the
|
... | ... | @@ -111,7 +103,7 @@ Edit |
|
|
- In Java, two strings `a` and `b` are compared by calling
|
|
|
`a.equals(b)`.
|
|
|
|
|
|
Edit
|
|
|
**Task 4**
|
|
|
|
|
|
The room will be divided into two teams, each of which will be provided
|
|
|
a server. The goal is to collaboratively build a cobblestone pyramid
|
... | ... | @@ -121,8 +113,6 @@ This is a very open-ended task. Feel free to focus on smaller parts of |
|
|
the problem, such as the efficient harvesting of cobblestone from the
|
|
|
game world.
|
|
|
|
|
|
Edit
|
|
|
|
|
|
- When creating a world, you may want to turn cheats on to allow you
|
|
|
to switch to spectator mode.
|
|
|
|
... | ... | @@ -136,4 +126,4 @@ Edit |
|
|
selecting an existing one from the menu and choosing “Re-Create”.
|
|
|
|
|
|
- Singleplayer worlds pause when the window loses focus unless you
|
|
|
select “Open to LAN” in the menu. |
|
|
select “Open to LAN” in the menu. |
|
|
\ No newline at end of file |