作者:rebot | 分类:模组
Minecraft 版本: 1.21.1
平台: fabric
标签: technology transportation utility
Adds TARDIS Computer Interface block that acts as a peripheral for ComputerCraft, it can be crafted as following:
(Any wired modem will do)
peripheral.wrap(<side>) or peripheral.find("minitardis_bridge")You can find the scripts on GitHub of the mod, View Source link on the right side of the page
scripts/tardisServer.lua - put this script on a computer inside of the TARDIS, rename it to startup.lua,scripts/tardisRemote.lua - put this script on a pocket computer with ender modem, change channels if needed in the filescripts/gpsHost.lua - build a GPS constellation with wired modems and ender modems,startup.luaisLinked() returns boolean, tells if Computer Interface is within TARDISAll following methods will error if Computer Interface is not inside of a TARDIS
getState() checks TARDIS state and returns one of following strings:booting_up, TARDIS is currently booting upcrashed, TARDIS has crashed and needs to be rebootedcrashing, TARDIS is in process of crashingdisabled, TARDIS is currently powered offdrifting, TARDIS is drifting between dimensionsflying, TARDIS is flying to the destinationlanded, TARDIS is stationarylanding, TARDIS is currently landingrefueling, TARDIS is refuelingsearching_for_landing, TARDIS is about to start landingsuspended_flight, energy conduits are locked in middle of flighttaking_off, TARDIS is taking offboot() returns true if successful, boots TARDIS up from disabled stateshutdown() returns true if successful, shuts TARDIS down from landed or crashed statesrefuel(boolean) returns true if successful, sets refueling stategetFuel() returns number 0 to 1000, tells how much fuel TARDIS hasgetStability() returns number 0 to 1000, tells how much stability TARDIS hasgetAvailableWorlds() returns an array of strings, tells which dimensions TARDIS is able to travel togetCurrentPos() returns array of 3 numbers as XYZ, errors if TARDIS is not landed, current position of TARDISgetCurrentFacing() returns one of following strings, errors if TARDIS is not landed, which way TARDIS is currently facing:northeastwestsouthgetCurrentWorld() returns string, world TARDIS is currently ingetDestinationPos() returns array of 3 numbers as XYZ, errors if destination is unknown, current destination of TARDISgetDestinationFacing() returns compass direction string, errors if destination is unknown, which way TARDIS should face at the destinationgetDestinationWorld() returns string, errors if destination is unknown, world TARDIS will try to fly toresetDestination() returns true if successful, resets destination back to current TARDIS locationsetDestinationPos(x, y, z) returns true if successful, errors if destination is unreachable, sets destination to provided coordinatessetDestinationFacing(compass_direction) returns true if successful, sets which way TARDIS will face at the destinationsetDestinationWorld(world_id) returns true if successful, errors if TARDIS can't go in that world or it's not yet discovered with Dimensions app, sets destination worldisDestinationLocked() returns boolean, tells if destination is lockedsetDestinationLocked(boolean) returns true if successful, sets lock state of destination lockareConduitsUnlocked() returns boolean, tells if energy conduits are unlockedsetConduitsUnlocked(boolean) returns true if successful, locks or unlocks energy conduitshandbrake(boolean) returns true if successful, sets handbrake stategetErrorOffsets() returns array of offsets, can only be called during flying state, errors otherwise, each offset is an array of 2 elements. { {0,0}, {1,-1}, {1,0}, {0,-1} }getCoordinateScale() returns number 0 to 3, tells the value of Localization Scale InterpretersetCoordinateScale(number 0 to 3) returns true if successful, sets value of Localization Scale Interpreter, also used to select which offset will be nudged during flying statenudgeDestination(direction) returns true if successful, nudges destination in provided direction, used for adjusting offsets during flying state. Direction can be one of following strings:northeastwestsouthupdowngetTotalDriftingPhases() returns number, can only be called during drifting state, errors otherwise, tells how many drifting phases are theregetDriftingPhasesComplete() returns number, can only be called during drifting state, errors otherwise, tells how many drifting phases have been completedisDriftingPhaseReady() returns boolean, can only be called during drifting state, errors otherwise, is true when TARDIS is ready for phase shift, call handbrake(true) to phase shift请登录后举报
暂无评论,抢个沙发吧~