Advertisement
Animum

LavaFuel

Oct 16th, 2020 (edited)
2,499
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.87 KB | None | 0 0
  1. --Autor Animum
  2. --Program version 1.0
  3. --refueling turtles through
  4. --the lava bucket in the current slot
  5. --and tank of mekanism
  6. --Minecraft version 1.16.3
  7. --Forge version 34.1.25
  8. --CCTweaked version 1.93.0
  9. --Mekanism version 10.0.12.437
  10. --The program can adapt
  11. --to the turtle version - normal/advanced
  12. if term.isColor() then
  13.  term.setTextColour(colors.white)
  14. end
  15. term.clear()
  16. repeat
  17. --move the empty bucket to the tank
  18. --in front of the turtles
  19.  turtle.drop()
  20.  sleep(1)
  21. --move the lava bucket from the tank
  22. --in front of the turtles
  23.  ending = turtle.suck()
  24. --Mekanism tank is not empty?
  25.  if ending
  26.  then
  27.   turtle.refuel()
  28.   term.setCursorPos(1,1)
  29.   term.write(turtle.getFuelLevel())
  30.  end
  31. --Mekanism tank is empty?
  32. until not ending
  33. term.setCursorPos(1,1)
  34. if term.isColor() then
  35.  term.setTextColour(colors.lime)
  36. end
  37. term.write("done")
  38. sleep(1)
  39. term.clear()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement