mirror of
https://github.com/CCLeonOS/LeonOS.git
synced 2026-03-03 15:17:01 +00:00
feat(turtle): 添加自动采矿海龟程序及帮助文档
添加新的海龟自动采矿程序,包含以下功能: - 自动挖掘前方和上方的方块 - 智能燃料管理系统,低燃料时自动补充 - 背包满时自动寻找附近箱子存放物品 - 包含详细的帮助文档和使用说明 同时更新安装程序版本号至0.3.8 Beta 8
This commit is contained in:
72
data/computercraft/lua/rom/help/turtle_miner.hlp
Normal file
72
data/computercraft/lua/rom/help/turtle_miner.hlp
Normal file
@@ -0,0 +1,72 @@
|
||||
=== Turtle Auto Miner ===
|
||||
>>color white
|
||||
A program that automatically mines blocks, manages fuel, and deposits items in chests.
|
||||
|
||||
== Usage ==
|
||||
>>color yellow
|
||||
turtle_miner
|
||||
>>color white
|
||||
|
||||
== Description ==
|
||||
The Turtle Auto Miner is an advanced mining program that allows a turtle to:
|
||||
- Automatically mine blocks in front of it
|
||||
- Manage fuel levels and refuel when necessary
|
||||
- Search for coal ore if no fuel is available in inventory
|
||||
- Find nearby chests and deposit items when inventory is full
|
||||
|
||||
== Features ==
|
||||
>>color green
|
||||
- Automatic mining of blocks in front and above
|
||||
- Intelligent fuel management system
|
||||
- Automatic coal searching when fuel is low
|
||||
- Chest detection and item depositing
|
||||
- Obstacle avoidance
|
||||
- Status updates during operation
|
||||
>>color white
|
||||
|
||||
== How It Works ==
|
||||
1. The turtle will start mining blocks in front of it
|
||||
2. It continuously checks fuel levels
|
||||
3. When fuel is low, it will:
|
||||
- First check inventory for fuel items
|
||||
- If none found, search for coal ore by digging downward
|
||||
4. When inventory is nearly full, it will:
|
||||
- Search for nearby chests in all directions
|
||||
- Deposit all non-tool and non-fuel items into the chest
|
||||
5. The program runs until manually stopped with Ctrl+T or encounters critical issues
|
||||
|
||||
== Fuel Management ==
|
||||
- The turtle will refuel when fuel level drops below 500
|
||||
- It recognizes all fuel items (including coal, charcoal, and other burnable items)
|
||||
- If no fuel is found in inventory, it will dig downward to search for coal ore
|
||||
|
||||
== Inventory Management ==
|
||||
- The turtle considers its inventory full when there are 15 or fewer empty slots
|
||||
- When depositing items, it keeps tools and fuel in inventory
|
||||
- It searches for chests in all four directions, above, and below
|
||||
|
||||
== Important Notes ==
|
||||
>>color red
|
||||
- Make sure the turtle has appropriate mining tools
|
||||
- Keep some fuel in the turtle's inventory before starting
|
||||
- Place a chest nearby to collect mined items
|
||||
- Monitor the turtle's progress periodically
|
||||
- Press Ctrl+T to stop the program at any time
|
||||
>>color white
|
||||
|
||||
== Troubleshooting ==
|
||||
- If the turtle gets stuck, press Ctrl+T to stop and manually move it
|
||||
- If it can't find a chest, place one nearby and restart
|
||||
- If it runs out of fuel, manually add fuel to its inventory
|
||||
- If mining efficiency is low, ensure the turtle has the right tools
|
||||
|
||||
== Examples ==
|
||||
Start the auto miner:
|
||||
>>color yellow
|
||||
turtle_miner
|
||||
>>color white
|
||||
|
||||
View this help message:
|
||||
>>color yellow
|
||||
turtle_miner help
|
||||
>>color white
|
||||
Reference in New Issue
Block a user