Pinkishu

clearEffect

Aug 11th, 2012
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.20 KB | None | 0 0
  1. clearEffect
  2. local tArgs = {...}
  3.  
  4. local x = tonumber(tArgs[1])
  5. local y = tonumber(tArgs[2])
  6. local screen = tArgs[3]
  7.  
  8. for dY=1,#screen,1 do
  9.     term.setCursorPos(x,y+dY-1)
  10.     term.write(screen[dY])
  11. end
Advertisement
Add Comment
Please, Sign In to add comment