Husbandry Automata¶
Husbandry automata is a turtle with a Husbandry Mechanic Soul upgrade. This upgrade has all of the abilities of a Weak Automata plus some additional abilites:
• Use items on animals
• Get information about an animal
• Scan for nearby animals
• Capture and release animals
Peripheral Name | Interfaces with | Has events | Introduced in |
---|---|---|---|
husbandryAutomata | World | No | 0.7r |
How to craft¶
To create a husbandry soul, you need to feed 3 different types of animals via the feedSoul function to a weak automata core. The core needs to be placed inside the turtle into the current active slot(Usually the first one).
The turtle needs 9 animals in total:
Animal | Amount |
---|---|
Cow | 3 |
Sheep | 3 |
Chicken | 3 |
Step by Step:
- Create a weak automata turtle(A normal turtle with a weak automata core as upgrade)
- Place another weak automata core in the current active slot of the turtle
- run
weakAutomata#feedSoul()
for every animal while the animal is in front of the turtle
Example
core = peripheral.find("weak_automata")
successful, message = core.feedSoul()
print(successful)
print(message)
Functions¶
useOnAnimal¶
useOnAnimal() -> (true | nil), string
Returns true and the interaction result as a string or if it fails it returns nil and an error message.
inspectAnimal¶
inspectAnimal() -> table | nil, string
searchAnimals¶
searchAnimals() -> table | nil, string
captureAnimal¶
captureAnimal() -> true | nil, string
Returns true if an animal is captured or nil and an error message.
releaseAnimal¶
releaseAnimal() -> true | nil, string
getCapturedAnimal¶
getCapturedAnimal() -> table | nil, string
Changelog/Trivia¶
0.7r
Added the Husbandry Automata