BioPrince

ender_lilly farm

Dec 26th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. -- 4 endstone in a plus sign with a regular turtle in the middle
  2. -- no fuel required.
  3. -- shell.run("endfarm")
  4. -- pastebin get 7hVGkEjF endfarm
  5.  
  6.  
  7.  
  8. function smack()
  9.   turtle.dig()
  10.   turtle.place(1)
  11. end
  12.  
  13. function ender()  
  14.   block,data = turtle.inspect()
  15.   if data.name ~= "ExtraUtilities:plant/ender_lilly" then
  16.     smack()
  17.   end
  18.   if data.metadata > 6 then
  19.     smack()
  20.   end
  21.   turtle.turnRight()
  22. end
  23.  
  24. while true do
  25.   ender()
  26.   sleep(120)
  27. end
Advertisement
Add Comment
Please, Sign In to add comment