Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("left")
- local func
- local tArgs = {...}
- function place()
- turtle.select(1)
- turtle.place()
- turtle.down()
- sleep(3)
- turtle.select(2)
- turtle.place()
- end
- function remove()
- turtle.select(2)
- turtle.dig()
- turtle.select(3)
- turtle.forward()
- turtle.dig()
- turtle.drop()
- turtle.select(1)
- turtle.digUp()
- turtle.up()
- turtle.select(3)
- turtle.dig()
- turtle.drop()
- end
- function cycle()
- place()
- sleep(15)
- remove()
- turtle.forward()
- end
- function checkIn(fromID)
- rednet.send(fromID, tArgs[1])
- end
- function chunkLoad()
- turtle.select(1)
- turtle.digUp()
- turtle.forward()
- turtle.placeUp()
- end
- while true do
- local id,msg,dist = rednet.receive()
- func = loadstring(msg.."(...)")
- setfenv(func, getfenv())
- func(id)
- rednet.send(id,"Done")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement