Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7 for MC 1.7.10, 1.8.9, 1.9.4, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
TwoThe

Clock - displays ingame time

Recommended Posts

On my way to learn OC I decided to write a simple clock program that displays the current ingame time on the screen.

You can download it from pastebin: 29GbdXf4

 

clock.jpg

If you run it, the resolution will be reduced so the time is displayed as big as possible when watching the screen block. If you press space the program is terminated (and the resolution reset).

Also works as tutorial on events. ;)

Share this post


Link to post
Share on other sites

Thanks!!! now my programs can show the hour in their GUI, and it also helped me to understand an eventhandler! 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×