Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[ Code written by SolWarriorDjango ]--
- --[ A Simple message board clock for the ComputerCraft Minecraft mod ]--
- --[ monitor.setTextColor(?) is only available for advanced computers and advanced monitors ]--
- --[ side -> Replace with the side that the monitor is touching ]--
- --[ ? -> Replace with a numerical value ]--
- --[ Variables ]--
- monitor = peripheral.wrap("side")
- --[ Clock ]--
- while true do
- term.redirect(monitor) --[ Tells the computer to display everything on the adjacent monitor ]--
- monitor.clear() --[ Clears the monitor ]--
- monitor.setTextScale(?) --[ Sets the size of the text ]--
- monitor.setTextcolor(?) --[ Sets the text color ]--
- term.setCursorPos(?,?) --[ Sets the position of the text on adjacent monitor ]--
- shell.run("time") --[ Access the running Minecraft world clock ]--
- sleep(1) --[ Do nothing for 1 second ]--
- term.restore()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement