Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
Python
SQL
Shell
Markdown
YAML
JSON
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
TypeScript
Perl
Lua
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
-- Pripojenie monitora local monitor = peripheral.find("monitor") if not monitor then print("Monitor nie je pripojený!") return end monitor.setBackgroundColor(colors.black) monitor.setTextScale(1.5) monitor.clear() while true do monitor.clear() -- Real Time (systémový čas) monitor.setCursorPos(1, 1) monitor.setTextColor(colors.orange) monitor.write("Real Time") monitor.setCursorPos(1, 2) monitor.setTextColor(colors.green) end monitor.write(textutils.formatTime(os.time("local"), true)) if os.time("local") >= 22.0 then monitor.write(" <--") end -- Minecraft Time monitor.setCursorPos(1, 4) monitor.setTextColor(colors.orange) monitor.write("Minecraft Time") monitor.setCursorPos(1, 5) monitor.setTextColor(colors.green) if os.time() < 10.0 then monitor.write("0") end monitor.write(textutils.formatTime(os.time(), true)) sleep(0.1) end
Mark as private
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year