xXm0dzXx

Untitled

May 8th, 2012
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. count = 0
  2.  
  3. while true do
  4.   shell.run("clear")
  5.   print("You are having a " .. count .. " GP)
  6.  event, argument = os.pullEvent()
  7.  
  8.   if event =="redstone" then
  9.     if redstone.getInput("back") then
  10.      count = count + 1
  11.     end
  12.     if redstone.getInput("bottom") then
  13.      count = count - 1
  14.     end
  15.   elseif event == "char" and argument == "q" or redstone.getInput("left") then break end
  16. end
Advertisement
Add Comment
Please, Sign In to add comment