Advertisement
se7enek

Obsi

Jun 24th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.57 KB | None | 0 0
  1. --start programu
  2. slot = 2
  3.  
  4. function czyjest()
  5. if turtle.getItemCount(slot) == 0 then
  6. slot = slot + 1
  7. end
  8. end
  9.  
  10. function obsydian()
  11. turtle.select(slot)
  12.  
  13.  
  14.  
  15.  
  16. end
  17.  
  18. term.clear()
  19. term.setCursorPos( 1, 1 )
  20. print("Witaj w programie tworzacym Obsydian z Redstone'a")
  21. print("Wloz Redstone w sloty Turtle'a, oprocz pierwszego")
  22. print("Gdy bedziesz gotowy...")
  23. print("Press ANY KEY to continue.")
  24. os.pullEvent('key')
  25. x = 0
  26. for n = 2 , 16 , 1 do
  27. x = x + turtle.getItemCount(n)
  28. end
  29. print("Rozpoczynanie tworzenia "..x.."x Obsydianu")
  30.  
  31. while czyjest() do
  32. write("1")
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement