Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- reactordist = 9
- while true do
- if turtle.getFuelLevel() > reactordist*2 then
- if turtle.suck() == true then
- turtle.suck()
- else
- print("Nothing in Chest")
- break
- end
- sleep(1)
- turtle.turnLeft()
- for i = 1, reactordist do
- turtle.forward()
- end
- sleep(1)
- if turtle.drop() == true then
- turtle.drop()
- else
- print("No place to put Fuel Rod")
- putinchest = 1
- end
- sleep(1)
- for j = 1, reactordist do
- turtle.back()
- end
- turtle.turnRight()
- sleep(1)
- if putinchest == 1 and turtle.drop() == true then
- turtle.drop()
- print("Since i was unable to insert fuel, returning it to chest")
- break
- elseif putinchest == 1 and turtle.drop() == false then
- print("Unable to insert into chest..stopping")
- break
- else
- print("Job's Done")
- break
- end
- else
- print("Needs more fuel")
- break
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement