Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- side = "top" --This is the side of the monitor
- text = "Willkommen in Louis' Haus"
- mon = peripheral.wrap(side)
- mon.setTextScale(1)
- while true
- do
- mon.clear()
- mon.setCursorPos(1,1)
- mon.write(text)
- mon.setCursorPos(1,2)
- mon.write(textutils.formatTime(os.time(),false)) -- use false for 12h time
- -- os.time() returns the time of the Minecraft day,
- -- corresponding closely but not exactly to the sun position.
- sleep(1) -- 0.2 would be smoother, but causes quite severe lag.
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement