You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[](https://gitpod.io/#https://github.com/PrismarineJS/prismarine-web-client)
6
6
7
-
### A Minecraft client running in a web page. **Live demo at https://prismarine.js.org/prismarine-web-client/**
8
-
7
+
A Minecraft client running in a web page. **Live demo at https://prismarine.js.org/prismarine-web-client/**
9
8
10
9
11
10
## How it Works
12
-
prismarine-web-client runs mineflayer and prismarine-viewer in the browser, which connects over WebSocket to a proxy which translates the WebSocket connection into TCP to connect to normal Minecraft servers.
11
+
prismarine-web-client runs mineflayer and prismarine-viewer in the browser, which connects over WebSocket to a proxy
12
+
which translates the WebSocket connection into TCP to connect to normal Minecraft servers.
13
13
14
14
## Screenshot
15
15

16
16
17
17
## Live Demo
18
-
Click on this link to open it in your browser, no installation necessary: https://prismarine-web-client.js.org
18
+
Click on this link to open it in your browser, no installation necessary: https://prismarine.js.org/prismarine-web-client
19
19
20
20
*Tested on Chrome & Firefox for desktop platforms.*
21
21
22
-
## Usage (for self-hosted installations)
23
-
If you want the latest version or want to use auth, you can host an instance yourself.
24
-
25
-
Run these commands in bash:
22
+
## Usage
23
+
To host it yourself, run these commands in bash:
26
24
```bash
27
25
$ npm install -g prismarine-web-client
28
26
$ prismarine-web-client
@@ -31,20 +29,16 @@ Finally, open `http://localhost:8080` in your browser.
31
29
32
30
## Features
33
31
34
-
* Display mobs (though sometimes messed up)
35
-
* Display players
36
-
* Display other entities as colored rectangles
32
+
* Display mobs and players
37
33
* Display blocks
38
34
* Movement (you can move, and you see entities moving live)
39
35
* Place and break blocks
40
36
41
37
## Roadmap
42
38
* Containers (inventory, chests, etc.)
43
-
* More Customisation (e.g. mouse sensitivity, text size, issue #40)
44
39
* Sounds
45
40
* More World Interactions (attacking entities, etc.)
46
41
* Cosmetic Rendering Features (day night cycle, fog, etc.)
47
-
* Server-Side Support Plugins (for auth bypass & possibly hosting its own websocket proxy to reduce latency, issue #13)
48
42
49
43
## Development
50
44
@@ -61,10 +55,17 @@ Finally, run
61
55
62
56
```bash
63
57
$ npm install
64
-
$ npm run build-start
58
+
$ npm start
65
59
```
66
60
67
-
Then connect to http://localhost:8080 in your browser.
61
+
This will start express and webpack in development mode: whenever you save a file, the build will be redone (it takes 5s),
62
+
and you can refresh the page to get the new result.
63
+
64
+
Connect to http://localhost:8080 in your browser.
65
+
66
+
You may want to disable auto saving in your IDE to avoid constant rebuilding, see https://webpack.js.org/guides/development/#adjusting-your-text-editor
68
67
68
+
To check the production build (take a minute to build), you can run `npm run build-start`
69
69
70
+
If you're interested in contributing, you can check projects at https://github.com/PrismarineJS/prismarine-web-client/projects
0 commit comments