Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cID = 185 -- id du computer qui donne les instructions
- if not rednet.isOpen("right") then
- rednet.open("right")
- end
- function placeBase()
- turtle.select(2)
- for i = 0,2 do
- turtle.forward()
- end
- turtle.down()
- turtle.placeDown()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- turtle.up()
- turtle.placeDown()
- turtle.select(1)
- turtle.place()
- turtle.turnLeft()
- turtle.turnLeft()
- turtle.place()
- turtle.turnRight()
- turtle.back()
- rednet.send(cID, "place_done")
- end
- function placeHead()
- if not turtle.detectDown() then
- print("MFFS Not activated !")
- return false
- end
- turtle.place()
- turtle.back()
- turtle.back()
- end
- while true do
- id, message = rednet.receive()
- if id == cID then
- if message == "place_base" then
- placeBase()
- end
- if message == "place_head" then
- placeHead()
- dofile("golem")
- rednet.send(cID, "star_picked")
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment