Povstalec / StargateJourney

A repository for the Stargate Journey Minecraft Mod
39 stars 16 forks source link

Feature Request: ComputerCraft getSystem() #106

Open NovaAstral opened 2 months ago

NovaAstral commented 2 months ago

Id like to request the ability to get the current system the gate is in, so that one can make a dialing computer that doesn't have to ask the player if they're trying to dial an intergalactic or extragalactic address, or need a peripheral from another mod to do it automatically.

lukaskabc commented 2 months ago

There is also an option to make a function (like for advanced crystal interface) which could take 7/8-cehv address as a parameter and return solar system name and galaxy name (name/id), but I am not sure if that isn't too much. That would allow too easy address brute forcing

Something like getLocalSystem and getLocalGalaxy would be good.

Another option that comes to my mind is to make it a function of a planned dialing computer which could then act as a peripheral.

Povstalec commented 2 months ago

I am planning on making it into a separate block that can give you the information even without needing to outright use CC:Tweaked computers, while still being compatible with them.

lukaskabc commented 2 months ago

I am planning on making it into a separate block that can give you the information even without needing to outright use CC:Tweaked computers, while still being compatible with them.

what are your plans about that?
I can think about something like tech telescope which can identify system/galaxy by stars

but that fails in nether-like dimensions... :/

Povstalec commented 2 months ago

A stellar calculator, into which you can write Dimension ID, or Solar System ID and it will be able to tell you its Address and possibly Galaxy too; and also the other way around - you write the Address and Galaxy(leaving it blank will use the Solar System's primary galaxy) and it tells you the Solar System ID.