Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local cwire = {colors.white, colors.blue, colors.purple, colors.grey}
- local wires = {}
- local wiresout = 0
- rednet.open("left")
- while true do
- local id, name, d = rednet.receive()
- if id == 45 then
- local id2, bool, d2 = rednet.receive()
- wires[name] = bool
- for i = 1,10 do
- if wires[i] then
- wiresout = wiresout + cwire[i]
- end
- if wires[i] == false then
- wiresout = wiresout - cwire[i]
- end
- end
- redstone.setBundledOutput("back", wiresout)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment