SHARE
TWEET

Untitled

a guest Oct 12th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local sslot = 1
  2. while true do
  3.  
  4. if turtle.getFuelLevel() > 0 then
  5.     turtle.select(sslot)
  6. if turtle.getItemCount() > 0 then
  7. local details = turtle.getItemDetail()
  8.     if details.name == "Railcraft:track" then
  9.     turtle.forward() then
  10.     turtle.digDown()
  11.     turtle.placeDown()
  12.     local item = turtle.getItemCount(15)
  13.     if item.count > 1 then
  14.     turtle.drop()
  15.     else
  16.     sslot = (sslot%16)+1
  17.     turtle.select(sslot)
  18.    
  19.     end
  20. else
  21.     sslot = (sslot%16)+1
  22.     turtle.select(sslot)
  23. end
  24. else
  25.     turtle.select(16)
  26.     turtle.refuel(1)
  27. end
  28.     sleep(1)
  29. end
RAW Paste Data
Top