Skip to content

Commit 8749600

Browse files
committed
Update pxt.json, blocks/hai2025/all_controls.md, blocks/hai2025/crafting4.md
1 parent c1fda57 commit 8749600

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

blocks/hai2025/all_controls.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ hai.classifyWood(hai.logOak())
3434
hai.classifyWood(hai.logBirch())
3535
hai.classifyWood(hai.logAcacia())
3636
hai.classifyWood(hai.grass()))
37+
hai.upgradeTool(hai.pickaxe(),hai.wood())
38+
hai.upgradeTool(hai.axe(),hai.cobblestone())
39+
hai.upgradeTool(hai.shovel(),hai.cobblestone())
3740
```
3841

3942
```template

blocks/hai2025/crafting4.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
### @flyoutOnly true
2+
### @hideIteration true
3+
### @explicitHints true
4+
5+
# Upgrade tools
6+
7+
## Step 1
8+
Teach the agent that tools can be upgraded to different materials. Upgrade the axe, pickaxe, and shovel to stone tools.
9+
10+
#### ~ tutorialhint
11+
Upgrade each tool with cobblestone
12+
13+
Pickaxe
14+
![Pickaxe](https://raw.githubusercontent.com/ReWrite-Media/makecode/master/blocks/hai2025/img/pickaxe_upgrade.png "Pickaxe")
15+
Axe
16+
![Axe](https://raw.githubusercontent.com/ReWrite-Media/makecode/master/blocks/hai2025/img/axe_upgrade.png "Axe")
17+
Shovel
18+
![Shovel](https://raw.githubusercontent.com/ReWrite-Media/makecode/master/blocks/hai2025/img/shovel_upgrade.png "Shovel")
19+
20+
```ghost
21+
hai.upgradeTool(hai.pickaxe(),hai.cobblestone())
22+
hai.upgradeTool(hai.pickaxe(),hai.wood())
23+
hai.upgradeTool(hai.axe(),hai.cobblestone())
24+
hai.upgradeTool(hai.shovel(),hai.cobblestone())
25+
```
26+
```template
27+
hai.upgradeTool(hai.axe(),hai.ghostBlock())
28+
hai.upgradeTool(hai.ghostBlock(),hai.ghostBlock())
29+
hai.upgradeTool(hai.ghostBlock(),hai.ghostBlock())
30+
31+
```
32+
```package
33+
hai2025-ts=github:ReWrite-Media/hai2025-ts#v0.0.74
34+
```

pxt.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
"blocks/hai2025/crafting2.md",
112112
"blocks/hai2025/crafting3.md",
113113
"blocks/hai2025/all_controls.md",
114-
"books/hai2025/crafting4.md",
115-
"blocks/hai2025/shelter1.md"
114+
"blocks/hai2025/shelter1.md",
115+
"blocks/hai2025/crafting4.md"
116116
],
117117
"testFiles": [],
118118
"targetVersions": {

0 commit comments

Comments
 (0)