Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Essentials API--
- w,h = term.getSize()
- local function write(str,x,y)
- term.setCursorPos(x,y)
- term.write(str)
- end
- local function cWrite(str,y)
- if not y == nil then
- term.setCursorPos(w/2 - #str/2,y)
- term.write(str)
- elseif y == nil then
- term.setCursorPosw/2 - #str/2,h/2)
- else
- error("You did a bad...")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment