Skip to content

Commit 29dfc8f

Browse files
committed
initial commit
1 parent 887655a commit 29dfc8f

File tree

11 files changed

+271
-2
lines changed

11 files changed

+271
-2
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# hoc2020-md
2+
This is a project

ball.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
```

beets.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
```

farming.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
```

fishing.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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+
```

pxt.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
}

rails.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
```

ravager.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
```

t1.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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+
```

0 commit comments

Comments
 (0)