Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Select Itemslot 1
- turtle.select(1)
- --Fuel Detection Safety
- if turtle.getFuelLevel()<100 then
- print "I need Fuel"
- turtle.reboot()
- end
- --Item Detection Safety
- if turtle.getItemCount(1)<1 then
- print "I need building material."
- turtle.reboot()
- end
- --Place first block
- turtle.forward()
- turtle.turnRight()
- turtle.turnRight()
- turtle.place()
- --Main Program
- while true do
- turtle.back()
- turtle.place()
- --Item Count Start Variable
- r=1
- --Item Detection/Change Item Slots
- if r<16 and turtle.getItemCount(r)<1 then
- r=r+1
- turtle.select(r)
- end
- if r==16 and turtle.getItemCount(r)<1 then
- print "Out of Items"
- turtle.reboot()
- end
- --Turn Right Detection/Floor Finished Detection
- if turtle.back()== false then
- turtle.turnRight()
- if turtle.back()== false then
- turtle.turnRight()
- if turtle.back()== false then
- turtle.turnRight()
- if turtle.back()== false then
- turtle.turnRight()
- if turtle.back()== false then
- turtle.turnRight()
- if turtle.back()== false then
- turtle.up()
- turtle.placeDown()
- print "The floor has been made."
- turtle.reboot()
- end
- end
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment