-
-
Notifications
You must be signed in to change notification settings - Fork 7
Home
For this example we will take this situation :
m = peripheral.wrap("left")
Returns a table of functions, allowing you to call peripheral methods as if they were normal Lua functions. If no peripheral is connected, returns nil. (http://computercraft.info/wiki/Peripheral.wrap)
For this example we will take this situation :
component = require("component")
m = component.tardisinterface
local x, y, z = m.getTardisPos()
Returns the 3 coordinate of your TARDIS Location (x, y, z)
m.setTardisPos(x,y,z,[dimensionID])
To set the destination at 0,0 at the height 64 in OverWorld
m.setTardisPos(0,64,0,0)
The dimensionID is optionnal since the 1.12.2-1.2.5.1
m.startFlight()
m.setDoors(boolean) -> m.setDoors(false) //to close the doors
local booleanValue = m.isInFlight()
Returns a boolean value depending if is in flight.
local fuelLevel = m.getFuel()
Returns a double between 0 & 1 depending on the energy gauge
m.setFueling(boolean)
local booleanValue = m.isDoorsOpenned()
local booleanValue = m.canFly()
local timeInSecond = m.getTravelTime()
local x, y, z, dim = m.getWaypoint(waypointID)
Beware, TARDIS can only save 15 waypoints (0 to 14).
local arrayOfWaypoint = m.getWaypoints()
local booleanValue = m.setWaypoint(waypointID,x,y,z,dimensionID)
local doubleValue = m.getHealthComponent(componentID)
local arrayOfInt = m.getDimensionsID()
local stringValue = m.getDimensionName(dimensionID)

