物品命令:/give @p advancedperipherals:redstone_integrator 64
红石接口,能像 CC:T 中的 redstone API 一样操控/检测红石信号。
0.7r起,方位可以用东南西北(north south east west up down)以及相对位置(top bottom left right front back)表示。方块四个侧面完全一样、分不出前后左右
示例:
local integrator = peripheral.find("redstoneIntegrator")
integrator.setAnalogOutput("north", 10) --令红石接口北侧输出信号为10
n=integrator.getInput("south")--判断接口南侧是否有红石信号
![]() | |
![]() | |
资料分类: | 机器 |
最大叠加: | 64个 / 组 |