Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cID = 6
- if rednet.isOpen("right") == false then
- rednet.open("right")
- end
- if turtle.getFuelLevel() < 90 then
- turtle.select(4)
- turtle.refuel()
- end
- function place_base()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.forward()
- turtle.select(1)
- turtle.up()
- turtle.forward()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.up()
- turtle.placeDown()
- turtle.select(2)
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.turnLeft()
- turtle.back()
- end
- function place_tete()
- if not turtle.detectDown() then
- print("MFFS not activated !")
- return false
- end
- turtle.place()
- turtle.back()
- turtle.down()
- turtle.back()
- turtle.back()
- turtle.back()
- turtle.down()
- end
- while true do
- id, message = rednet.receive()
- if id == cID then
- if message == "place_base" then
- place_base()
- rednet.send(cID, "base_done")
- end
- if message == "place_tete" then
- place_tete()
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement