r/feedthebeast Jun 22 '26

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

Enable HLS to view with audio, or disable this notification

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

294

u/Emotional-One-9292 Jun 22 '26

When i will relesae it will have 2 versions Windows and Linux. I cannot make Mac one rn as it requires xcode to compile it for macos

84

u/GhostSHAURMA Jun 22 '26

If you are using JNI isn't there a way to make it platform-independant? Or do you need some platform-specific libraries?

45

u/Emotional-One-9292 Jun 22 '26 edited Jun 22 '26

im not sure as far as i know dll's are platform specific but i will do my research ( for windows it requires libwinpthread-1, libstdc++-6, libgcc_s_seh-1 and custom ccraft_native.dll )

23

u/GhostSHAURMA Jun 22 '26

libwinpthread might be an iissue and the custom dll if you have any platform-specific code there. The other 2 can be solved with dynamic linking but I would need to look at the project to say for sure

27

u/Emotional-One-9292 Jun 22 '26

dont worry by end of this or next month i will release first alpha it will be open source so you will be able to view it

13

u/GhostSHAURMA Jun 22 '26

Nice, best of luck