a guest Dec 9th, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. side = "top" --This is the side of the monitor
  2. text = "Willkommen in Louis' Haus"
  3. mon = peripheral.wrap(side)
  4. mon.setTextScale(1)
  5. while true
  6. do
  7.  mon.clear()
  8.  mon.setCursorPos(1,1)
  9.  mon.write(text)
  10.  mon.setCursorPos(1,2)
  11.  mon.write(textutils.formatTime(os.time(),false)) -- use false for 12h time
  12.  -- os.time() returns the time of the Minecraft day,
  13.  -- corresponding closely but not exactly to the sun position.
  14.  sleep(1) -- 0.2 would be smoother, but causes quite severe lag.
  15. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand