MCPcopy Index your code
hub / github.com/ClassiCube/ClassiCube

github.com/ClassiCube/ClassiCube @1.3.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.3.8 ↗ · + Follow
12,447 symbols 28,262 edges 538 files 1,388 documented · 11%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ClassiCube is a custom Minecraft Classic compatible client written in C from scratch.

[!IMPORTANT] ClassiCube is not affiliated with (or supported by) Mojang AB, Minecraft, or Microsoft in any way.

ClassiCube is not trying to replicate modern Minecraft.

It will never support survival, Minecraft accounts, or modern Minecraft servers.

What ClassiCube is

ClassiCube aims to replicate the 2009 Minecraft Classic client while offering optional enhancements to improve gameplay. ClassiCube can run on many systems, including desktop, web, mobile, and even some consoles.

Features (click to expand)

  • Much better performance and minimal memory usage compared to original Minecraft Classic
  • Optional enhancements including custom blocks, models, and environment colors
  • Partially supports some features of Minecraft Classic versions before 0.30
  • Works with effectively all graphics cards that support OpenGL or Direct3D 9
  • Runs on Windows, macOS, Linux, Android, iOS, and in a web browser
  • Also runs on OpenBSD, FreeBSD, NetBSD, Solaris, Haiku, IRIX, SerenityOS
  • Although in various stages of early development, also runs on various consoles

You can download ClassiCube here and the very latest builds here.

classic

enhanced

We need your help

ClassiCube strives to replicate the original Minecraft Classic experience by strictly adhering to clean room reverse engineering approach.

If you're interested in documenting or verifying the behaviour of the original Minecraft Classic, please get in contact on the ClassiCube Discord

How to play

Initially, you will need to run ClassiCube.exe to download the required assets from minecraft.net and classicube.net.

Just click 'OK' to the dialog menu that appears when you start the launcher.

Note: When running from within VirtualBox, disable Mouse Integration, otherwise the in-game camera won't work properly.

Singleplayer mode Run ClassiCube.exe, then click Singleplayer at the main menu.

Multiplayer mode Run ClassiCube.exe. You can connect to LAN/locally hosted servers, and classicube.net servers if you have a ClassiCube account.

Stuck on OpenGL 1.1?

The most common reason for being stuck on OpenGL 1.1 is non-working GPU drivers - so if possible, you should try either installing or updating the drivers for your GPU.

Otherwise: * On Windows, you can still run the OpenGL build of ClassiCube anyways.

(You can try downloading and using the MESA software renderer from here for slightly better performance though) * On other operating systems, you will have to compile the game yourself.

Don't forget to add -DCC_BUILD_GL11 to the compilation command line so that the compiled game supports OpenGL 1.1.

Supported systems

ClassiCube runs on: * Windows - 95 and later * macOS - 10.5 or later (can be compiled for 10.3/10.4 though) * Linux - needs libopenal * Android - 2.3 or later * iOS - 8.0 or later * Most web browsers (even runs on IE11)

And also runs on: * Raspberry Pi - needs libopenal * FreeBSD - needs libexecinfo and openal-soft packages (can download from here) * NetBSD - needs libexecinfo and openal-soft packages (can download from here) * OpenBSD - needs libexecinfo and openal packages * Solaris - needs openal packages * Haiku - needs openal package (if you have a GitHub account, can download from here) * BeOS - untested on actual hardware * IRIX - needs openal packages * HPUX - tested on 11v3 IA64 * SerenityOS - needs SDL2 * Classic Mac OS (System 7 and later) * Dreamcast - unfinished, but usable (can download from here) * Saturn - unfinished, major rendering and stability issues (can download from here) * Switch - unfinished, but usable (can download from here) * Wii U - unfinished, major issues, broken on real hardware (can download from here) * Wii - unfinished, but usable (can download from here) * GameCube - unfinished, but usable (can download from here) * Nintendo 64 - unfinished, moderate rendering issues (can download from here) * 3DS - unfinished, but usable (can download from here) * DS/DSi - unfinished, rendering issues (can download from here) * PS Vita - unfinished, rendering issues (can download from here) * PSP - unfinished, rendering issues (can download from here) * PS3 - unfinished, rendering issues (can download from here) * PS2 - unfinished, major rendering and stability issues (can download from here) * PS1 - unfinished, major rendering and stability issues (can download from here) * Xbox 360 - completely unfinished, broken on real hardware (can download from here) * Xbox - unfinished, major rendering issues (can download from here) * Symbian (S60 3rd Edition FP1 and later) - unfinished, but usable

