Minecraft notes
(prep for dstack livestream 2)
Java server is easy
I missed the “turnstile” for my old copy of minecraft
Docker Compose for minecraft
There’s some docker documentation w/ lots of options�https://docker-minecraft-server.readthedocs.io/en/latest/
One of them is for ngrok:�https://github.com/itzg/docker-minecraft-server/blob/master/examples/docker-compose-ngrok.yml
Encryption and Authentication in Minecraft
Mojang Identity servers
Server
server.key�
Client
client.key�
user logs in, registers pubkey
server checks that users are logged in
hand shake,�roll-their-own-tls
Registry of client IDs
optional, “server.online-mode” can be off
But, public keys for the servers are not registered anywhere.
Good for a client mod (FabricMC)
Minecraft as a coprocessor
We can script a daemon that runs in the docker-compose next to the minecraft. It can follow one of the testnet blockchains
Have a contract where you need a token balance for your guy to spawn.
Send tokens to buy an item in game
MC Server
Smart Contract
mapping ( username => uint) users;
Light client
rcon_script.py
manage allowlist via rcon
Alternative servers: PaperMC
Seems faster/better, built on “spigot”/”bukkit”
Adding a Dstack VPN