Weak Automata¶
Weak automata is a turtle with a Weak Mechanic Soul upgrade. It has several different abilities:
• Digging blocks with tools
• Interact with blocks with an item or empty hand
• Collect all or specific nearby items
• Detect nearby items
• Detect blocks and entities in front of the turtle
• Charge the turtle with an energy cell in the turtle's inventory
| Peripheral Name | Interfaces with | Has events | Introduced in |
|---|---|---|---|
| weakAutomata | World | No | 0.7r |
Functions¶
getFuelLevel¶
getFuelLevel() -> number
getFuelMaxLevel¶
getFuelMaxLevel() -> number
getFuelConsumptionRate¶
getFuelConsumptionRate() -> number
setFuelConsumptionRate¶
setFuelConsumptionRate(rate: number) -> true | nil, string
rate of the turtle. See Cooldowns and Fuel consumption to learn about how fuel consumption affects fuel cost and operation cooldowns.
Returns true if the consumption rate was successfully set, or nil and an error message.
getDigCooldown¶
getDigCooldown() -> number
getSuckCooldown¶
getSuckCooldown() -> number
getUseOnBlockCooldown¶
getUseOnBlockCooldown() -> number
getConfiguration¶
getConfiguration() -> table
lookAtBlock¶
lookAtBlock() -> table | nil, string
lookAtEntity¶
lookAtEntity() -> table | nil, string
digBlock¶
digBlock() -> true | nil, string
useOnBlock¶
useOnBlock() -> true | nil, string
scanItems¶
scanItems() -> table | nil, string
collectItems¶
collectItems([count: number]) -> true | nil, string
count is given around the turtle.Returns true if it successfully collects items or nil and an error message.
collectSpecificItem¶
collectSpecificItem(item: string[, count: number]) -> true | nil, string
count is given of the given item type that are around the turtle.Returns true if it successfully collects items or nil and an error message.
feedSoul¶
feedSoul() -> (true | nil), string
Returns true and the interaction result as a string or if it fails nil and an error message.
chargeTurtle¶
chargeTurtle([fuel: number]) -> number | nil, string
fuel argument limits the amount of fuel it will try to gain.Returns the amount of fuel points gained or nil and an error message.
Changelog/Trivia¶
0.7r
Added the Weak Automata