Compiling

*Note: The instructions below automatically compile ClassiCube with the recommended defaults for the platform.

If you (not recommended) want to override the defaults (e.g. to compile OpenGL build on Windows), see here for details.*

Compiling - Windows

Using Visual Studio
  1. Open ClassiCube.sln (File -> Open -> Project/Solution)
  2. Compile/Build it (Build -> Build Solution).

If you get a The Windows SDK version 5.1 was not found compilation error, see here for how to fix

Using Visual Studio (command line)
  1. Use 'Developer Tools for Visual Studio' from Start Menu
  2. Navigate to the directory with ClassiCube's source code
  3. Run cl.exe src\*.c third_party\bearssl\*.c /link user32.lib gdi32.lib winmm.lib dbghelp.lib shell32.lib comdlg32.lib /out:ClassiCube.exe
Using MinGW-w64

Assuming that you used the installer from https://sourceforge.net/projects/mingw-w64/ : 1. Install MinGW-W64 2. Use either Run Terminal from Start Menu or run mingw-w64.bat in the installation folder 3. Navigate to the directory with ClassiCube's source code 4. Run either: * make mingw - produces a simple non-optimised executable, easier to debug * make mingw RELEASE=1 - produces an optimised executable, harder to debug

Using MinGW

Assuming that you used the installer from https://osdn.net/projects/mingw/ : 1. Install MinGW. You need mingw32-base-bin and msys-base-bin packages. 2. Run msys.bat in the C:\MinGW\msys\1.0 folder. 3. Navigate to the directory with ClassiCube's source code 4. Run either: * make mingw - produces a simple non-optimised executable, easier to debug * make mingw RELEASE=1 - produces an optimised executable, harder to debug

Using TCC (Tiny C Compiler)

Setting up TCC: 1. Download and extract tcc-0.9.27-win64-bin.zip from https://bellard.org/tcc/ 2. Download winapi-full-for-0.9.27.zip from https://bellard.org/tcc/ 3. Copy winapi folder and _mingw_dxhelper.h from winapi-full-for-0.9.27.zip into TCC's include folder

Compiling with TCC: 1. Navigate to the directory with ClassiCube's source code 2. Run tcc.exe -o ClassiCube.exe src/*.c third_party/bearssl/*.c -lwinmm -lgdi32 -luser32 -lcomdlg32 -lshell32

(Note: You may need to specify the full path to tcc.exe instead of just tcc.exe)

Compiling - Linux

Using gcc/clang
  1. Install X11, XInput2, and OpenGL development libraries if necessary.

For Ubuntu, these are the libx11-dev, libxi-dev and libgl1-mesa-dev packages 2. Run either: * make linux - produces a simple non-optimised executable, easier to debug * make linux RELEASE=1 - produces an optimised executable, harder to debug

Cross compiling for Windows (32 bit):
  1. Install MinGW-w64 if necessary. (Ubuntu: gcc-mingw-w64 package)
  2. Run make mingw CC=i686-w64-mingw32-gcc
Cross compiling for Windows (64 bit):
  1. Install MinGW-w64 if necessary. (Ubuntu: gcc-mingw-w64 package)
  2. Run make mingw CC=x86_64-w64-mingw32-gcc
Raspberry Pi

Although the regular linux compiliation flags will work fine, to take full advantage of the hardware:

make rpi

