yumetodo

digger

May 15th, 2021 (edited)
591
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for i=0, 12 do
  2.     local st, v = turtle.inspectDown()
  3.     if st == nil then
  4.         print("block is air")
  5.         break
  6.     end
  7.     if v.name ~= "appliedenergistics2:sky_stone_block" then
  8.         print(string.format("expect sky stone, got %s", v.name))
  9.         break
  10.     end
  11.     turtle.digDown()
  12.     turtle.down()
  13.     print("fuel=", turtle.getFuelLevel())
  14. end
  15.  
RAW Paste Data