CC:LiftLink
- CC:LiftLink by Tom
- Copyright (c) 2026 Tom
- Licensed under the Mozilla Public License 2.0
"Works with Create: Avionics (CC:LiftLink 1.0.4+): LiftLink registers its peripheral capability at highest priority, so the elevator contact stays as the create_elevator peripheral instead of being renamed to Create_ElevatorPulley by Avionics."
为 Create 电梯提供 ComputerCraft 支持。
CC:LiftLink 在 Create 模组与 CC: Tweaked 之间搭建了一座桥梁,允许通过编程方式控制电梯系统。只需将一台计算机连接到电梯井内的任意一个红石触点,即可访问整个电梯网络,无需复杂的布线或滑轮附件。
设置
构建:正常组装并测试你的 Create 电梯。
连接:将一台 ComputerCraft 计算机或有线调制解调器放置在电梯井内任意一个红石触点上。
初始化:在你的 Lua 脚本中使用以下代码包装该外设:
Lua
local elevator = peripheral.find("create_elevator")
API 函数
listFloors() 返回井道中的所有楼层。
callToFloor(name) 召唤电梯前往指定名称的楼层。
callToY(y) 召唤电梯前往指定的 Y 轴高度楼层。
getState() 返回主电梯状态表。
getFloors() 返回映射到 Y 轴高度的楼层名称。
getCurrentLevel() 返回当前电梯的 Y 轴高度。
getTargetLevel() 返回目标 Y 轴高度。
getTargetY() 返回目标 Y 轴高度。
isMoving() 如果电梯正在移动则返回 true。
isActive() 如果电梯处于激活状态则返回 true。
getCabY() 返回轿厢的 Y 轴位置。
getSpeed() 返回当前速度。
getDirection() 返回 "up"(上升)、"down"(下降)或 "idle"(空闲)。
getColumnInfo() 返回合并后的楼层和状态信息。
getCurrentFloor() 返回精确的当前楼层名称和 Y 轴高度。
getNearestFloor() 返回最近的楼层名称和 Y 轴高度。
hasFloor(name) 检查是否存在某楼层。
isAtFloor(name) 检查电梯是否位于该楼层。
技术细节
要求:
Minecraft: 1.20.1
Create: 0.5.1.f (6.0.8)
CC: Tweaked: 1.116.1
Platform: Forge
注意:你不需要连接到电梯滑轮。只需将单个连接点置于井道内的任意红石触点上,即可完全访问电梯的功能。
Github:
CC:LiftLink
- CC:LiftLink by Tom
- Copyright (c) 2026 Tom
- Licensed under the Mozilla Public License 2.0
"Works with Create: Avionics (CC:LiftLink 1.0.4+): LiftLink registers its peripheral capability at highest priority, so the elevator contact stays as the create_elevator peripheral instead of being renamed to Create_ElevatorPulley by Avionics."
ComputerCraft support for Create elevators.
CC:LiftLink provides a bridge between the Create mod and CC: Tweaked, allowing for programmatic control of elevator systems. By connecting a computer to a single redstone contact within an elevator column, you gain access to the entire elevator network without complex wiring or pulley attachments.
Setup
Build: Assemble and test your Create elevator normally.
Connect: Place a ComputerCraft computer or wired modem against any one redstone contact in the elevator column.
Initialize: Wrap the peripheral in your Lua script using:
Lua
local elevator = peripheral.find("create_elevator")
API Functions
listFloors() Returns all floors in the column.
callToFloor(name) Calls the elevator to a named floor.
callToY(y) Calls the elevator to a floor by Y level.
getState() Returns the main elevator state table.
getFloors() Returns floor names mapped to Y levels.
getCurrentLevel() Returns current elevator Y level.
getTargetLevel() Returns target Y level.
getTargetY() Returns target Y level.
isMoving() Returns true if the elevator is moving.
isActive() Returns true if the elevator is active.
getCabY() Returns cab Y position.
getSpeed() Returns current speed.
getDirection() Returns "up", "down", or "idle".
getColumnInfo() Returns combined floor and state info.
getCurrentFloor() Returns the exact current floor name and Y.
getNearestFloor() Returns the nearest floor name and Y.
hasFloor(name) Checks if a floor exists.
isAtFloor(name) Checks if the elevator is at that floor.
Technical Details
Requirements:
Minecraft: 1.20.1
Create: 0.5.1.f (6.0.8)
CC: Tweaked: 1.116.1
Platform: Forge
Note: You do not need to connect to the elevator pulley. A single connection to any redstone contact in the column provides full access to the elevator's functions.
Github:
评论 0
登录后参与评分
还没有评论,来抢沙发吧