This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
CrookedSpine's profile picture

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

Started by CrookedSpine, 29 December 2015 - 01:51 AM
CrookedSpine #1
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?
Bomb Bloke #2
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.