Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function init(s) -- fonction qui efface l'Γ©cran de la turtle et selectionne le slot(s)
- shell.run("clear")
- if s == nil then
- s = 1
- end
- turtle.select(s)
- end
- function checkInventory(counter)
- if math.fmod(counter, 5) == 0 then
- print("OK")
- end
- end
- init()
- checkInventory(10)
- checkInventory(5)
- checkInventory(8)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement