Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- input = "back"
- down = "bottom"
- count = 0
- while true od
- shell.run("clear")
- print("You are having a " .. count .. " GP)
- event, argument = os.pullEvent()
- if event ==("redstone") then
- if redstone.getInput(sinput) then
- count = count + 1
- end
- if redstone.getInput(down) then
- count = count - 1
- end
- end
- if event == "char" and argument == "q" then break end
- if redstone.getInput("left") then break end
- end
Advertisement
Add Comment
Please, Sign In to add comment