ksaw000

Simple refuel

Jan 31st, 2021 (edited)
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. if turtle.getFuelLevel()==0 then
  2.     turtle.digUp() --make space for enderchests
  3.     turtle.select(1) -- select lava enderchest
  4.     turtle.placeUp()
  5.     turtle.select(16) -- last slot specially for fuel
  6.     turtle.suckUp() --get lava bucket
  7.     turtle.refuel()
  8.     turtle.select(1) -- lavachest slot
  9.     turtle.digUp()
  10.     turtle.select(2) -- bucket chest slot
  11.     turtle.placeUp()
  12.     turtle.select(16) --empty bucket
  13.     turtle.dropUp() --puts bucket in enderchest
  14.     turtle.select(2)
  15.     turtle.digUp()
  16.     print(turtle.getFuelLevel())
  17. end
Add Comment
Please, Sign In to add comment