Closed ghost closed 10 years ago
Please elaborate some more on what you mean.
Ability to read and set pipe wire status. ie:
-- any buildcraft-compatible pipe, may or may not have wires on it
local pipe = peripheral.wrap("left")
-- assume said pipe has a red and green wire attached, with red wire ON
local wires = pipe.getWires()
for key, value in pairs(wires) do
print(key .. " = " .. tostring(value))
-- "red = true"
-- "green = false"
end
pipe.setWire("green", true)
pipe.setWire("red", true)
pipe.setWire("blue", false) -- no effect
print( pipe.getWire("red") ) -- prints true
MiscPeripherals' version does not work with current Buildcraft.