Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- function DeviceDetect(DeviceName)
- DeviceSide="none"
- for k,v in pairs(redstone.getSides()) do
- if peripheral.getType(v)==DeviceName then
- DeviceSide = v
- break
- end
- end
- return(DeviceSide)
- end
- function newLine(text)
- local _,cY= m.getCursorPos()
- m.setCursorPos(1,cY+1)
- m.write(text)
- end
- MonitorSide=DeviceDetect("monitor")
- print ("Monitor on side:"..MonitorSide)
- m = peripheral.wrap(MonitorSide)
- m.setTextScale(0.5)
- m.clear()
- m.setCursorPos(1, 0)
- newLine(" WELCOME AT")
- newLine(" LJSpace Inc.")
- newLine("=====================================")
- newLine(" Safety rule: ")
- newLine(" Don't run over the edges!")
- newLine(" If you lose your head,")
- newLine(" it will be my property.")
- newLine(" Do you have food, if not, ask!")
- newLine(" Most of all: Enjoy your stay.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement