Infinite world, LuaJIT mod API, WorldEdit port, skins and music

- Infinite world: streamed chunk cache, multi-region storage (old chunks.dat
  still loads), per-chunk entity/tile entity persistence, client chunk
  streaming, protocol version 10, view-distance server property
- LuaJIT mod host (mods/, lua/prelude.lua) with events, commands, world and
  player API; WorldEdit command set ported to it (mods/worldedit)
- /skin command, SetSkinPacket and bundled skins
- OGG music player (data/music is ignored, tools/convert-music.ps1)
- package-windows.ps1 builds client and dedicated server for Windows

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Kirill Sokolov 2026-10-20 21:08:09 +03:00
parent db9f6c9f32
commit 110cb2a896
68 changed files with 5064 additions and 844 deletions

View file

@ -24,6 +24,25 @@ This project aims to preserve and improve this early version of Minecraft PE.
</p>
# This fork: infinite world, Lua mods, WorldEdit, skins, music
- **Infinite world** - chunks are generated, saved (region files `r.<x>.<z>.dat`, old `chunks.dat` worlds still load) and unloaded around the players. Dedicated server: `view-distance=<chunks>` in `server.properties` (the old `world-size` is ignored). Multiplayer protocol version is now 10.
- **Lua mods (LuaJIT)** - drop mods into `mods/`, see [mods/README.md](mods/README.md) for the API (events, commands, world/player access, scheduler).
- **WorldEdit** - [mods/worldedit](mods/worldedit) is a port of EngineHub's WorldEdit command set to that API (`//wand`, `//set`, `//sphere`, `//copy`, `//paste`, `/undo`, brushes, ...).
- **Skins** - `data/images/skins/*.png` (64x32 or 64x64). `/skin list`, `/skin <name>` in the chat console; other players see the skin you pick. Drop a `<username>.png` there to override the skin of that player.
- **Music** - the `.ogg` files in `data/music` are played in random order (volume: Music slider). Use `tools/convert-music.ps1` to convert your own FLAC/MP3 files.
## Windows build (client + server)
```powershell
.\package-windows.ps1 # needs Visual Studio 2022 (C++) and CMake
```
Result: `dist\MinecraftPE-win64` (client) and `dist\MinecraftPE-server-win64` (dedicated server, `start-server.bat`).
The script limits the compiler parallelism because OpenAL Soft needs a lot of memory (`-Jobs 2` for small machines), and
trusts the dependency checkouts for git ("dubious ownership" on drives that do not store file owners).
# Build
## CMake