Advertisement
naej

bac a sable

Aug 4th, 2014
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.34 KB | None | 0 0
  1.  
  2. function init(s)                            -- fonction qui efface l'Γ©cran de la turtle et selectionne le slot(s)
  3.     shell.run("clear")
  4.     if s == nil then
  5.         s = 1
  6.     end
  7.     turtle.select(s)
  8. end
  9.  
  10. function checkInventory(counter)
  11.     if math.fmod(counter, 5) == 0 then
  12.         print("OK")
  13.     end
  14. end
  15.  
  16.  
  17. init()
  18.  
  19. checkInventory(10)
  20. checkInventory(5)
  21. checkInventory(8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement