-
Notifications
You must be signed in to change notification settings - Fork 7
ComputerCraft Methods
These are functions you can call using the computercraft peripherals api.
enableThrottle() returns -> Boolean This method doesn't take any arguments, just call it and the throttle will be enabled.
disableThrottle() returns -> Boolean This method doesn't take any arguments, just call it and the throttle will be disabled.
readyToLand() returns -> Boolean This method doesn't take any arguments, it will return true if the TARDIS is ready to land (only necessary in BOTI).
isFlying() returns -> Boolean This method doesn't take any arguments, it will return true if the throttle is enabled and false otherwise.
getFlightTime() returns -> Integer This method doesn't take any arguments, it will return the amount of time left in flight as an integer.
setCoords(String coords) returns -> Boolean This function takes a string in the format of "123 69 -420" and sets the coordinates accordingly, it will return false if you didn't format it correctly and true if it set the coords properly.
setDimension(String dimension_name) returns -> Boolean This function takes the lowercase id of a dimension and sets it accordingly for example the overworld is "overworld" and the end is "the_end" you can find a list of the dimension names by typing "/execute in " and looking at the recommended options. Simply use everything after the colon. The returned boolean will always be true.
getTargetLocation() returns -> Table This function takes no arguments, it returns a table containing the target x, y, and z
getExtLocation() returns -> Table This function takes no arguments, it returns a table containing the exterior x, y, and z
getTargetDimension() returns -> String This function takes no arguments, it returns the name of the target dimension.
getExtDimension() returns -> String This function takes no arguments, it returns the name of the exterior dimension.
getTargetRotation() returns -> String This functions takes no arguments, it returns the name of the target orientation for the TARDIS.
getTargetBlock() returns -> String This function takes no arguments, it returns the name of the block you would replace if you landed there
setSign(String sign_text) returns -> Boolean This function takes a single string as an argument and will set the exterior sign to this text. The text must be 16 characters or less. The returned boolean will be true if it set and false otherwise.