mineflayer 3.15.0 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  [![NPM version](https://badge.fury.io/js/mineflayer.svg)](https://www.npmjs.com/package/mineflayer)
4
4
  [![Build Status](https://github.com/PrismarineJS/mineflayer/workflows/CI/badge.svg)](https://github.com/PrismarineJS/mineflayer/actions?query=workflow%3A%22CI%22)
5
- [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
6
5
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
7
6
  [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PrismarineJS/mineflayer/blob/master/docs/mineflayer.ipynb)
8
7
  [![GitHub Sponsors](https://img.shields.io/github/sponsors/PrismarineJS)](https://github.com/sponsors/PrismarineJS)
9
8
 
9
+ [![Official Discord](https://user-images.githubusercontent.com/61137113/152664460-65e41506-098b-497c-8938-8f54f7a600cc.svg)](https://discord.gg/GsEFRM8)
10
+
10
11
  | <sub>EN</sub> [English](README.md) | <sub>RU</sub> [русский](ru/README_RU.md) | <sub>ES</sub> [Español](es/README_ES.md) | <sub>FR</sub> [Français](fr/README_FR.md) | <sub>TR</sub> [Türkçe](tr/README_TR.md) | <sub>ZH</sub> [中文](zh/README_ZH_CN.md) |
11
12
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
12
13
 
@@ -196,10 +197,6 @@ The most updated and useful are :
196
197
 
197
198
  * [radar](https://github.com/andrewrk/mineflayer-radar/) - web based radar
198
199
  interface using canvas and socket.io. [YouTube Demo](https://www.youtube.com/watch?v=FjDmAfcVulQ)
199
- * [blockfinder](https://github.com/Darthfett/mineflayer-blockFinder) - find blocks in the 3D world
200
- * [scaffold](https://github.com/andrewrk/mineflayer-scaffold) - get to
201
- a target destination even if you have to build or break blocks to do so.
202
- [YouTube Demo](http://youtu.be/jkg6psMUSE0)
203
200
  * [auto-auth](https://github.com/G07cha/MineflayerAutoAuth) - chat-based bot authentication
204
201
  * [Bloodhound](https://github.com/Nixes/mineflayer-bloodhound) - determine who and what is responsible for damage to another entity
205
202
  * [tps](https://github.com/SiebeDW/mineflayer-tps) - get the current tps (processed tps)
package/docs/FAQ.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  This Frequently Asked Question document is meant to help people for the most common things.
4
4
 
5
+ ### I get an error when trying to login with a microsoft account.
6
+
7
+ Make sure the email you entered into the username option in createBot can be used to login to `minecraft.net` using the 'Login with Microsoft' button.
8
+ Make sure you have the option `auth: 'microsoft'` in your createBot options.
9
+
10
+ When you get an error that says something about invalid credentials or 'Does this account own Minecraft?' try removing the password field in the `createBot` options and try again.
11
+
5
12
  ### How to hide errors ?
6
13
 
7
14
  Use `hideErrors: true` in createBot options
@@ -119,7 +126,7 @@ Note that the order in which plugins are loaded is dynamic, so you should never
119
126
 
120
127
  ### How can I use a socks5 proxy?
121
128
 
122
- In the options object for `mineflayer.createBot(options)`, remove your `host` option from the options object, have the following variables declared `PROXY_IP, PROXY_PORT, PROXY_USERNAME, PROXY_PASSWORD, MC_SERVER_IP, MC_SERVER_PORT` and add this to your options object:
129
+ In the options object for `mineflayer.createBot(options)`, remove your `host` option from the options object, have the following variables declared `PROXY_IP, PROXY_PORT, PROXY_USERNAME, PROXY_PASSWORD, MC_SERVER_ADDRESS, MC_SERVER_PORT` and add this to your options object:
123
130
  ```js
124
131
  connect: (client) => {
125
132
  socks.createConnection({
@@ -132,7 +139,7 @@ connect: (client) => {
132
139
  },
133
140
  command: 'connect',
134
141
  destination: {
135
- host: MC_SERVER_IP,
142
+ host: MC_SERVER_ADDRESS,
136
143
  port: MC_SERVER_PORT
137
144
  }
138
145
  }, (err, info) => {
@@ -146,6 +153,7 @@ connect: (client) => {
146
153
  }
147
154
  ```
148
155
  `socks` is declared with `const socks = require('socks').SocksClient` and uses [this](https://www.npmjs.com/package/socks) package.
156
+ Some servers might reject the connection. If that happens try adding `fakeHost: MC_SERVER_ADDRESS` to your createBot options.
149
157
 
150
158
  # Common Errors
151
159
 
package/docs/README.md CHANGED
@@ -2,11 +2,12 @@
2
2
 
3
3
  [![NPM version](https://badge.fury.io/js/mineflayer.svg)](https://www.npmjs.com/package/mineflayer)
4
4
  [![Build Status](https://github.com/PrismarineJS/mineflayer/workflows/CI/badge.svg)](https://github.com/PrismarineJS/mineflayer/actions?query=workflow%3A%22CI%22)
5
- [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
6
5
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
7
6
  [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/PrismarineJS/mineflayer/blob/master/docs/mineflayer.ipynb)
8
7
  [![GitHub Sponsors](https://img.shields.io/github/sponsors/PrismarineJS)](https://github.com/sponsors/PrismarineJS)
9
8
 
9
+ [![Official Discord](https://user-images.githubusercontent.com/61137113/152664460-65e41506-098b-497c-8938-8f54f7a600cc.svg)](https://discord.gg/GsEFRM8)
10
+
10
11
  | <sub>EN</sub> [English](README.md) | <sub>RU</sub> [русский](ru/README_RU.md) | <sub>ES</sub> [Español](es/README_ES.md) | <sub>FR</sub> [Français](fr/README_FR.md) | <sub>TR</sub> [Türkçe](tr/README_TR.md) | <sub>ZH</sub> [中文](zh/README_ZH_CN.md) |
11
12
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
12
13
 
@@ -196,10 +197,6 @@ The most updated and useful are :
196
197
 
197
198
  * [radar](https://github.com/andrewrk/mineflayer-radar/) - web based radar
198
199
  interface using canvas and socket.io. [YouTube Demo](https://www.youtube.com/watch?v=FjDmAfcVulQ)
199
- * [blockfinder](https://github.com/Darthfett/mineflayer-blockFinder) - find blocks in the 3D world
200
- * [scaffold](https://github.com/andrewrk/mineflayer-scaffold) - get to
201
- a target destination even if you have to build or break blocks to do so.
202
- [YouTube Demo](http://youtu.be/jkg6psMUSE0)
203
200
  * [auto-auth](https://github.com/G07cha/MineflayerAutoAuth) - chat-based bot authentication
204
201
  * [Bloodhound](https://github.com/Nixes/mineflayer-bloodhound) - determine who and what is responsible for damage to another entity
205
202
  * [tps](https://github.com/SiebeDW/mineflayer-tps) - get the current tps (processed tps)