Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- local engine = peripheral.wrap("bottom")
- print("computerID is: "..os.getComputerID())
- print("ready for wireless instruction..")
- while true do
- local event, senderID, message = os.pullEvent ("rednet_message")
- local instruction = {}
- instruction = textutils.unserialize(message)
- if instruction.direction == nil or instruction.simulate == nil or instruction.anchor == nil then
- print("faulty instruction recieved")
- else
- engine.move(instruction.direction, instruction.simulate, instruction.anchor)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment