Advertisement
Guest User

todo

a guest
Jul 20th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.36 KB | None | 0 0
  1. os.pullEvent()
  2.  
  3. term.setTextColor(colors.red)
  4. term.clear()
  5.  
  6. function add(yPos, text)
  7. while true do
  8.   local event, button, xPos, yPos = os.pullEvent("mouse_click")
  9.   if xPos >= 1 and yPos == yPos then
  10.     term.clear()
  11.     term.setTextColor(colors.green)
  12.     term.setCursorPos(yPos, 1)
  13.     term.write(text)
  14.   end
  15. end
  16. end
  17. add( true )
  18. add(2, autocrafting_ae)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement