Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("right")
- print("slot : number : item")
- print("1-4. 4 turtle")
- print("5. 4 stone")
- print("6. 4 dirt")
- print("7. 4 chest")
- print("8. 4 coal")
- print("9. enderchest")
- print("10. chunkloader")
- function wait()
- print("press any key to continue...")
- os.pullEvent("key")
- local count = 0
- while count<15 do
- count = turtle.getItemCount(5)+turtle.getItemCount(6)+turtle.getItemCount(7)+turtle.getItemCount(8)
- sleep(2.5)
- print("checking quantities")
- end
- end
- function load()
- local i = 0
- local j = 0
- print("Starting: Please Stand Back")
- for i=1,4 do
- turtle.select(i)
- turtle.place()
- for j=5,8 do
- turtle.select(j)
- turtle.drop(1)
- end
- turtle.turnRight()
- end
- turtle.select(9)
- turtle.up()
- turtle.placeDown()
- turtle.select(10)
- turtle.placeUp()
- for i=1,4 do
- rednet.broadcast("BioPrince")
- sleep(1)
- end
- end
- function calm()
- local count=0
- while count<4 do
- local id, msg = rednet.receive()
- if msg == "BioPrince" then
- count=count+1
- print(count," down ",4-count," to go.")
- end
- end
- end
- function startUnload()
- turtle.digUp()
- turtle.digDown()
- turtle.down()
- end
- -- picking up the the turtle
- function unload()
- for j=1,4 do
- for i=1,16 do
- turtle.select(i)
- turtle.suck()
- end
- turtle.dig()
- turtle.turnRight()
- end
- end
- wait()
- load()
- calm()
- startUnload()
- unload()
Advertisement
Add Comment
Please, Sign In to add comment