Advertisement
Guest User

test

a guest
Dec 9th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.48 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement