Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local modem = peripheral.wrap("right")
- local slot = 1
- modem.open(105)
- while true do
- local Event,Side,Chanel,ReplyChanel,Message,Distance = os.pullEvent("modem_message")
- if Chanel == 105 and Message == "bonne_reponse" then
- turtle.digUp()
- sleep(5)
- turtle.suckUp()
- turtle.digDown()
- sleep(5)
- turtle.suckDown()
- turtle.select(16)
- turtle.place()
- for i=1,16 do
- turtle.select(slot)
- turtle.drop()
- slot =slot+1
- end
- slot =1
- turtle.dig()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment