forked from ReWrite-Media/hoc2020-md
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
271 additions
and
2 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# hoc2020-md | ||
This is a project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Get the ball | ||
|
||
## Step 1 | ||
Have the Agent scale the wall pressing each button along the way. | ||
|
||
```ghost | ||
player.onChat("witch", function () { | ||
agent.move(UP, 1) | ||
agent.interact(FORWARD) | ||
agent.move(RIGHT, 3) | ||
agent.move(UP, 2) | ||
agent.interact(FORWARD) | ||
agent.move(LEFT, 3) | ||
agent.move(UP, 1) | ||
agent.interact(FORWARD) | ||
agent.move(RIGHT, 3) | ||
agent.move(UP, 2) | ||
agent.interact(FORWARD) | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Protect the beets | ||
|
||
## Step 1 | ||
Place a fence around the beet farm. | ||
|
||
```ghost | ||
player.onChat("fox", function () { | ||
agent.setItem(OAK_FENCE, 64, 1) | ||
for (let index = 0; index < 11; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(BACK) | ||
} | ||
for (let index = 0; index < 6; index++) { | ||
agent.move(LEFT, 1) | ||
agent.place(RIGHT) | ||
} | ||
for (let index = 0; index < 12; index++) { | ||
agent.move(BACK, 1) | ||
agent.place(FORWARD) | ||
} | ||
for (let index = 0; index < 7; index++) { | ||
agent.move(RIGHT, 1) | ||
agent.place(LEFT) | ||
} | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Teach Farming | ||
|
||
## Step 1 | ||
Replace all the gravel with dirt and till the dirt into soil. | ||
|
||
```ghost | ||
player.onChat("teach_farm", function () { | ||
for (let index = 0; index < 3; index++) { | ||
for (let index = 0; index < 10; index++) { | ||
agent.destroy(DOWN) | ||
agent.setItem(DIRT, 1, 1) | ||
agent.place(DOWN) | ||
agent.move(FORWARD, 1) | ||
agent.till(BACK) | ||
} | ||
agent.move(RIGHT, 1) | ||
agent.turn(RIGHT_TURN) | ||
agent.turn(RIGHT_TURN) | ||
agent.move(FORWARD, 1) | ||
for (let index = 0; index < 10; index++) { | ||
agent.destroy(DOWN) | ||
agent.setItem(DIRT, 1, 1) | ||
agent.place(DOWN) | ||
agent.move(FORWARD, 1) | ||
agent.till(BACK) | ||
} | ||
agent.move(LEFT, 1) | ||
agent.turn(LEFT_TURN) | ||
agent.turn(LEFT_TURN) | ||
agent.move(FORWARD, 1) | ||
} | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Teach fishing | ||
|
||
## Step 1 | ||
Build the outline of a dock that's 6 blocks long and 4 blocks wide. | ||
|
||
```ghost | ||
player.onChat("teach_fish", function () { | ||
agent.setItem(PLANKS_BIRCH, 64, 1) | ||
for (let index = 0; index < 6; index++) { | ||
agent.move(FORWARD, 1) | ||
agent.place(DOWN) | ||
} | ||
for (let index = 0; index < 3; index++) { | ||
agent.move(RIGHT, 1) | ||
agent.place(DOWN) | ||
} | ||
for (let index = 0; index < 6; index++) { | ||
agent.move(BACK, 1) | ||
agent.place(DOWN) | ||
} | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"name": "minecraft-hoc2020-md", | ||
"version": "0.1.0", | ||
"dependencies": { | ||
"core": "*", | ||
"builder": "*" | ||
}, | ||
"files": [ | ||
"README.md", | ||
"ball.md", | ||
"beets.md", | ||
"farming.md", | ||
"fishing.md", | ||
"rails.md", | ||
"ravager.md", | ||
"t1.md", | ||
"t2.md" | ||
|
||
], | ||
"supportedTargets": [ | ||
"minecraft" | ||
], | ||
"preferredEditor": "tsprj" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Lay down some rails | ||
|
||
## Step 1 | ||
Connect the two villages using minecart rails. | ||
|
||
```ghost | ||
player.onChat("rails", function () { | ||
for (let index = 0; index < 6; index++) { | ||
for (let index = 0; index < 4; index++) { | ||
agent.setItem(RAIL, 1, 1) | ||
agent.place(DOWN) | ||
agent.move(FORWARD, 1) | ||
} | ||
agent.move(DOWN, 1) | ||
} | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Introduct the ravager | ||
|
||
## Step 1 | ||
Lead the ravager to the 3 marked villagers by navigating the Agent to each one. | ||
|
||
```ghost | ||
player.onChat("ravager", function () { | ||
agent.move(FORWARD, 11) | ||
agent.turn(LEFT_TURN) | ||
agent.move(FORWARD, 13) | ||
agent.turn(LEFT_TURN) | ||
agent.move(FORWARD, 11) | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Move the Agent | ||
|
||
## Step 1 | ||
Move the Agent forward 4 blocks onto the gold block. | ||
|
||
```ghost | ||
player.onChat("t1", function () { | ||
agent.move(FORWARD, 4) | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### @codeStart players set @s makecode 0 | ||
### @codeStop players set @s makecode 1 | ||
|
||
### @flyoutOnly true | ||
### @hideIteration true | ||
### @explicitHints 1 | ||
|
||
# Plant a sapling | ||
|
||
## Step 1 | ||
Give yourself a sappling and plant it. | ||
|
||
```ghost | ||
player.onChat("t2", function () { | ||
mobs.give( | ||
mobs.target(LOCAL_PLAYER), | ||
OAK_SAPLING, | ||
1 | ||
) | ||
}) | ||
``` | ||
```template | ||
``` | ||
```package | ||
``` |