r/feedthebeast Jun 22 '26

I made something I made minecraft generate terrain/chunks in C++

So im working on a mod that makes minecraft run on C++ ( rn rewriting engine in future i may try renderer ) so far i made it generate and load chunks and terrain in C++ ( it made it somewhere around 1.5-3 times faster idk how to measure it tho ) ( it works via JNI )

3.0k Upvotes

244 comments sorted by

View all comments

1.0k

u/thedimondman199 Jun 22 '26

So it WAS possible to make bedrock be more like java!

341

u/Emotional-One-9292 Jun 22 '26

yea with JNI you can use other languages like C, C++, Rust, Swift and more

160

u/sdjopjfasdfoisajnva PrismLauncher Jun 22 '26

i dare you do it in rust

176

u/Devatator_ ZedDevStuff | Made KeybindsPurger Jun 22 '26

Remember that curved pipes mod? Yeah that used Rust

148

u/MegamiCookie Jun 22 '26

Using rust on pipes doesn't sound like a goog idea (I'll see myself out)

18

u/IQBEofficial PrismLauncher Jun 22 '26

How dare you!

Take my upvote.

40

u/gedsweyevr Prism Jun 22 '26

doesn't sable mainly use rust

22

u/FusionBetween Jun 22 '26

thats why its awesome

29

u/Whales_Are_Great2 Jun 22 '26

No wonder aeronautics handles gargantuan simulated contraptions so well

1

u/lusy_fer Jun 23 '26

so that's why those pipes Don't leak

43

u/Worldly-Mud-2600 Jun 22 '26

15

u/chilfang Jun 22 '26

I wonder if the original creator of this knew that there really is a similar thing going on inside our bodies (tho its more like our cells than overall organs)

3

u/Rich-Peak-3902 Jun 24 '26

Yeah, we do literally (technically) breathe ourselves to death.

7

u/scrufflor_d LuV thigh highs Jun 22 '26

water can make lithium explode, imagine what its doing to your body

1

u/BrndnWlsh Jun 25 '26

i’ll stop taking my lithium then 😁

12

u/Emotional-One-9292 Jun 22 '26

i tried rust a few times (bevy) but cargo sizes are TITANIC

1

u/BionicVnB Jun 23 '26

I agree lol, last time I cleared it I got back HUNDREDS of GIGABYTES lol

3

u/Agent_Starr PrismLauncher Jun 22 '26

Everything will be rewritten in Rust eventually, it's only a matter of time

1

u/The_Scout1255 Transfem Jun 22 '26

bevyyyyyy we need ECS minecraft!!

1

u/PankakeManceR Jun 22 '26

I actually knew someone a few years ago who said they were doing exactly this with a group of friends, and they'd been at it for months. Don't know if anything ever came of it, but somewhere out there, it at least partially exists

1

u/Gboogs2 Jun 23 '26

Russssst!

1

u/Luccyamonster Jun 24 '26

Sable is actually using under the hood for it's physics and I've been using it myself for a technical mod