HuggingCraft
Allows run any Minecraft server on HuggingFace or another Docker service.
Download Purpur here: https://purpurmc.org/downloads
Download ngrok here: https://ngrok.com/download
Instructions
How to run
- Register on ngrok
- Get access key
- Make in "Repository secrets" new secret "NGROK_TOKEN" what contains access key
- Download purpur and ngrok binaries
- Rename purpur bin to "purpur.jar" and ngrok bin to "ngrok" and put them into main folder (where Dockerfile, start.sh ...)
- Optionally: run server locally to give yourself an op and configure all plugins and worlds
- Upload all files to HuggingFace's Space or make docker image
- Run Space/Docker!
How to join
- Go to ngrok's dashboard
- Go to tunnels -> agents
- You will see active agent. Click on it
- You will see agent's ip, region and tunnel what ngrok made to connect to server. This is ip of server
- Enter this ip as minecraft server's ip (without tcp://)
- Play
Suggestions for users
- How about DiscordSRV? You can control the server easily and you will need only configure the server settings
- Maybe any other easy ways to make it works? Idk, i did so complicated work, but its work!!!!!!! :D
Be careful!
- Files are NOT saving, maybe later will fix that but idk how
- If your repository gets deleted or your account gets blocked, its not my fault; imm just giving you the code, its up to you to use it, how to use it and etc
- Seems like HuggingFace blocked something and skins cant work properly, need to check what about license only server
- Server is already extremely optimized, also it using 14GB of RAM
- To change flags better use flags.sh