File tree Expand file tree Collapse file tree 3 files changed +39
-2
lines changed
Expand file tree Collapse file tree 3 files changed +39
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,9 @@ hai.classifyWood(hai.logOak())
3434hai.classifyWood(hai.logBirch())
3535hai.classifyWood(hai.logAcacia())
3636hai.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
Original file line number Diff line number Diff line change 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+ ```
Original file line number Diff line number Diff line change 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" : {
You can’t perform that action at this time.
0 commit comments