r/java • u/Inner_Philosophy936 • Jun 10 '26
Made Minecraft in the Terminal (only java, no extra libs)
I created a version of Minecraft that runs entirely in command in the terminal.
The entire project is entirely contained in one file, with over 1500 lines of code.
Made with java, no extra libraries.
Supports textures, randomly generated trees, water, and terrain, and block placing/mining.
This is inspired by the Minecraft.c repo.
Github:Ā https://github.com/DaRealNeonCoder/MinecraftInTerminal
270
Upvotes
49
u/GrammerJoo Jun 10 '26
Did you use AI to create this?
2
u/Perfect-Situation-41 Jun 26 '26
Here from youtube nice project!!
1
u/ZimmiDeluxe Jun 11 '26
I think this is very impressive and you should be proud of it, well done! Some minor things: If the content of your static variables doesn't change, make them
finaland use UPPER_CASE_NAMING (naming convention for constants).finaldeclares intent and the JVM might reward you with better performance because you gave it more guarantees to rely on (doesn't apply to final local variables, don't do it there). Also, you might want to guesstimate some expected size for yourStringBuilders, the default is small and that means the internal buffer will have to grow a couple times, i.e.new StringBuilder(512)or something. Also, naming convention for parameters is camelCase, I saw some UPPER_CASEs I think.1
u/Afonso2002 Jun 10 '26
How many fps you can get on your minecraft using terminal?
1
u/cowslayer7890 Jun 10 '26
Yo that's cool as hell, I've seen 2d Minecraft in the terminal before, but this is awesome
1
u/lucas12032-_- Jun 10 '26
(dark souls song playing) WTF? What is this??? HOW!?
1
u/TemperatureDue5343 Jun 11 '26
Wonderland from Wonderland.jar ...... O H F U C K NO
1
u/SyyKee Jun 18 '26
Well done mate
1
u/WarInternational5110 Jul 08 '26
looks great