This is a minimal Minecraft server implementation in Go, targeting the Java Edition protocol.
- Listens for TCP connections on port 25565
- Responds to Minecraft ping/status requests (shows up in the multiplayer list)
- Publicly accessible (binds to 0.0.0.0)
- Install Go 1.21 or later
- Run:
go run main.go
- Add the server in your Minecraft client (Java Edition)
- To allow connections from other devices or the internet:
- Make sure port 25565 is open on your firewall
- If behind a router, port forward 25565 to your server’s local IP address
- Ping/status response
- Login handshake
- Player join/leave
- World/chunk handling
MIT