Skip to content

Commit 31eb332

Browse files
authored
Merge pull request #29 from CausewayDigital/master
Rewrite computing unit 1 lesson 3
2 parents 0114ce5 + b429481 commit 31eb332

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

computing/unit-1/lesson-3.md

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,25 @@
1-
### @hideIteration false
2-
### @explicitHints 1
1+
### @hideIteration true
2+
### @explicitHints true
33

44

55
# Lesson 3
66

77
## Step 1
8-
To program your Agent to build, select an ``||player:on chat||`` command and rename it from **run** to **build_a_bridge**. Select an ``||agent: agent place on move||`` command and drag it inside the ``||player:on chat||`` command.
9-
10-
### ~ tutorialhint
11-
Don't forget to set the condition to **true**, so that the Agent will be able to build.
12-
13-
## Step 3
14-
Identify **direction** in which you would like the Agent to place blocks by selecting an ``||agent: agent place||``.
15-
16-
## Step 4
17-
Now add an ``||agent: agent move||`` command to ensure that the Agent moves in the right direction.
8+
With everything you have learnt so far, can you code your agent to build a bridge across the water?
9+
The gap is 3 blocks wide.
10+
When done, press the **Play** button to compile the code, then go to the Minecraft world, press **T** and type **build_a_bridge**.
1811

1912
### ~ tutorialhint
20-
Make sure your Agent has **building material** in its inventory. The blocks should be in **slot 1**.
21-
22-
## Step 5
23-
When done, press the **Play** button to compile the code, then go to the Minecraft world, press **T** and type **build_a_bridge**.
13+
Don't forget to place **down** when placing blocks!
14+
Also make sure your Agent has **building material** in its inventory. The blocks should be in **slot 1**.
2415

25-
## Step 6
26-
Now you can practice using these commands in different combinations.
2716

2817
```ghost
2918
player.onChat("run", function () {
3019
player.say(":)")
3120
agent.teleportToPlayer()
3221
agent.turn(LEFT_TURN)
3322
agent.move(FORWARD, 1)
34-
agent.destroy(FORWARD)
35-
agent.collectAll()
36-
agent.setAssist(PLACE_ON_MOVE, false)
3723
agent.place(FORWARD)
3824
})
3925
```

0 commit comments

Comments
 (0)