r/CreateMod • • 10h ago

About Create Orbital

Post image

How Space Works in My Minecraft Mod

In the Overworld gravity starts getting weaker at 1,000 blocks and completely disappears at 1,500 blocks. At that height regular chunks stop loading and a separate cubic chunk system takes over to handle Sable physics.

Only physics-based objects can exist in space so you can't place regular blocks there. There's also no upper space limit yet.

The cool thing about this system is that you can fly at crazy speeds without lag. I managed to reach 2,000 blocks per second without any freezing or stuttering.

This system also allows procedurally generated Sable structures to spawn in space. You already can see asteroids but i have plans for way more.

Of course there are some downsides. Adding other planets, realistic orbits and proper space physics isn't really possible with the current system. I'll work on that sepperatly after the full release.

Why do it this way?

Because I want seamless space travel. No loading screens, portals or separate dimensions. Just build a spaceship and fly straight into space.

I also want the mod to work in existing Minecraft worlds without changing world generation of Overworld.

You cant do both things at once or i cant figure out a way to do that.

107 Upvotes

30 comments sorted by

12

u/CoCoNuTBSBS 9h ago

So kinda no "orbits" in create Orbital i guess

3

u/MildlySaltedTaterTot 9h ago

if you go high enough maybe you can go faster (to maintain “orbit” and once you pass 60 million it loops back around to -60 million

2

u/CoCoNuTBSBS 9h ago

It requires proper teleportation for the sable object and its turned out really hard to do

1

u/Autoskp 8h ago

But what happens if the x coord has a bit overflow?

14

u/epikc_ 10h ago

make the physics assembler get jammed so you cant force normal blocks to be placed

7

u/CoCoNuTBSBS 10h ago

I already aded this

4

u/CoCoNuTBSBS 10h ago

I mean this already have been added in regular sable

4

u/Autoskp 8h ago

You might still want to add something to prohibit it - some other mods have their own way of disassembling (I’ve been playing with hex casting, using a beta from their discord and a sable compat, also from their discord).

4

u/Autoskp 8h ago

You already can’t disassemble at moderately high altitudes - it says it’s too far away from the ground.

…I may have tried making a parking brake for my airship.

3

u/CoCoNuTBSBS 7h ago

My mod already has a space brake. It applies friction to the entire ship until it comes to a complete stop and its fixeted Not realistic but practical

4

u/epikc_ 6h ago

make it so it combusts if the outside of the ship is made of something flammable

2

u/CoCoNuTBSBS 6h ago

Interesting idea

13

u/LqqnY 6h ago

love your project. i'm building a similar modpack using my godot project as a reference. so far i ported the galaxy generation code and sky rendering. i'd love to contribute to your project. my godot project

2

u/CoCoNuTBSBS 6h ago

Bro this is insane. My project just don't deserve you. I use ai and stuff so you better to colab with better people

5

u/LqqnY 4h ago

i mean, i use ai too it gives me the math needed and i write it. i couldn't have done it without it

7

u/Raviexthegodremade 5h ago

I mean using AI in and of itself isn't a bad thing. It's vibe coding that sucks, not using it as a tool to help you do things. One of my favourite examples is Linus Torvalds, yes that Torvalds, the pioneer of the Linux Kernel. Recently he fixed a bug in the Intel Xe graphics driver that would cause the display manager to endlessly restart on certain hardware, taking 24 debug patches and 18 kernel reboots to fix it. And the way he debugged and fixed it? He used an AI assistant to handle the "grunt work" of adding debug code and analyzing the results. The primary issue with AI in coding is when people try handing shit over entirely to the AI, especially in important things, without human supervision. I don't use AI in coding primarily because my GPU doesn't have the horsepower to drive models that can actually help me.

7

u/DesperateArachnid573 9h ago

I like this chunk system a lot, it even seems like a neat performance idea (I think I recall an old 1.7 or 1.12 mod doing something similar for vanilla chunks). I'm not sure how planetoids would work though, if even in the scope of the mod, but im interested to see how you approach these things in the future 🙏

3

u/CoCoNuTBSBS 9h ago

Yea i really got inspired by Cubic chunks but they doesn't work with sable i tried to fix this but no, so i did my own sistem for this and its turned out great

3

u/Canarity 9h ago

This is most impressive. I'll be looking pretty fucking forward to adding that mod to my pack, especially considering my ship is pretty much space oriented already

1

u/CoCoNuTBSBS 9h ago

Love to hear that

2

u/The_Founder15 8h ago

Im not a modder, but i have an idea anyway. What if when a person generates a new world. Randomly selected sable cubes, as you call them, instead form a planet. A big cube that when approached doesnt show a loading screen just lets you enter it. However I order for this to work, when the player generates their world for the first time, each planet should generate its own ,,entering area" kf normal chunks. So no matter from where you enter the planet for the first time, that area gets mapped to the physical interpretation of the big planet cube and just like a normal world you can generate new unexplored chunks. However that introduces a new problem, when you leave the planet and come back to it from another way the already generated are is already mapped somewhere else (on your innitial enter of the atmosphere) so now you enter a completely unloaded are which is a problem cuz its unloaded chunks. Another solution is which I think is better is. Lets say 10x10 of those sable cubes are turned into one big planet cube which has normal world physics. But you add layers, so the layer occupying the 11x11 and the 12x12 would be considered ,,entering layers" which would also be the atmosphere but it would be the atmosphere now when you enter the atmoshere might get a bit slower performance but thats because youre generating the area for your landing. The idea is to spread the workload of the chunk generation evenly as you approach a planet and before you actually get to those chunks. But that introduces other problems. How do you map an infinite plane world to a very much limited physical cube? But those are ideas thst perhaps you can expand on

2

u/CoCoNuTBSBS 8h ago

Yes i thought about this. My problem is not other planets my problem is turning overworld in to a proper a planet without changing it. But thanks i appreciate that

2

u/Cylian91460 8h ago

How are you applying that gravity to sublevel? Also how much ai was used?

4

u/CoCoNuTBSBS 7h ago

Sable already has gravity settings that allow gravity to be set to zero. I just modified the system a bit so gravity changes depending on the altitude of a physics structure's center of mass. Ai for code. Some bits of code and everything else i doing myself

1

u/Cylian91460 7h ago

Gavrity is handled by the engine and the settings is per scene (aka level), you would have know that if you didn't vibecoded.

3

u/CoCoNuTBSBS 6h ago

I just oversimplified. By modifying i mean i am applying counterforce depending on the altitude. At first i tried to apply it for the whole scene but obviously it didn't work. Yes i still has a lot to lern

0

u/Cylian91460 6h ago

How do you deal with things that changes with gravity like levitite?

2

u/CoCoNuTBSBS 6h ago

That's work in progress for now. I think I'll just reduce its lift so it doesn't fly off into space

2

u/Vyrthic 9h ago

This is cool! I also liked that video I had seen of the mining lasers. Made me think of the mining lasers from Elite Dangerous. I look forward to seeing how this develops!

0

u/Impressive_Pin8761 4h ago

i am hands and knees on the floor here, begging, screaming, sacrificing

please for all that is unholy tell me you didn't use ai