skipper_is

BuildcraftCounter

Nov 29th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.22 KB | None | 0 0
  1. local count = 0
  2. local screen = peripheral.wrap("left")
  3. term.redirect(screen)
  4. local function addCount()
  5.     count = count + 1
  6.     print(count)
  7. end
  8. while true do
  9.     local event = os.pullEvent("redstone")
  10.     addCount()
  11. end
Advertisement
Add Comment
Please, Sign In to add comment