Compiling - macOS

  1. Install a C compiler if necessary. The easiest way of obtaining one is by installing Xcode.
  2. Run either:
    • make darwin - produces a simple non-optimised executable, easier to debug
    • make darwin RELEASE=1 - produces an optimised executable, harder to debug
Using Xcode GUI
  1. Open the misc/macOS/CCMAC.xcodeproj project in Xcode
  2. Compile the project

Compiling - for Android

NOTE: If you are distributing a modified version, please change the package ID from com.classicube.android.client to something else - otherwise Android users won't be able to have both ClassiCube and your modified version installed at the same time on their Android device

Using Android Studio GUI

Open misc/android folder in Android Studio (TODO explain more detailed)

Using command line (gradle)

Run gradlew in misc/android folder (TODO explain more detailed)

Compiling - for iOS

iOS version will have issues as it's incomplete and only tested in iOS Simulator

NOTE: If you are distributing a modified version, please change the bundle ID from com.classicube.ios.client to something else - otherwise iOS users won't be able to have both ClassiCube and your modified version installed at the same time on their iOS device

Using Xcode GUI
  1. Open the misc/ios/CCIOS.xcodeproj project in Xcode
  2. Compile the project
Using command line (Xcode)

xcodebuild -sdk iphoneos -configuration Debug (TODO explain more detailed)

Compiling - webclient

  1. Install emscripten if necessary.
  2. Run either:
    • make web - produces simple non-optimised output, easier to debug
    • make web RELEASE=1 - produces optimised output, harder to debug

The generated javascript file has some issues. See here for how to fix

For details on how to integrate the webclient into a website, see here

Compiling - consoles

All console ports need assistance from someone experienced with homebrew development - if you're interested, please get in contact on the ClassiCube Discord.

Nintendo consoles (click to expand)

Switch

Run make switch. You'll need libnx and mesa

NOTE: It is highly recommended that you install the precompiled devkitpro packages from here - you need the switch-dev group and the switch-mesa switch-glm packages)

Wii U

Run make wiiu. You'll need wut

NOTE: It is highly recommended that you install the precompiled devkitpro packages from here - you need the wiiu-dev group)

3DS

Run make 3ds. You'll need libctru

NOTE: It is highly recommended that you install the precompiled devkitpro packages from here - you need the 3ds-dev group)

Wii

Run make wii. You'll need libogc

NOTE: It is highly recommended that you install the precompiled devkitpro packages from here - you need the wii-dev group)

GameCube

Run make gamecube. You'll need libogc2

NOTE: It is highly recommended that you install the precompiled libogc2 packages from here - you need the gamecube-dev group)

Nintendo DS/DSi

Run make ds. You'll need BlocksDS

Nintendo 64

Run make n64. You'll need the opengl branch of libdragon

GBA

Run make gba. You'll need libgba

**NOTE: It is highly recommended that you install the precompiled devkitpro packages from [here](https://devkitpr

Core symbols most depended-on inside this repo

Gamepad_SetButton
called by 360
src/Input.c
FT_MulFix
called by 186
src/freetype/ftcalc.c
String_AppendConst
called by 179
src/String.c
Platform_LogConst
called by 175
src/_PlatformBase.h
Mem_Free
called by 123
src/_PlatformBase.h
Mem_Copy
called by 122
src/_PlatformBase.h
String_Format1
called by 122
src/String.c
String_CaselessEqualsConst
called by 113
src/String.c

Shape

Function 10,094
Class 2,084
Method 166
Enum 103

Languages

C85%
C++14%
Java1%
C#1%
TypeScript1%

Modules by API surface

src/Menus.c339 symbols
src/Widgets.c243 symbols
src/MenuOptions.c226 symbols
src/Screens.c216 symbols
src/LScreens.c183 symbols
src/Model.c179 symbols
src/freetype/ttinterp.c175 symbols
src/Protocol.c130 symbols
src/Graphics_D3D11.c118 symbols
src/Entity.c112 symbols
src/psvita/Graphics_PSVita.c107 symbols
src/LBackend.c105 symbols

For agents

$ claude mcp add ClassiCube \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact