Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sides={
- "left",
- "right",
- }
- ID=os.getComputerID()
- rednet.open("top")
- for id,side in ipairs(sides) do
- redstone.setOutput(side,false)
- end
- while true do
- id,message=rednet.receive()
- print(id..","..message)
- if message=="open"..ID then
- for id,side in ipairs(sides) do
- redstone.setOutput(side,true)
- sleep(2)
- redstone.setOutput(side,false)
- end
- end
- end
- -- 45,48
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement