Advertisement
CaptainSpaceCat

turtle.use()

Apr 18th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. turtle.back()
  2. turtle.select(14)
  3. turtle.place()
  4. turtle.select(12)
  5. aTest = turtle.getItemDetail()
  6. turtle.place()
  7. while aTest.name == "minecraft:gold_ingot" do
  8.   turtle.select(13)
  9.   turtle.place()
  10.   turtle.select(12)
  11.   turtle.place()
  12.   aTest = turtle.getItemDetail()
  13. end
  14. while aTest.name ~= "minecraft:gold_ingot" do
  15.   turtle.select(13)
  16.   turtle.place()
  17.   turtle.select(12)
  18.   turtle.suck()
  19.   aTest = turtle.getItemDetail()
  20. end
  21. turtle.setAnalogOutput("front", 15)
  22. turtle.sleep(.5)
  23. turtle.setAnalogOutput("front", 0)
  24. turtle.dig()
  25. turtle.forward()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement