Advertisement
justync7

Concept Script

Aug 7th, 2012
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.33 KB | None | 0 0
  1. mouse = term.getMouse() -- Returns the mouse like peripheral.wrap returns the peripheral
  2. mouse.release() -- Releases the mouse from typing
  3.  
  4. while true do
  5. x, y = mouse.getPos() -- Gets the mouse's X and Y
  6. if mouse.click() then -- Detects if the mouse is clicking
  7. term.setCursorPos(1,2)
  8. print("Your mouse is at "..x","..y")
  9. end
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement