1 of 10

Minecraft notes

(prep for dstack livestream 2)

2 of 10

3 of 10

Java server is easy

4 of 10

I missed the “turnstile” for my old copy of minecraft

5 of 10

Docker Compose for minecraft

6 of 10

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)

7 of 10

8 of 10

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

9 of 10

Alternative servers: PaperMC

https://papermc.io/

Seems faster/better, built on “spigot”/”bukkit”

10 of 10

Adding a Dstack VPN