Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local monitor = peripheral.wrap("bottom")
- local function centerText(text)
- local x,y = term.getSize()
- local x2,y2 = term.getCursorPos()
- monitor.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- monitor.write("Lager und")
- monitor.write("mehr")
- end
- centerText(Lager und mehr")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement