Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Setup--
- rednet.open("top")
- --Acceptable Turtles
- turtle1 = 62
- turtle2 = 58
- turtle3 = 59
- turtle4 = 60
- --Functions
- function getInput()
- x,comp,input = os.pullEvent("rednet_message")
- if comp==turtle1 or comp==turtle2 or comp==turtle3 or comp==turtle4 then
- input = tonumber(input)
- return input
- end
- return false
- end
- function sendItem(input)
- rs.setBundledOutput("right",input)
- sleep(1)
- rs.setBundledOutput("right",0)
- end
- --Main--
- while true do
- sendItem(getInput())
- os.reboot()
- end
Add Comment
Please, Sign In to add comment