这个玩意是只能用在.lua里面的东西,只能通过执行文件来运行。所以别想着用命令去运行这些东西。因为这玩意卡了我好长时间。
如果不知道怎么入门,可以去b站上找一个up的视频这里就不拉连接了。
这些东西的使用办法是turtle.命令 就可以例如(turtle.forward())就可以,有些括号就像摆设一样,一点用也没有。
建议是用外部编辑器直接写代码,降维修改,推荐vcode因为vcode有一个插件可以用插件名字是 ComputerCraft
安装上这个插件后就可以提示代码内容了
代码写完直接保存,再到游戏里运行就可以了,不需要反复进存档
但是因为官方没有对这些内容的中文翻译,用机器翻译先临时翻译一个大致的内容,凑合使用之后可能会折腾。肯定不会
命令 | 官方翻译 | 机器翻译 |
craft([limit=64]) | Craft a recipe based on the turtle's inventory. | 根据海龟的库存制作一个合成表。 |
forward() | Move the turtle forward one block. | 将海龟向前移动一个步。 |
back() | Move the turtle backwards one block. | 将海龟向后移动一个步。 |
up() | Move the turtle up one block. | 把乌龟往前移动一个步。 |
down() | Move the turtle down one block. | 把乌龟移下一个步。 |
turnLeft() | Rotate the turtle 90 degrees to the left. | 将海龟向左旋转90度。 |
turnRight() | Rotate the turtle 90 degrees to the right. | 将海龟向右旋转90度。 |
dig([side]) | Attempt to break the block in front of the turtle. | 试着打破乌龟面前的方块。 |
digUp([side]) | Attempt to break the block above the turtle. | 试着打破乌龟上方的方块。 |
digDown([side]) | Attempt to break the block below the turtle. | 试着打破乌龟下面的方块。 |
place([text]) | Place a block or item into the world in front of the turtle. | 在乌龟前面的世界中放置一个方块或物品。 |
placeUp([text]) | Place a block or item into the world above the turtle. | 在海龟上方的世界中放置一个方块或物品。 |
placeDown([text]) | Place a block or item into the world below the turtle. | 在海龟下方的世界中放置一个方块或物品。 |
drop([count]) | Drop the currently selected stack into the inventory in front of the turtle, or as an item into the world if there is no inventory. | 将当前选择的堆栈放入海龟前面的库存中,或者如果没有库存,则将其作为物品放入世界中。 |
dropUp([count]) | Drop the currently selected stack into the inventory above the turtle, or as an item into the world if there is no inventory. | 将当前选择的堆栈放入海龟上方的库存中,或者如果没有库存,则将其作为物品放入世界中。 |
dropDown([count]) | Drop the currently selected stack into the inventory below the turtle, or as an item into the world if there is no inventory. | 将当前选择的堆栈放入海龟下方的库存中,或者如果没有库存,则将其作为物品放入世界中。 |
select(slot) | Change the currently selected slot. | 更改当前选择的槽位。 |
getItemCount([slot]) | Get the number of items in the given slot. | 获取给定槽中的物品数量。 |
getItemSpace([slot]) | Get the remaining number of items which may be stored in this stack. | 获取可能存储在此堆栈中的剩余项数。 |
detect() | Check if there is a solid block in front of the turtle. | 检查乌龟前面是否有一个坚实的块。 |
detectUp() | Check if there is a solid block above the turtle. | 检查海龟上方是否有一个实心块。 |
detectDown() | Check if there is a solid block below the turtle. | 检查乌龟下面是否有一个实心块。 |
compare() | Check if the block in front of the turtle is equal to the item in the currently selected slot. | 检查海龟前面的块是否等于当前选中槽中的项。 |
compareUp() | Check if the block above the turtle is equal to the item in the currently selected slot. | 检查海龟上方的块是否等于当前选中槽中的项。 |
compareDown() | Check if the block below the turtle is equal to the item in the currently selected slot. | 检查海龟下面的块是否等于当前选定槽中的项目。 |
attack([side]) | Attack the entity in front of the turtle. | 攻击乌龟前面的实体。 |
attackUp([side]) | Attack the entity above the turtle. | 攻击乌龟上方的实体。 |
attackDown([side]) | Attack the entity below the turtle. | 攻击乌龟下方的实体。 |
suck([count]) | Suck an item from the inventory in front of the turtle, or from an item floating in the world. | 从海龟面前的库存中吸取一个物品,或者从世界上漂浮的物品中吸取一个物品。 |
suckUp([count]) | Suck an item from the inventory above the turtle, or from an item floating in the world. | 从海龟上方的库存中吸取物品,或者从世界上漂浮的物品中吸取物品。 |
suckDown([count]) | Suck an item from the inventory below the turtle, or from an item floating in the world. | 从乌龟下方的物品清单中吸取物品,或者从世界上漂浮的物品中吸取物品。 |
getFuelLevel() | Get the maximum amount of fuel this turtle currently holds. | 获得这只海龟目前所能持有的最大燃料量。 |
refuel([count]) | Refuel this turtle. | 给这只乌龟加燃料。 |
compareTo(slot) | Compare the item in the currently selected slot to the item in another slot. | 将当前选中槽中的项目与另一个槽中的项目进行比较。 |
transferTo(slot [, count]) | Move an item from the selected slot to another one. | 将一个物品从选中的槽移动到另一个槽。 |
getSelectedSlot() | Get the currently selected slot. | 获取当前选择的插槽。 |
getFuelLimit() | Get the maximum amount of fuel this turtle can hold. | 给这只乌龟最大限度的燃料。 |
equipLeft() | Equip (or unequip) an item on the left side of this turtle. | 在这只乌龟的左边装备(或取消装备)一件物品。 |
equipRight() | Equip (or unequip) an item on the right side of this turtle. | 在这只龟的右边装备(或取消装备)一件物品。 |
inspect() | Get information about the block in front of the turtle. | 获取海龟前面方块的信息。 |
inspectUp() | Get information about the block above the turtle. | 获取海龟上方方块的信息。 |
inspectDown() | Get information about the block below the turtle. | 获取海龟下方方块的信息。 |
getItemDetail([slot [, detailed]]) | Get detailed information about the items in the given slot. | 获取指定槽中物品的详细信息。 |