Skip to content

Commit f871c8b

Browse files
authored
Merge pull request #27 from CausewayDigital/CU4fix
Fix agent place blocks into ground for Computing U4 L1
2 parents 2cd24ef + 55106dc commit f871c8b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

computing/unit-4/lesson-1.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
## Step 1
66
Rename the **run** element of the ``||Player:on chat command||`` block to **build_gates**.
77

8-
Drag the ``||Agent:agent set active slot||`` code block to the coding Workspace and leave it set it to **1**.
8+
Drag the ``||Agent:agent set active slot||`` code block to the coding Workspace and leave it set it to **1**. Then add a ``||Agent:agent move [forward]||`` block and use the drop-down menu to change it to **up**, and leave the number at **1**.
99

1010
#### ~ tutorialhint
1111
``` blocks
1212
player.onChat("build_gates", function () {
1313
agent.setSlot(1)
14+
agent.move(UP, 1)
1415
})
1516
```
1617

@@ -21,6 +22,7 @@ Drag the ``||Loops:repeat [4] times||`` code block into your ``||Player:on chat
2122
``` blocks
2223
player.onChat("build_gates", function () {
2324
agent.setSlot(1)
25+
agent.move(UP, 1)
2426
for (let index = 0; index < 15; index++) {
2527
2628
}
@@ -36,6 +38,7 @@ Add an ``||Agent:agent move [forward]||`` code block to your main code, use the
3638
``` blocks
3739
player.onChat("build_gates", function () {
3840
agent.setSlot(1)
41+
agent.move(UP, 1)
3942
for (let index = 0; index < 15; index++) {
4043
agent.place(DOWN)
4144
agent.move(RIGHT, 1)
@@ -52,6 +55,7 @@ Drag another ``||Agent:agent move [forward]||`` code block to the coding Workspa
5255
``` blocks
5356
player.onChat("build_gates", function () {
5457
agent.setSlot(1)
58+
agent.move(UP, 1)
5559
for (let index = 0; index < 15; index++) {
5660
agent.place(DOWN)
5761
agent.move(RIGHT, 1)
@@ -71,6 +75,7 @@ Then also add a ``||Agent:agent move [forward]||`` code block from the ``||Agent
7175
``` blocks
7276
player.onChat("build_gates", function () {
7377
agent.setSlot(1)
78+
agent.move(UP, 1)
7479
for (let index = 0; index < 15; index++) {
7580
agent.place(DOWN)
7681
agent.move(RIGHT, 1)
@@ -90,6 +95,7 @@ Now we just need to get our ``||Agent:AGENT||`` to the next starting position to
9095
``` blocks
9196
player.onChat("build_gates", function () {
9297
agent.setSlot(1)
98+
agent.move(UP, 1)
9399
for (let index = 0; index < 15; index++) {
94100
agent.place(DOWN)
95101
agent.move(RIGHT, 1)
@@ -143,6 +149,7 @@ player.onChat("zoo_sign", function () {
143149
})
144150
player.onChat("build_gates", function () {
145151
agent.setSlot(1)
152+
agent.move(UP, 1)
146153
for (let index = 0; index < 15; index++) {
147154
agent.place(DOWN)
148155
agent.move(RIGHT, 1)
@@ -174,6 +181,7 @@ player.onChat("zoo_sign", function () {
174181
})
175182
player.onChat("build_gates", function () {
176183
agent.setSlot(1)
184+
agent.move(UP, 1)
177185
for (let index = 0; index < 15; index++) {
178186
agent.place(DOWN)
179187
agent.move(RIGHT, 1)
@@ -205,6 +213,7 @@ player.onChat("zoo_sign", function () {
205213
})
206214
player.onChat("build_gates", function () {
207215
agent.setSlot(1)
216+
agent.move(UP, 1)
208217
for (let index = 0; index < 15; index++) {
209218
agent.place(DOWN)
210219
agent.move(RIGHT, 1)
@@ -236,6 +245,7 @@ player.onChat("zoo_sign", function () {
236245
})
237246
player.onChat("build_gates", function () {
238247
agent.setSlot(1)
248+
agent.move(UP, 1)
239249
for (let index = 0; index < 15; index++) {
240250
agent.place(DOWN)
241251
agent.move(RIGHT, 1)
@@ -265,6 +275,7 @@ player.onChat("zoo_sign", function () {
265275
})
266276
player.onChat("build_gates", function () {
267277
agent.setSlot(1)
278+
agent.move(UP, 1)
268279
for (let index = 0; index < 15; index++) {
269280
agent.place(DOWN)
270281
agent.move(RIGHT, 1)

0 commit comments

Comments
 (0)