Jump to content

How to create clock programs for Galacticraft dimensions(w/ more planets addon)

command utility

1 reply to this topic

#1 CrookedSpine

  • Members
  • 3 posts
  • LocationBrazil

Posted 29 December 2015 - 02:51 AM

Hi. I've recently discovered this awesome mod, and thought it would be even more interesting with Galacticraft. I built a moon base with solar panels, so i want to know exactly what time is on the moon. Trouble is: the clock program i've made only shows earth time. I know that moon day-night cycle equals 8 earth days, so 4 days of light and 4 of darkness. I could use some math to calculate this, but I need an universal program, one that works in all dimensions, because there is a lot of planets added by More Planets addon, and I don't know their day-night cycles. Do you guys know what can I do?

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 29 December 2015 - 07:30 AM

I'd be hooking up a daylight sensor to a computer. I mean, in theory it may be possible to calculate the correct "moon time" based on the results of os.time() (perhaps used in conjunction with os.day()), but I'm not altogether sure that Minecraft console commands can't be used to de-sync dimensions or something. A sensor makes it easy: you either have light, or you don't.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users