Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modemSide = "back"
- local redstoneOutput1 = "right"
- local redstoneOutput2 = "left"
- rednet.open(modemSide)
- while true do
- redstone.setOutput(redstoneOutput2, true)
- local senderID, message = rednet.receive()
- if message == "close" then
- redstone.setOutput(redstoneOutput1, false)
- sleep(1)
- elseif message == "open" then
- redstone.setOutput(redstoneOutput1, true)
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement