Skip to content

Commit 52c0c75

Browse files
committed
docs: update readme
1 parent b2f2d85 commit 52c0c75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.MD

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ For building the project yourself / contributing, see [Development, Debugging &
1414

1515
> **Note**: You can deploy it on your own server in less than a minute using a one-liner script from [Minecraft Everywhere repo](https://github.com/zardoy/minecraft-everywhere)
1616
17-
1817
### Big Features
1918

2019
- Official Mineflayer [plugin integration](https://github.com/zardoy/mcraft-fun-mineflayer-plugin)! View / Control your bot remotely.
@@ -57,6 +56,7 @@ Howerver, it's known that these browsers have issues:
5756

5857
Server versions 1.8 - 1.21.4 are supported.
5958
First class versions (most of the features are tested on these versions):
59+
6060
- 1.19.4
6161
- 1.21.4
6262

@@ -125,11 +125,11 @@ There is world renderer playground ([link](https://mcon.vercel.app/playground/))
125125

126126
However, there are many things that can be done in online production version (like debugging actual source code). Also you can access some global variables in the console and there are a few useful examples:
127127

128-
- `localStorage.debug = '*'` - Enables all debug messages! Warning: this will start all packets spam.
128+
- If you type `debugToggle`, press enter in console - It will enables all debug messages! Warning: this will start all packets spam.
129129
Instead I recommend setting `options.debugLogNotFrequentPackets`. Also you can use `debugTopPackets` (with JSON.stringify) to see what packets were received/sent by name
130130

131131
- `bot` - Mineflayer bot instance. See Mineflayer documentation for more.
132-
- `viewer` - Three.js viewer instance, basically does all the rendering.
132+
- `world` - Three.js world instance, basically does all the rendering (part of renderer backend).
133133
- `world.sectionObjects` - Object with all active chunk sections (geometries) in the world. Each chunk section is a Three.js mesh or group.
134134
- `debugSceneChunks` - The same as above, but relative to current bot position (e.g. 0,0 is the current chunk).
135135
- `debugChangedOptions` - See what options are changed. Don't change options here.
@@ -139,7 +139,7 @@ Instead I recommend setting `options.debugLogNotFrequentPackets`. Also you can u
139139

140140
- `nbt.simplify(someNbt)` - Simplifies nbt data, so it's easier to read.
141141

142-
The most useful thing in devtools is the watch expression. You can add any expression there and it will be re-evaluated in real time. For example, you can add `camera.position` to see the camera position and so on.
142+
The most useful thing in devtools is the watch expression. You can add any expression there and it will be re-evaluated in real time. For example, you can add `world.getCameraPosition()` to see the camera position and so on.
143143

144144
<img src="./docs-assets/watch-expr.png" alt="Watch expression" width="480"/>
145145

0 commit comments

Comments
 (0)