2022-06-24 06:30:07 +02:00
|
|
|
|
# Minecraft
|
|
|
|
|
|
2022-06-24 06:52:07 +02:00
|
|
|
|
This is a WIP reimplementation of Minecraft.
|
|
|
|
|
|
|
|
|
|
For now, we target feature parity with 1.18.2 or 1.19.1.
|
|
|
|
|
|
|
|
|
|
Immediate goals:
|
2022-06-24 06:54:24 +02:00
|
|
|
|
|
|
|
|
|
- Networking library
|
|
|
|
|
- [ ] build a dummy server that Minecraft clients can detect
|
|
|
|
|
- [ ] get Minecraft to connect to the dummy server
|
|
|
|
|
- Dummy server
|
|
|
|
|
- [ ] send an empty void
|
|
|
|
|
- [ ] send a surface to stand on
|
|
|
|
|
- [ ] handle chat
|
|
|
|
|
- NBT library
|
|
|
|
|
- [ ] parse NBT
|
|
|
|
|
- [ ] decode and encode data
|
2022-06-27 07:37:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Project Setup Instructions
|
|
|
|
|
|
|
|
|
|
### Prerequisites:
|
|
|
|
|
|
2022-06-27 07:51:39 +02:00
|
|
|
|
This project requires bash and a C++20 compiler.
|
|
|
|
|
|
|
|
|
|
The project setup requires wget or curl, gzip, and tar.
|
2022-06-27 07:37:20 +02:00
|
|
|
|
|
|
|
|
|
**For people using other shells than bash:** You need to at least have bash
|
|
|
|
|
installed to use the scripts, but using it as your shell while working on
|
|
|
|
|
this project also allows you to use the provided aliases.
|
|
|
|
|
|
|
|
|
|
If you don’t want to use bash as your shell, not even temporarily for this
|
|
|
|
|
project, you can use the scripts by running them from the project's base
|
2022-06-27 07:51:39 +02:00
|
|
|
|
directory and run any generated executables with `LD_LIBRARY_PATH` set to
|
|
|
|
|
point to `bin/lib`.
|
2022-06-27 07:37:20 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Setup
|
|
|
|
|
|
|
|
|
|
- `git clone` this repository
|
|
|
|
|
- if using bash:
|
|
|
|
|
- `source` the file `setupenv.bashrc` from the project's base directory
|
|
|
|
|
to load the provided shell environment
|
|
|
|
|
- `setup_project`
|
|
|
|
|
- if not using bash or not using the provided environment:
|
|
|
|
|
- `cd` to the project's base directory
|
|
|
|
|
- `scripts/setup_project.sh`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Building
|
|
|
|
|
|
|
|
|
|
To build the project, just use the `build` alias or invoke the `build.sh`
|
|
|
|
|
script from the project's base directory.
|