Advertisement
Guest User

table

a guest
Jan 24th, 2015
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.47 KB | None | 0 0
  1. p1 = peripheral.wrap("bottom")
  2. p2 = peripheral.wrap("top")
  3. --p3 = peripheral.wrap("left")
  4. slot=1
  5. print(peripheral.getType("bottom"))
  6.  
  7. function planks()
  8. holen()
  9. craft(1)
  10. weg(1)
  11. end
  12.  
  13. function holen()
  14. p1.pushItem("up", 0, 16)
  15. end
  16.  
  17. function craft(offset)
  18.  
  19. turtle.select(slot+offset)
  20. turtle.craft(64)
  21. turtle.select(slot)
  22. end
  23.  
  24. function weg(offset)
  25. turtle.select(slot+offset)
  26. turtle.dropUp(64)
  27. turtle.select(slot)
  28. end
  29.  
  30. while(1) do
  31. planks()
  32. --sleep(1)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement