Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- peripheral.find("modem", rednet.open)
- function init()
- redstone.setAnalogOutput("front", 1)
- sleep(1)
- redstone.setAnalogOutput("front",0)
- end
- function up()
- redstone.setAnalogOutput("back", 1)
- sleep(1)
- redstone.setAnalogOutput("back", 0)
- end
- while (1) do
- event, senderId, message, distance = os.pullEvent("rednet_message")
- if message == "rideau1" then
- up()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement