feedmecookies

Temp

Apr 12th, 2021 (edited)
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.16 KB | None | 0 0
  1. pc = 0
  2. tc = 0
  3. ac = 0
  4. dc = 0
  5. fc = 0
  6. pn = 1
  7. tn = 1
  8. an = 1
  9. dn = 6
  10. fn = 1
  11. d = "libvulpes:productplate"
  12. f = "hbm:warhead_generic_small"
  13. p = "hbm:fuel_tank_small"
  14. t = "hbm:thruster_small"
  15. a = "hbm:circuit_targeting_tier1"
  16.  
  17. while true do
  18. sleep(2)
  19. x = turtle.getItemDetail(1)
  20. y = turtle.getItemDetail(2)
  21. z = turtle.getItemDetail(3)
  22. v = turtle.getItemDetail(4)
  23. b = turtle.getItemDetail(5)
  24. if x ~= nil and z ~= nil and z ~= nil and v ~= nil and b ~= nil then
  25. if (x.name == p and turtle.getItemCount(1) == pn) or (y.name == p and turtle.getItemCount(2) == pn) or (z.name == p and turtle.getItemCount(3) == pn) or (v.name == p and turtle.getItemCount(4) == pn) or (b.name == p and turtle.getItemCount(5) == pn) then
  26. pc = 1
  27. end
  28. if (x.name == a and turtle.getItemCount(1) == an) or (y.name == a and turtle.getItemCount(2) == an) or (z.name == a and turtle.getItemCount(3) == an) or (v.name == a and turtle.getItemCount(4) == an) or (b.name == a and turtle.getItemCount(5) == an) then
  29. ac = 1
  30. end
  31.        
  32. if (x.name == t and turtle.getItemCount(1) == tn) or (y.name == t and turtle.getItemCount(2) == tn) or (z.name == t and turtle.getItemCount(3) == tn) or (v.name == t and turtle.getItemCount(4) == tn) or (b.name == t and turtle.getItemCount(5) == tn) then
  33. tc = 1
  34. end
  35.        
  36.  if (x.name == f and turtle.getItemCount(1) == fn) or (y.name == f and turtle.getItemCount(2) == fn) or (z.name == f and turtle.getItemCount(3) == fn) or (v.name == f and turtle.getItemCount(4) == fn) or (b.name == f and turtle.getItemCount(5) == fn) then
  37. fc = 1
  38. end
  39. if (x.name == d and turtle.getItemCount(1) == dn) or (y.name == d and turtle.getItemCount(2) == dn) or (z.name == d and turtle.getItemCount(3) == dn) or (v.name == d and turtle.getItemCount(4) == dn) or (b.name == d and turtle.getItemCount(5) == dn) then
  40. dc = 1
  41. end
  42.  
  43. if pc == 1 and tc == 1 and ac == 1 and dc == 1 and fc == 1 and rs.getInput("front") == false then
  44. pc = 0
  45. tc = 0
  46. ac = 0
  47. dc = 0
  48. fc = 0
  49. turtle.select(1)
  50. turtle.dropUp(64)
  51. turtle.select(2)
  52. turtle.dropUp(64)
  53. turtle.select(3)
  54. turtle.dropUp(64)
  55. turtle.select(4)
  56. turtle.dropUp(64)                
  57. turtle.select(5)
  58. turtle.dropUp(64)
  59. sleep(3.5)
  60. end
  61. end
  62. end
  63.  
Add Comment
Please, Sign In to add comment