SHARE
TWEET

chickenExpressBasic

x8-bitx Dec 6th, 2019 (edited) 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --Chest Side
  2. chest = "left"
  3. --Attacks per block
  4. aperblock = 20
  5.  
  6. info = {
  7.   "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
  8.   "@@                                   @@",
  9.   "@@          Chicken Express          @@",
  10.   "@@        [1,2]=F [3]=C [4]=E        @@",
  11.   "@@                                   @@",
  12.   "@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@",
  13. }
  14. --Print Logo
  15. function draw(t)
  16.     term.clear()
  17.     term.setCursorPos(1,1)
  18.     for _,v in pairs(info) do
  19.       print(v)
  20.     end
  21.     if t then
  22.         print()
  23.         print("Wait Time: "..t.." out of 800")
  24.     end
  25. end
  26.  
  27. function dropFeathers()
  28.   local fam = turtle.getItemCount()
  29.   if chest == "left" then
  30.     turtle.turnLeft()
  31.     for i = 1,2 do
  32.       turtle.select(i)
  33.       fam = turtle.getItemCount()
  34.       turtle.drop(fam-1)
  35.     end
  36.     turtle.turnRight()
  37.   else
  38.     turtle.turnRight()
  39.     for i = 1,2 do
  40.       turtle.select(i)
  41.       fam = turtle.getItemCount()
  42.       turtle.drop(fam-1)
  43.     end
  44.     turtle.turnLeft()
  45.   end
  46.   turtle.select(1)
  47. end
  48.  
  49. function dropEggs()
  50.   local eam = 0
  51.   for i = 4, 16 do
  52.     turtle.select(i)
  53.     eam = eam + turtle.getItemCount()
  54.     turtle.dropDown()
  55.   end
  56.   turtle.select(1)
  57.   for i = 1, eam do
  58.     rs.setOutput("bottom",true)
  59.     sleep(.1)
  60.     rs.setOutput("bottom",false)
  61.     sleep(.1)
  62.   end
  63. end
  64.  
  65. function attackChicks()
  66.   turtle.select(2)
  67.   turtle.forward()
  68.   for i = 1, aperblock do
  69.     turtle.attackDown()
  70.   end
  71.   for i = 1,50 do
  72.     turtle.suckDown()
  73.   end
  74.   turtle.back()
  75.   local fam = turtle.getItemCount()
  76.   if chest == "left" then
  77.     turtle.turnLeft()
  78.       turtle.select(3)
  79.       fam = turtle.getItemCount()
  80.       turtle.drop(fam-1)
  81.     turtle.turnRight()
  82.   else
  83.     turtle.turnRight()
  84.       turtle.select(3)
  85.       fam = turtle.getItemCount()
  86.       turtle.drop(fam-1)
  87.     turtle.turnLeft()
  88.   end
  89. end
  90.  
  91. while true do
  92.   draw()
  93.   dropFeathers()
  94.   dropEggs()
  95.   for i = 1, 800 do
  96.       draw(i)
  97.       sleep(1)
  98.   end
  99.   attackChicks()
  100. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top