Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- SexBot at your service
- -- Pre-code code
- term.clear()
- term.setCursorPos(1,1)
- Slot14 = turtle.getItemCount(14)
- Slot15 = turtle.getItemCount(15)
- Slot16 = turtle.getItemCount(16)
- if Slot14 == 0 then
- term.setTextColor(colors.red)
- print("ERROR: Check slot 14 for missing ender chest for torches!")
- sleep(3)
- term.setCursorPos(1,4)
- print("Rebooting turtle, please run the program again when the problem is solved.")
- sleep(3)
- os.reboot()
- else
- term.setTextColor(colors.lime)
- print("Ender chest for torches was found in slot 14!")
- term.setTextColor(colors.white)
- sleep(1)
- end
- if Slot15 == 0 then
- term.setTextColor(colors.red)
- print("ERROR: Check slot 15 for missing torches!")
- sleep(3)
- term.setCursorPos(1,4)
- print("Rebooting, please run the program again when the problem is solved.")
- sleep(3)
- os.reboot()
- else
- term.setTextColor(colors.lime)
- print("Torches were found in slot 15!")
- term.setTextColor(colors.white)
- sleep(1)
- end
- if Slot16 == 0 then
- term.setTextColor(colors.red)
- print("ERROR: Check slot 16 for missing ender chest for resources!")
- sleep(3)
- term.setCursorPos(1,4)
- print("Rebooting, please run the program again when the problem is solved.")
- sleep(3)
- os.reboot()
- else
- term.setTextColor(colors.lime)
- print("Ender chest for resources was found in slot 16!")
- term.setTextColor(colors.white)
- sleep(1)
- end
- term.clear()
- term.setCursorPos(1,1)
- --QUESTION TIME
- term.setTextColor(colors.yellow)
- write("How many times do you want me to strip mine? ")
- term.setTextColor(colors.white)
- term.setCursorPos(1,4)
- x = read()
- term.setCursorPos(1,6)
- term.setTextColor(colors.yellow)
- write("How long should each tunnel be?")
- term.setCursorPos(1,8)
- term.setTextColor(colors.white)
- y = read()
- term.setCursorPos(1,10)
- term.setTextColor(colors.lime)
- print("Ok, I will strip mine "..x.." times, with each tunnel being "..y.." blocks long!")
- sleep(3)
- term.setCursorPos(1,13)
- -- oh lawd here it comez
- for a = 1,x do
- print("Starting strip: "..x)
- turtle.turnLeft()
- turtle.forward()
- for b = 1,y do
- if b == y then
- turtle.turnLeft()
- turtle.turnLeft()
- for c = 1,y do
- turtle.forward()
- end
- turtle.forward()
- turtle.forward()
- turtle.forward()
- end
- if b % 4 == 0 then
- turtle.select(15)
- turtle.placeDown()
- turtle.select(1)
- end
- turtle.dig()
- turtle.forward()
- turtle.digDown()
- end
- print("I've finished mining all "..x.." strips!")
- end
Advertisement
Add Comment
Please, Sign In to add comment