Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent()
- term.setTextColor(colors.red)
- term.clear()
- function add(yPos, text)
- while true do
- local event, button, xPos, yPos = os.pullEvent("mouse_click")
- if xPos >= 1 and yPos == yPos then
- term.clear()
- term.setTextColor(colors.green)
- term.setCursorPos(yPos, 1)
- term.write(text)
- end
- end
- end
- add( true )
- add(2, autocrafting_ae)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement