Addon Galacticraft Clock Mod

Discussion in 'Addons and Resource Packs' started by kyleedwardsny, Nov 16, 2017.

  1. kyleedwardsny

    kyleedwardsny Member

    Jan 4, 2014
    Likes Received:

    Source code:

    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.

    #1 kyleedwardsny, Nov 16, 2017
    Last edited by a moderator: Nov 20, 2017
  2. Ezer'Arch

    Ezer'Arch Administrator
    Staff Member

    May 18, 2013
    Likes Received:
    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. :)
    #2 Ezer'Arch, Nov 20, 2017
    Last edited: Nov 20, 2017
  3. radfast

    radfast Administrator
    Staff Member

    Apr 27, 2014
    Likes Received:
    This looks awesome, really nice job.

    It's great to see the API for the Display Screen in use.
    Ezer'Arch likes this.
  4. Neexxus

    Neexxus Member

    Jun 17, 2017
    Likes Received:
    Love this idea, but i don't know how to turn a source code into actually .jar file.

    Waiting the .jar to download :)
  5. ArchtypeOfEpic

    Jun 17, 2017
    Likes Received:
    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.
    vos likes this.

Share This Page