blob: d0380e744554c9c6e2cd6cbef7bd4e590d9f76b0 (
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 [![Build Status](https://travis-ci.org/LaG1924/AltCraft.svg?branch=master)](https://travis-ci.org/LaG1924/AltCraft)
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`
|