Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Turtle that receives wireless signals from sender
- and deposits/withdraws safari nets from auto-spawner (minefactory reloaded)
- --]]
- local function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- clear()
- print("Auto Spawner Control")
- print("by: Luckdemon")
- rednet.open("right")
- sleep(1)
- function main()
- while true do
- clear()
- print("Waiting for command")
- local id, msg, dist = rednet.receive()
- if msg == true then
- print("on")
- redstone.setOutput("front", true)
- elseif msg == false then
- print("off")
- redstone.setOutput("front", false)
- else
- print(msg)
- turtle.suck()
- turtle.select(msg)
- turtle.drop()
- sleep(0.5)
- end
- end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment