Games Can Minecraft Be Built with B4J?

cklester

Well-Known Member
Licensed User
I think Minecraft was originally built in Java. (I'm not sure if it's still that way.) Does that mean that B4J could technically be used to make a clone? Does that also mean it could be multi-platform if built with x-plat in mind? Just curious if it would be as performant. I suspect it should be, since it's just Java all the way down.
 

LucasHeer

Active Member
Licensed User
Longtime User
I think Minecraft was originally built in Java. (I'm not sure if it's still that way.) Does that mean that B4J could technically be used to make a clone? Does that also mean it could be multi-platform if built with x-plat in mind? Just curious if it would be as performant. I suspect it should be, since it's just Java all the way down.
Kinda! B4J and B4X would be awesome for Minecraft.

Even though Minecraft was written in Java, the underlying 3D render engine was written in C/C++. OpenGL handles shaders, rendering, GPU interfacing, camera, etc.. While Java only handles player position, physics, game logic, etc). Rendering could probably be done in B4X/Java, but it would definitely be slower and very time-consuming to develop.

I wrote a CPU-based 3D render engine in pure B4X many years ago, but Minecraft would run at .1FPS with my code 🤣

So you'd want to interface with OpenGL or DirectX. Maybe WebGL.

 

Sandman

Expert
Licensed User
Longtime User
If you don't need to be compatible with Minecraft, it gets easier. There are a number of lightweight clones out there, with their source available. Here's a page I found with a quick search, I bet there are several more.
 

kamalbud

New Member
You can build simple block worlds in B4J, but a full 3D sandbox needs custom engines, chunk loading, and heavy graphics work. It’s doable but demands lots of coding.
 

kamalbud

New Member
I’ve played around with 3D in B4J, and it can handle simple voxel-style scenes, but a full game like Minecraft needs custom rendering, chunk management, and heavy optimization in OpenGL or LWJGL, which isn’t built into B4J. I used download Minecraft 1.26 for Android as a benchmark to compare performance needs, and it really showed how much engine work sits under the hood of a game like that.
 

ilan

Expert
Licensed User
Longtime User
I think Minecraft was originally built in Java. (I'm not sure if it's still that way.) Does that mean that B4J could technically be used to make a clone? Does that also mean it could be multi-platform if built with x-plat in mind? Just curious if it would be as performant. I suspect it should be, since it's just Java all the way down.
if you ask me i would not even try it. if you really want to get into 3d gaming development you should use unity or unreal engine. anything else is a waste of time.
 
Top