Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("bottom")
- id = 25
- print("Activating controller...")
- while true do
- local event = { os.pullEvent() }
- if event == "redstone_message" then
- if redstone.getInput("front")==true then
- rednet.send(id, "up")
- end
- if redstone.getInput("back")==true then
- rednet.send(id, "down")
- end
- if redstone.getInput("left")==true then
- rednet.send(id, "left")
- end
- if redstone.getInput("right")==true then
- rednet.send(id, "right")
- end
- if redstone.getInput("top")==true then
- rednet.send(id, "use")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement