File tree Expand file tree Collapse file tree 11 files changed +271
-2
lines changed
Expand file tree Collapse file tree 11 files changed +271
-2
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # hoc2020-md
2+ This is a project
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Get the ball
9+
10+ ## Step 1
11+ Have the Agent scale the wall pressing each button along the way.
12+
13+ ``` ghost
14+ player.onChat("witch", function () {
15+ agent.move(UP, 1)
16+ agent.interact(FORWARD)
17+ agent.move(RIGHT, 3)
18+ agent.move(UP, 2)
19+ agent.interact(FORWARD)
20+ agent.move(LEFT, 3)
21+ agent.move(UP, 1)
22+ agent.interact(FORWARD)
23+ agent.move(RIGHT, 3)
24+ agent.move(UP, 2)
25+ agent.interact(FORWARD)
26+ })
27+ ```
28+ ``` template
29+ ```
30+ ``` package
31+ ```
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Protect the beets
9+
10+ ## Step 1
11+ Place a fence around the beet farm.
12+
13+ ``` ghost
14+ player.onChat("fox", function () {
15+ agent.setItem(OAK_FENCE, 64, 1)
16+ for (let index = 0; index < 11; index++) {
17+ agent.move(FORWARD, 1)
18+ agent.place(BACK)
19+ }
20+ for (let index = 0; index < 6; index++) {
21+ agent.move(LEFT, 1)
22+ agent.place(RIGHT)
23+ }
24+ for (let index = 0; index < 12; index++) {
25+ agent.move(BACK, 1)
26+ agent.place(FORWARD)
27+ }
28+ for (let index = 0; index < 7; index++) {
29+ agent.move(RIGHT, 1)
30+ agent.place(LEFT)
31+ }
32+ })
33+ ```
34+ ``` template
35+
36+ ```
37+ ``` package
38+ ```
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Teach Farming
9+
10+ ## Step 1
11+ Replace all the gravel with dirt and till the dirt into soil.
12+
13+ ``` ghost
14+ player.onChat("teach_farm", function () {
15+ for (let index = 0; index < 3; index++) {
16+ for (let index = 0; index < 10; index++) {
17+ agent.destroy(DOWN)
18+ agent.setItem(DIRT, 1, 1)
19+ agent.place(DOWN)
20+ agent.move(FORWARD, 1)
21+ agent.till(BACK)
22+ }
23+ agent.move(RIGHT, 1)
24+ agent.turn(RIGHT_TURN)
25+ agent.turn(RIGHT_TURN)
26+ agent.move(FORWARD, 1)
27+ for (let index = 0; index < 10; index++) {
28+ agent.destroy(DOWN)
29+ agent.setItem(DIRT, 1, 1)
30+ agent.place(DOWN)
31+ agent.move(FORWARD, 1)
32+ agent.till(BACK)
33+ }
34+ agent.move(LEFT, 1)
35+ agent.turn(LEFT_TURN)
36+ agent.turn(LEFT_TURN)
37+ agent.move(FORWARD, 1)
38+ }
39+ })
40+ ```
41+ ``` template
42+ ```
43+ ``` package
44+ ```
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Teach fishing
9+
10+ ## Step 1
11+ Build the outline of a dock that's 6 blocks long and 4 blocks wide.
12+
13+ ``` ghost
14+ player.onChat("teach_fish", function () {
15+ agent.setItem(PLANKS_BIRCH, 64, 1)
16+ for (let index = 0; index < 6; index++) {
17+ agent.move(FORWARD, 1)
18+ agent.place(DOWN)
19+ }
20+ for (let index = 0; index < 3; index++) {
21+ agent.move(RIGHT, 1)
22+ agent.place(DOWN)
23+ }
24+ for (let index = 0; index < 6; index++) {
25+ agent.move(BACK, 1)
26+ agent.place(DOWN)
27+ }
28+ })
29+ ```
30+ ``` template
31+ ```
32+ ``` package
33+ ```
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " minecraft-hoc2020-md" ,
3+ "version" : " 0.1.0" ,
4+ "dependencies" : {
5+ "core" : " *" ,
6+ "builder" : " *"
7+ },
8+ "files" : [
9+ " README.md" ,
10+ " ball.md" ,
11+ " beets.md" ,
12+ " farming.md" ,
13+ " fishing.md" ,
14+ " rails.md" ,
15+ " ravager.md" ,
16+ " t1.md" ,
17+ " t2.md"
18+
19+ ],
20+ "supportedTargets" : [
21+ " minecraft"
22+ ],
23+ "preferredEditor" : " tsprj"
24+ }
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Lay down some rails
9+
10+ ## Step 1
11+ Connect the two villages using minecart rails.
12+
13+ ``` ghost
14+ player.onChat("rails", function () {
15+ for (let index = 0; index < 6; index++) {
16+ for (let index = 0; index < 4; index++) {
17+ agent.setItem(RAIL, 1, 1)
18+ agent.place(DOWN)
19+ agent.move(FORWARD, 1)
20+ }
21+ agent.move(DOWN, 1)
22+ }
23+ })
24+ ```
25+ ``` template
26+ ```
27+ ``` package
28+ ```
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Introduct the ravager
9+
10+ ## Step 1
11+ Lead the ravager to the 3 marked villagers by navigating the Agent to each one.
12+
13+ ``` ghost
14+ player.onChat("ravager", function () {
15+ agent.move(FORWARD, 11)
16+ agent.turn(LEFT_TURN)
17+ agent.move(FORWARD, 13)
18+ agent.turn(LEFT_TURN)
19+ agent.move(FORWARD, 11)
20+ })
21+ ```
22+ ``` template
23+ ```
24+ ``` package
25+ ```
Original file line number Diff line number Diff line change 1+ ### @codeStart players set @s makecode 0
2+ ### @codeStop players set @s makecode 1
3+
4+ ### @flyoutOnly true
5+ ### @hideIteration true
6+ ### @explicitHints 1
7+
8+ # Move the Agent
9+
10+ ## Step 1
11+ Move the Agent forward 4 blocks onto the gold block.
12+
13+ ``` ghost
14+ player.onChat("t1", function () {
15+ agent.move(FORWARD, 4)
16+ })
17+ ```
18+ ``` template
19+ ```
20+ ``` package
21+ ```
You can’t perform that action at this time.
0 commit comments