Download Mini Tardis ComputerCraft Bridge — Minecraft Mods — MetaMods
Mini Tardis ComputerCraft Bridge

Mini Tardis ComputerCraft Bridge

Active

Downloads

8

Last update

11 months ago

Versions

1.20.1 — 1.21.1
Client and server
Fabric
Technological
Utils

Mini Tardis ComputerCraft Bridge

Bridge between Mini Tardis and CC:Tweaked
Automate your TARDIS!

About the Modification

Adds a TARDIS Computer Interface block that functions as a peripheral device for ComputerCraft. Crafting recipe:

image

(Any wired modem will work)

Usage

  • Place the block inside Mini Tardis and connect it to a computer in the usual way
  • Wrap the peripheral using peripheral.wrap(<side>) or peripheral.find("minitardis_bridge")
  • Refer to the method reference when writing scripts for TARDIS

Ready-made Automation Scripts

Ready-made scripts are available in the mod's GitHub repository ("View Source" link on the right side of the page)

  • scripts/tardisServer.lua - place this script on a computer inside TARDIS, rename to startup.lua, change modem channels at the beginning of the file for multiplayer games. The computer must have TARDIS Computer Interface nearby and optionally ender modem for remote control
  • scripts/tardisRemote.lua - install on a pocket computer with ender modem, change channels in the file if necessary
  • scripts/gpsHost.lua - create a GPS constellation with wired and ender modems, specify modem information at the beginning of the file and set the constellation dimension. Rename the script to startup.lua

Method Reference

  • isLinked() returns boolean, indicates whether Computer Interface is inside TARDIS

All following methods throw an error if Computer Interface is not inside TARDIS

  • getState() checks TARDIS state and returns one of the strings:
    • booting_up - TARDIS is booting up
    • crashed - TARDIS has crashed and requires reboot
    • crashing - TARDIS is in the process of crashing
    • disabled - TARDIS is powered off
    • drifting - TARDIS is drifting between dimensions
    • flying - TARDIS is flying to destination
    • landed - TARDIS has landed
    • landing - TARDIS is landing
    • refueling - TARDIS is refueling
    • searching_for_landing - TARDIS is preparing to land
    • suspended_flight - energy conduits are locked during flight
    • taking_off - TARDIS is taking off
  • boot() returns true on success, powers on TARDIS from disabled state
  • shutdown() returns true on success, powers off TARDIS from landed or crashed states
  • refuel(boolean) returns true on success, sets refueling state
  • getFuel() returns number from 0 to 1000, shows TARDIS fuel amount
  • getStability() returns number from 0 to 1000, shows TARDIS stability
  • getAvailableWorlds() returns array of strings, shows dimensions available for travel
  • getCurrentPos() returns array of 3 XYZ numbers, error if TARDIS is not landed, current TARDIS position
  • getCurrentFacing() returns one of direction strings, error if TARDIS is not landed, current TARDIS facing:
    • north
    • east
    • west
    • south
  • getCurrentWorld() returns string, current TARDIS world
  • getDestinationPos() returns array of 3 XYZ numbers, error if destination unknown, current TARDIS destination
  • getDestinationFacing() returns compass direction string, error if destination unknown, TARDIS facing at destination
  • getDestinationWorld() returns string, error if destination unknown, TARDIS destination world
  • resetDestination() returns true on success, resets destination to current TARDIS location
  • setDestinationPos(x, y, z) returns true on success, error if destination unreachable, sets destination coordinates
  • setDestinationFacing(compass_direction) returns true on success, sets TARDIS facing at destination
  • setDestinationWorld(world_id) returns true on success, error if TARDIS cannot enter this world or it's not discovered in Dimensions app, sets destination world
  • isDestinationLocked() returns boolean, indicates whether destination is locked
  • setDestinationLocked(boolean) returns true on success, sets destination lock state
  • areConduitsUnlocked() returns boolean, indicates whether energy conduits are unlocked
  • setConduitsUnlocked(boolean) returns true on success, locks or unlocks energy conduits
  • handbrake(boolean) returns true on success, sets handbrake state
  • getErrorOffsets() returns array of offsets, can only be called during flying state, error otherwise, each offset is array of 2 elements:
    • First offset element - north/south, 1 means TARDIS needs to be nudged south, -1 means north
    • Second offset element - west/east, 1 means TARDIS needs to be nudged east, -1 means west
    • Return example: { {0,0}, {1,-1}, {1,0}, {0,-1} }
  • getCoordinateScale() returns number from 0 to 3, shows Localization Scale Interpreter value
  • setCoordinateScale(number 0 to 3) returns true on success, sets Localization Scale Interpreter value, also used to select offset during flying state
  • nudgeDestination(direction) returns true on success, nudges destination in specified direction, used for adjusting offsets during flying state. Direction can be one of:
    • north
    • east
    • west
    • south
    • up
    • down
  • getTotalDriftingPhases() returns number, can only be called during drifting state, error otherwise, shows total drifting phases
  • getDriftingPhasesComplete() returns number, can only be called during drifting state, error otherwise, shows completed drifting phases
  • isDriftingPhaseReady() returns boolean, can only be called during drifting state, error otherwise, true when TARDIS is ready for phase shift, call handbrake(true) to phase shift
Project members
TheJebForge

TheJebForge

Developer

Created: 15 Sep 2024

ID: 59224