Facebook
From Molodos, 3 Years ago, written in Lua.
Embed
Download Paste or View Raw
Hits: 51
  1. a = 25 --sides
  2. c = 2 --height (max is 12)
  3.  
  4. function selectBlock()
  5. if turtle.getItemCount() < 1 then
  6. i = 1
  7. while true do
  8. turtle.select(i)
  9. i = i + 1
  10. if turtle.getItemCount() > 0 then
  11. return true
  12. end
  13. if i > 16 then
  14. return false
  15. end
  16. end
  17. end
  18. end
  19.  
  20. turtle.turnLeft()
  21. turtle.turnLeft()
  22. for z=1,c do
  23. for num=1,4 do
  24. for x=2,a do
  25. selectBlock()
  26. if num < 4 or x < a then
  27. if not turtle.back() then
  28. os.shutdown()
  29. end
  30. turtle.place()
  31. end
  32. end
  33. turtle.turnLeft()
  34. end
  35. turtle.up()
  36. selectBlock()
  37. turtle.placeDown()
  38. turtle.turnRight()
  39. turtle.back()
  40. turtle.turnLeft()
  41. end