Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function startMonitor()
- monitor = peripheral.wrap("back")
- wm, hm = monitor.getSize()
- monitor.setTextScale(2)
- term.setTextColor(colors.orange)
- end
- startMonitor()
- local cwrite = function(text)
- local x2,y2 = monitor.getCursorPos()
- local x,y = monitor.getSize()
- monitor.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- monitor.write(text)
- end
- cwrite("Applied Energistics") -- centers printed text to monitor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement