Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function clear()
- term.clear()
- term.setCursorPos(1,1)
- end
- codestring = ("")
- function main()
- while true do
- input = redstone.getBundledInput("right")
- if input == ("1") then
- inputred = redstone.getBundledInput("right", colors.red)
- inputwhite = redstone.getBundledInput("right", colors.white)
- if inputred == ("1") then
- codestring = (codestring.. "r")
- print(codestring)
- elseif inputwhite == ("1") then
- codestring = (codestring.. "w")
- print(codestring)
- end
- end
- end
- end
- clear()
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement