Advertisement
Guest User

Wither

a guest
Feb 19th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.26 KB | None | 0 0
  1. --Pastas Witherfarm v 1.0
  2. --by Spaghetti_Pasta
  3.  
  4. function place() --Platziert Wither
  5.   while(true) do
  6.     if turtle.forward()
  7.       turtle.forward()
  8.       turtle.select(1)
  9.       turtle.placeDown()
  10.       turtle.turnLeft()
  11.       turtle.place()
  12.       turtle.turnRight()
  13.       turtle.turnRight()
  14.       turtle.place()
  15.       turtle.up()
  16.       turtle.placeDown()
  17.       turtle.select(2)
  18.       turtle.place()
  19.       turtle.turnLeft()
  20.       turtle.turnLeft()
  21.       turtle.place()
  22.       turtle.turnRight()
  23.       turtle.back()
  24.       turtle.place()
  25.       turtle.back()
  26.     else
  27.       redstone.setOutput("Down", true)
  28.       sleep(1)
  29.       redstone.setOutput("Down", false)
  30.       sleep(4)
  31.     end
  32.   end
  33. end
  34.  
  35. function refill()  --Fuellt Material nach
  36.   turtle.turnLeft()
  37.   while (true) do
  38.     select(1)
  39.     if turtle.suck(4)
  40.       turtle.turnRight()
  41.       turtle.turnRight()
  42.       while(true) do
  43.         if turtle.suck(3)
  44.         turtle.turnLeft()
  45.         break
  46.         end
  47.       end
  48.     end
  49.   end
  50. end
  51.  
  52. function refillFuel()
  53.   while(true) do
  54.     turtle.select(16)
  55.     if turtle.suckUp()
  56.       turtle.refuel()
  57.       turtle.dropUp()
  58.     end
  59.   end
  60. end
  61. refill()
  62. place()
  63. redstone.setOutput("Down", true)
  64. sleep(1)
  65. redstone.setOutput("Down", false)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement