minecraft-server
minecraft-server copied to clipboard
Minecraft server from scratch using Bun
mc-server
Issues
If there is any issue during the installation process or when running the server, please file an issue on github (link)
Installation
- Go to this link: https://www.minecraft.net/en-us/download/server and download the server.jar
- Place it wherever on your disk such that you know its path
- Run the following, change the PATH/TO/SERVERJAR to the actual path where
server.jaris stored
java -DbundlerMainClass=net.minecraft.data.Main -jar PATH/TO/SERVERJAR/server.jar --all
This step will create a bunch of folders, you should find a "reports" folder
- Move the json files under the generated "reports" folder to the "static" folder of the cloned minecraft-server repository
- Cd into the repo and run the following:
bun install
bun run ./static/mapper.ts
This step should generate some ts files under ./src/db/
Run
bun run index.ts
This project was created using bun init in bun v1.0.22. Bun is a fast all-in-one JavaScript runtime.
------- TODO:
open / interact / close containers crafting recipes enchant items
------- Resources
https://wiki.vg/Data_Generators https://mcversions.net/