luece

tankRefuel

Feb 18th, 2022
1,097
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local tArgs = { ... }
  2. local count = tonumber( tArgs[1] )
  3. if count == nil then
  4.   count = 1
  5. end
  6. if count < 1 then
  7.   count = 1
  8. end
  9. shell.run(refuel)
  10. for i=1, count do
  11.   turtle.select(1)
  12.   turtle.placeUp()
  13.   shell.run("refuel")
  14. end
Advertisement
Add Comment
Please, Sign In to add comment