DiaManD

ReplaceTrack

Aug 29th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.07 KB | None | 0 0
  1. t=turtle
  2. rn=rednet
  3. function replace()
  4.  for i = 32,n
  5.  t.forward()
  6.  end
  7.  if rn.isOpen("left") = nil then
  8.  rn.open("left")
  9.  end
  10. rn.send("wrfg","start")
  11. t.digDown()
  12. t.place()
  13. end
  14. function slots()
  15.  if t.getItemCount() < 5 then
  16.  t.select(2)
  17.  end
  18.  if t.getItemCount() < 5 then
  19.  t.select(3)
  20.  end
  21.  if t.getItemCount() < 5 then
  22.  t.select(4)
  23.  end
  24.  if t.getItemCount() < 5 then
  25.  t.select(5)
  26.  end
  27.  if t.getItemCount() < 5 then
  28.  t.select(6)
  29.  end
  30.  if t.getItemCount() < 5 then
  31.  t.select(7)
  32.  end
  33.  if t.getItemCount() < 5 then
  34.  t.select(8)
  35.  end
  36.  if t.getItemCount() < 5 then
  37.  t.select(9)
  38.  end
  39.  if t.getItemCount() < 5 then
  40.  t.select(10)
  41.  end
  42.  if t.getItemCount() < 5 then
  43.  t.select(11)
  44.  end
  45.  if t.getItemCount() < 5 then
  46.  t.select(12)
  47.  end
  48.  if t.getItemCount() < 5 then
  49.  t.select(13)
  50.  end
  51.  if t.getItemCount() < 5 then
  52.  t.select(14)
  53.  end
  54.  if t.getItemCount() < 5 then
  55.  t.select(15)
  56.  end
  57.  if t.getItemCount() < 5 then
  58.  t.select(16)
  59.  end
  60.  if t.getItemCount() < 5 then
  61.  print("Fucking shit...iam sorry...")
  62.  end
  63. end
  64. while true do
  65. replace()
  66. slots()
  67. end
Advertisement
Add Comment
Please, Sign In to add comment