summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 0f111195af15e488a076f8b92663c9e44b9f9b8e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# AltCraft [![CI](https://github.com/LaG1924/AltCraft/actions/workflows/ci.yml/badge.svg?event=push)](https://github.com/LaG1924/AltCraft/actions/workflows/ci.yml)
AltCraft is implementation of [Minecraft: Java Edition (1.12.2)](https://minecraft.net)  in C++.

This is aimed at being fast, being free and being easy expandable.

# Build
1. Install CMake 3.14, C++ compiler, OpenGL.

>Windows: VS2019 and workload Desktop development with C++

>Ubuntu: `apt install cmake g++ libgl1-mesa-dev libglu1-mesa-dev`

>MacOS: `xcode-select --install` and install [CMake](https://cmake.org/download/)

2. Build AltCraft using CMake (run in directory with clonned AltCraft repo):
```
    mkdir build && cd build
    cmake .. -DCMAKE_BUILD_TYPE=Release
    cmake --build .
```

>Windows: Just `Clone a repository` on statup screen in VS2019.

>Linux and MacOS: Alternatively, you could build and run using IDE such as CLion.

>Linux: There is a problem that Optick does not compile, so for now it needs to be disabled via the additional CMake parameter `-DOPTICK_ENABLED=OFF`.
3. Copy *.minecraft/version/{version}/{version}.jar/assets/* to *AltCraft-root/cwd/*
>You can extract .jar file as .zip archive.

>*/cwd/assets/minecraft/models/block/block.json* must be a valid path.
4. Set /cwd/ as working directory and run AC: `cd ../cwd/ && ../build/AltCraft`