web-minecraft
About
Web-minecraft is minecraft client written in Javascript. From web browser this client connects to node.js server and then to real minecraft server, so you can play minecraft in the browser.
Instructions
Install locally
git clone https://github.com/michaljaz/web-minecraft
cd web-minecraft
npm i
Minecraft server setup
To run this game you need to start real minecraft server (by default it is 1.16.5 offline mode java edition on ip localhost:25565).Minecraft premium support
You can add premium=true parameter to url for premium, it will open a prompt, write password and tada.Linting
#Only show whats wrong
npm run lint
#Fix what is wrong
npm run lint:fix
Development setup
#Start node server with webpack middleware
npm run dev
Production setup
#Cleaning dist folder (old game bundles)
npm run clean
#Building app bundle
npm run build
#Start node server and serve bundle files
npm start