Addon Galacticraft Clock Mod

kyleedwardsny

Member
Jan 4, 2014
2
4
1
32
index.php


Source code: https://github.com/kyleedwardsny/GalacticraftClock

Hi everyone!

So, as many of you know, in recent versions of Galacticraft, the time sync behavior was changed due to issue #2643. In previous versions, you could reliably tell what time it was on the moon simply by looking at the phase of the moon from the overworld, and the time on Mars was the same on the overworld. But not anymore.

I found this out the hard way. After spending several real-world days prepping for my trip to the moon in survival, and making sure the phase of the moon was within the daytime range so that it would be safe to land, I lifted off... and arrived on the moon in the middle of the night. I was quite distraught and panicked. Had I just spent several real-world days painstakingly mining and building only to get pwned by an Evolved Creeper on arrival and effectively end the game?

Luckily, I was able to think and react quickly. I dug myself a 1x1x2 hole in the ground and waited out the night. Once the night was over, I completed my mission objectives and returned safely to the overworld. But this near-miss exposed what I consider to be a severe gameplay bug introduced by the time sync change: there is no longer a reliable way to know what time it is at your destination before arriving.

So what did I do next? I sat down and coded a solution. I have written a small mod for Galacticraft that allows you to tell the time on another celestial body without having to travel there first, just as the previous behavior allowed you to do. This addon adds new behavior to the Display Screen and the previously unused Satellite Dish. It creates a new channel on the Display Screen which cycles through the various celestial bodies and shows you the time on each one for a few seconds, but only if there is a Satellite Dish within 700 blocks. The reasoning is that the dish is acting as a telescope, but it's not actually acting as a radio receiver, hence no need to travel to the destination first.

To use the new behavior, simply place a Satellite Dish within 700 blocks of a Display Screen, and turn the Display Screen to the newly introduced Clock channel.

Unfortunately, I don't yet have any release builds, but if you are a developer, feel free to compile the code yourself, test it, and give me some feedback.

Things to improve:
  • Use something other than the Satellite Dish? A new block maybe? Using the Dish is mildly hokey, but I didn't want to make a new block.
  • Possible improvements to the graphics. I'm not much of a graphical/UI person myself, but at least it works pretty well and gets the point across.

2017-11-16_13.34.33.png
2017-11-16_13.34.41.png
2017-11-16_13.34.44.png
2017-11-16_13.34.46.png
2017-11-16_13.34.49.png
2017-11-16_13.34.57.png
 
Last edited by a moderator:

Ezer'Arch

Member
May 18, 2013
1,580
399
83
ezerarch.com
I saw your post on GitHub about making a clock addon, amazing idea. I'm surprised you got it done quickly. Thank you!

Just a thing: could you release a jar file version? I think people will prefer a jar file than using the source code.

Sorry for taking a while to approve the post. The first posts with external links need to be manually approved by a moderator. :)
 
Last edited:

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
This looks awesome, really nice job.

It's great to see the API for the Display Screen in use.
 
  • Like
Reactions: Ezer'Arch

Neexxus

Member
Jun 17, 2017
5
0
1
22
Love this idea, but i don't know how to turn a source code into actually .jar file.

Waiting the .jar to download :)
 
Jun 17, 2017
18
2
3
23
I feel there could be more features that could easily go with this. Like a map of the surface, but requires satellites. The Map's quality is decided by the strength of the satellite and if they're in orbit around the planet.
 
  • Like
Reactions: vos

CabeoC

Member
Sep 3, 2018
7
0
1
26
This is really great, though there are no install instructions. Most people don't know how to build from source code. Either provide a .jar or provide instructions on how to build from source. Otherwise, most people don't know how to install it.
 

MJRLegends

Member
Mar 13, 2015
539
63
28
This is really great, though there are no install instructions. Most people don't know how to build from source code. Either provide a .jar or provide instructions on how to build from source. Otherwise, most people don't know how to install it.
I believe the developer said "Unfortunately, I don't yet have any release builds, but if you are a developer, feel free to compile the code yourself, test it, and give me some feedback." in his information above. I can build you a jar if you would like just let me know if you still want it
 
  • Like
Reactions: CabeoC

CabeoC

Member
Sep 3, 2018
7
0
1
26
I believe the developer said "Unfortunately, I don't yet have any release builds, but if you are a developer, feel free to compile the code yourself, test it, and give me some feedback." in his information above. I can build you a jar if you would like just let me know if you still want it
That'd be great, though I may not have much use for it since I prefer creative mode. I'd just use it for decoration, and it'd have to be compatible with 1.7.10 since that's the version all my mods are on. I think other people would need it more than me.
 

DaMarionTDW

Member
Dec 2, 2018
4
0
1
23
I believe the developer said "Unfortunately, I don't yet have any release builds, but if you are a developer, feel free to compile the code yourself, test it, and give me some feedback." in his information above. I can build you a jar if you would like just let me know if you still want it
Can I have a .jar file for 1.12.2 plz I think it will be cool
 

Share this page