End Automata¶
End automata is a turtle with an End Mechanic Soul upgrade. This upgrade has all of the abilities of a Weak Automata plus its own additional abilites:
• Teleport between saved locations
• Save a location as a warp point
How to craft¶
To create an end soul, you need to feed 10 endermans 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 10 endermans in total:
Mob | Amount |
---|---|
Enderman | 10 |
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 enderman while the enderman is in front of the turtle
Example
core = peripheral.find("weak_automata")
successful, message = core.feedSoul()
print(successful)
print(message)
Functions¶
points¶
points() -> table | nil, string
savePoint¶
savePoint(name: string) -> true | nil, string
name
which can be teleported to at a future point in time.Returns true if the location is successfully saved, or nil and an error message.
deletePoint¶
deletePoint(name: string) -> true | nil, string
name
.Returns true if the warp point exists and is successfully removed, or nil and an error message.
distanceToPoint¶
distanceToPoint(name: string) -> number | nil, string
getWarpCooldown¶
getWarpCooldown() -> number
estimateWarpCost¶
estimateWarpCost(name: string) -> number | nil, string
name
. Or nil and an error message.
warpToPoint¶
warpToPoint(name: string) -> true | nil, string
name
.Returns true if the turtle is successfully teleported or nil and an error message.
portalShipPrepare¶
portalShipPrepare(direction: string | nil) -> table | nil, string
Direction includes
up
, top
, down
, bottom
, and front
(default).If a portal is detected, a table with target dimension's information will be returns. Or nil and an error message.
Field | Type | Description |
---|---|---|
name |
string |
Target dimension's ID |
pos |
string |
Position after teleport |
facing |
string |
Facing direction after teleport |
costs |
number |
Costs to active teleport |
canSpawn |
boolean |
true if the destination is not blocked so turtle can perform the teleport, false otherwise. |
shipId |
string |
The teleport id, uses in portalShipActive |
portalShipActive¶
portalShipActive(shipId: string) -> true | nil, string
Can only be invoked in a short period after
portalShipPrepare
returns the shipId
.
Changelog/Trivia¶
0.8 Added cross portal ability to end automata.
0.7r
Added the End Automata