Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.find("modem");
- local active = true;
- modem.open(15);
- redstone.setOutput("back", false);
- redstone.setOutput("left", false);
- while true do
- active = redstone.getInput("top");
- if active then
- redstone.setOutput("back", true);
- redstone.setOutput("left", true);
- sleep(3)
- redstone.setOutput("left", false);
- local e = {os.pullEvent("modem_message")};
- if e[3] == 15 then
- print("gotem");
- modem.transmit(43, 0, "done");
- end
- else
- sleep(1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment