mineflayer 3.11.0 → 3.13.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.
Files changed (43) hide show
  1. package/.github/FUNDING.yml +0 -2
  2. package/README.md +16 -15
  3. package/docs/README.md +16 -15
  4. package/docs/api.md +25 -16
  5. package/docs/es/README_ES.md +1 -1
  6. package/docs/es/api_es.md +34 -18
  7. package/docs/fr/README_FR.md +1 -1
  8. package/docs/history.md +29 -0
  9. package/docs/ru/README_RU.md +1 -1
  10. package/docs/ru/api_ru.md +1 -1
  11. package/docs/tr/README_TR.md +1 -1
  12. package/docs/zh/README_ZH_CN.md +1 -1
  13. package/examples/chatterbox.js +1 -1
  14. package/examples/discord.js +15 -5
  15. package/examples/python/basic.py +2 -2
  16. package/examples/python/chatterbox.py +1 -1
  17. package/examples/screenshot-with-node-canvas-webgl/screenshot.js +2 -2
  18. package/index.d.ts +99 -97
  19. package/lib/conversions.js +1 -1
  20. package/lib/loader.js +4 -4
  21. package/lib/plugins/bed.js +1 -1
  22. package/lib/plugins/block_actions.js +1 -1
  23. package/lib/plugins/blocks.js +18 -4
  24. package/lib/plugins/chat.js +2 -0
  25. package/lib/plugins/command_block.js +1 -1
  26. package/lib/plugins/creative.js +1 -1
  27. package/lib/plugins/digging.js +2 -17
  28. package/lib/plugins/entities.js +13 -9
  29. package/lib/plugins/explosion.js +3 -1
  30. package/lib/plugins/game.js +7 -0
  31. package/lib/plugins/generic_place.js +5 -10
  32. package/lib/plugins/inventory.js +17 -9
  33. package/lib/plugins/physics.js +16 -5
  34. package/lib/plugins/place_block.js +1 -1
  35. package/lib/plugins/place_entity.js +11 -5
  36. package/lib/plugins/ray_trace.js +10 -0
  37. package/lib/plugins/scoreboard.js +2 -9
  38. package/lib/plugins/sound.js +1 -1
  39. package/lib/plugins/spawn_point.js +1 -1
  40. package/lib/plugins/villager.js +2 -3
  41. package/lib/scoreboard.js +48 -35
  42. package/lib/version.js +1 -1
  43. package/package.json +23 -22
@@ -1,3 +1 @@
1
1
  # These are supported funding model platforms
2
-
3
- issuehunt: PrismarineJS/mineflayer
package/README.md CHANGED
@@ -3,23 +3,20 @@
3
3
  [![NPM version](https://badge.fury.io/js/mineflayer.svg)](http://badge.fury.io/js/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
5
  [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
6
- [![Gitter](https://img.shields.io/badge/chat-on%20gitter-brightgreen.svg)](https://gitter.im/PrismarineJS/general)
7
- [![Irc](https://img.shields.io/badge/chat-on%20irc-brightgreen.svg)](https://irc.gitter.im/)
8
6
  [![Issue Hunt](https://github.com/BoostIO/issuehunt-materials/blob/master/v1/issuehunt-shield-v1.svg)](https://issuehunt.io/r/PrismarineJS/mineflayer)
9
-
10
7
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
11
8
  [![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)
12
9
 
13
- | 🇺🇸 [English](README.md) | 🇷🇺 [Russian](ru/README_RU.md) | 🇪🇸 [Spanish](es/README_ES.md) | 🇫🇷 [French](fr/README_FR.md) | 🇹🇷 [Turkish](tr/README_TR.md) | 🇨🇳 [Chinese](zh/README_ZH_CN.md) |
10
+ | <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) |
14
11
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
15
12
 
16
13
  Create Minecraft bots with a powerful, stable, and high level JavaScript [API](api.md), also usable from Python.
17
14
 
18
- First time using node.js ? You may want to start with the [tutorial](tutorial.md). Know Python ? Checkout some [Python examples](https://github.com/PrismarineJS/mineflayer/tree/master/examples/python) and try out [Mineflayer on Google Colab](https://colab.research.google.com/github/PrismarineJS/mineflayer/blob/master/docs/mineflayer.ipynb).
15
+ First time using Node.js? You may want to start with the [tutorial](tutorial.md). Know Python? Checkout some [Python examples](https://github.com/PrismarineJS/mineflayer/tree/master/examples/python) and try out [Mineflayer on Google Colab](https://colab.research.google.com/github/PrismarineJS/mineflayer/blob/master/docs/mineflayer.ipynb).
19
16
 
20
17
  ## Features
21
18
 
22
- * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15 and 1.16.
19
+ * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16 and 1.17.
23
20
  * Entity knowledge and tracking.
24
21
  * Block knowledge. You can query the world around you. Milliseconds to find any block.
25
22
  * Physics and movement - handle all bounding boxes
@@ -33,11 +30,11 @@ First time using node.js ? You may want to start with the [tutorial](tutorial.md
33
30
 
34
31
  ### Roadmap
35
32
 
36
- Checkout this page to see what are our current [projects](https://github.com/PrismarineJS/mineflayer/wiki/Big-Prismarine-projects).
33
+ Checkout [this page](https://github.com/PrismarineJS/mineflayer/wiki/Big-Prismarine-projects) to see what our current projects are.
37
34
 
38
35
  ## Installation
39
36
 
40
- First install nodejs >= 14 from [nodejs.org](https://nodejs.org/) then:
37
+ First install Node.js >= 14 from [nodejs.org](https://nodejs.org/) then:
41
38
 
42
39
  `npm install mineflayer`
43
40
 
@@ -45,7 +42,7 @@ First install nodejs >= 14 from [nodejs.org](https://nodejs.org/) then:
45
42
 
46
43
  | link | description |
47
44
  |---|---|
48
- |[tutorial](tutorial.md) | Begin with node.js and mineflayer |
45
+ |[tutorial](tutorial.md) | Begin with Node.js and mineflayer |
49
46
  | [FAQ.md](FAQ.md) | Got a question ? go there first |
50
47
  | [api.md](api.md) [unstable_api.md](unstable_api.md) | The full API reference |
51
48
  | [history.md](history.md) | The changelog for mineflayer |
@@ -71,7 +68,7 @@ If you want to learn more, more video tutorials are [there,](https://www.youtube
71
68
 
72
69
  **Getting Started**
73
70
 
74
- Without version specified, the version of the server will be guessed automatically.
71
+ Without a version specified, the version of the server will be guessed automatically.
75
72
  Without auth specified, the mojang auth style will be guessed.
76
73
 
77
74
  ### Echo Example
@@ -99,7 +96,7 @@ bot.on('error', console.log)
99
96
 
100
97
  ### See what your bot is doing
101
98
 
102
- Thanks to [prismarine-viewer](https://github.com/PrismarineJS/prismarine-viewer) project, it's possible to display in a browser window what your bot is doing.
99
+ Thanks to the [prismarine-viewer](https://github.com/PrismarineJS/prismarine-viewer) project, it's possible to display in a browser window what your bot is doing.
103
100
  Just run `npm install prismarine-viewer` and add this to your bot:
104
101
  ```js
105
102
  const { mineflayer: mineflayerViewer } = require('prismarine-viewer')
@@ -118,7 +115,7 @@ And you'll get a *live* view looking like this:
118
115
  |[viewer](https://github.com/PrismarineJS/mineflayer/tree/master/examples/viewer) | Display your bot world view in the browser |
119
116
  |[pathfinder](https://github.com/PrismarineJS/mineflayer/tree/master/examples/pathfinder) | Make your bot go to any location automatically |
120
117
  |[chest](https://github.com/PrismarineJS/mineflayer/blob/master/examples/chest.js) | Use chests, furnaces, dispensers, enchantment tables |
121
- |[digger](https://github.com/PrismarineJS/mineflayer/blob/master/examples/digger.js) | Learn how to create a simple bot that is capable of digging the block |
118
+ |[digger](https://github.com/PrismarineJS/mineflayer/blob/master/examples/digger.js) | Learn how to create a simple bot that is capable of digging blocks |
122
119
  |[discord](https://github.com/PrismarineJS/mineflayer/blob/master/examples/discord.js) | Connect a discord bot with a mineflayer bot |
123
120
  |[jumper](https://github.com/PrismarineJS/mineflayer/blob/master/examples/jumper.js) | Learn how to move, jump, ride vehicles, attack nearby entities |
124
121
  |[ansi](https://github.com/PrismarineJS/mineflayer/blob/master/examples/ansi.js) | Display your bot's chat with all of the chat colors shown in your terminal |
@@ -182,14 +179,17 @@ The most updated and useful are :
182
179
  * [pathfinder](https://github.com/Karang/mineflayer-pathfinder) - advanced A* pathfinding with a lot of configurable features
183
180
  * [prismarine-viewer](https://github.com/PrismarineJS/prismarine-viewer) - simple web chunk viewer
184
181
  * [web-inventory](https://github.com/ImHarvol/mineflayer-web-inventory) - web based inventory viewer
185
- * [statemachine](https://github.com/TheDudeFromCI/mineflayer-statemachine) - A state machine API for more complex bot behavors
186
- * [Armor Manager](https://github.com/G07cha/MineflayerArmorManager) - automatic armor managment
182
+ * [statemachine](https://github.com/TheDudeFromCI/mineflayer-statemachine) - A state machine API for more complex bot behaviors
183
+ * [Armor Manager](https://github.com/G07cha/MineflayerArmorManager) - automatic armor management
187
184
  * [Collect Block](https://github.com/TheDudeFromCI/mineflayer-collectblock) - Quick and simple block collection API.
188
185
  * [Dashboard](https://github.com/wvffle/mineflayer-dashboard) - Frontend dashboard for mineflayer bot
189
186
  * [PVP](https://github.com/TheDudeFromCI/mineflayer-pvp) - Easy API for basic PVP and PVE.
190
- * [auto-eat](https://github.com/LINKdiscordd/mineflayer-auto-eat) - Automatic eating of food.
187
+ * [Auto Eat](https://github.com/link-discord/mineflayer-auto-eat) - Automatic eating of food.
188
+ * [Auto Crystal](https://github.com/link-discord/mineflayer-autocrystal) - Automatic placing & breaking of end crystals.
191
189
  * [Tool](https://github.com/TheDudeFromCI/mineflayer-tool) - A utility for automatic tool/weapon selection with a high level API.
192
190
  * [Hawkeye](https://github.com/sefirosweb/minecraftHawkEye) - A utility for using auto-aim with bows.
191
+ * [GUI](https://github.com/firejoust/mineflayer-GUI) - Eased navigation & management of nested chest-GUI windows
192
+ * [Projectile](https://github.com/firejoust/mineflayer-projectile) - Configurable tool for projectile based combat
193
193
 
194
194
 
195
195
  But also check out :
@@ -204,6 +204,7 @@ The most updated and useful are :
204
204
  * [Bloodhound](https://github.com/Nixes/mineflayer-bloodhound) - determine who and what is responsible for damage to another entity
205
205
  * [tps](https://github.com/SiebeDW/mineflayer-tps) - get the current tps (processed tps)
206
206
  * [panorama](https://github.com/IceTank/mineflayer-panorama) - take Panorama Images of your world
207
+ * [player-death-event](https://github.com/tuanzisama/mineflayer-death-event) - emit player death event in Mineflayer.
207
208
 
208
209
  ## Projects Using Mineflayer
209
210
 
package/docs/README.md CHANGED
@@ -3,23 +3,20 @@
3
3
  [![NPM version](https://badge.fury.io/js/mineflayer.svg)](http://badge.fury.io/js/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
5
  [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
6
- [![Gitter](https://img.shields.io/badge/chat-on%20gitter-brightgreen.svg)](https://gitter.im/PrismarineJS/general)
7
- [![Irc](https://img.shields.io/badge/chat-on%20irc-brightgreen.svg)](https://irc.gitter.im/)
8
6
  [![Issue Hunt](https://github.com/BoostIO/issuehunt-materials/blob/master/v1/issuehunt-shield-v1.svg)](https://issuehunt.io/r/PrismarineJS/mineflayer)
9
-
10
7
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
11
8
  [![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)
12
9
 
13
- | 🇺🇸 [English](README.md) | 🇷🇺 [Russian](ru/README_RU.md) | 🇪🇸 [Spanish](es/README_ES.md) | 🇫🇷 [French](fr/README_FR.md) | 🇹🇷 [Turkish](tr/README_TR.md) | 🇨🇳 [Chinese](zh/README_ZH_CN.md) |
10
+ | <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) |
14
11
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
15
12
 
16
13
  Create Minecraft bots with a powerful, stable, and high level JavaScript [API](api.md), also usable from Python.
17
14
 
18
- First time using node.js ? You may want to start with the [tutorial](tutorial.md). Know Python ? Checkout some [Python examples](https://github.com/PrismarineJS/mineflayer/tree/master/examples/python) and try out [Mineflayer on Google Colab](https://colab.research.google.com/github/PrismarineJS/mineflayer/blob/master/docs/mineflayer.ipynb).
15
+ First time using Node.js? You may want to start with the [tutorial](tutorial.md). Know Python? Checkout some [Python examples](https://github.com/PrismarineJS/mineflayer/tree/master/examples/python) and try out [Mineflayer on Google Colab](https://colab.research.google.com/github/PrismarineJS/mineflayer/blob/master/docs/mineflayer.ipynb).
19
16
 
20
17
  ## Features
21
18
 
22
- * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15 and 1.16.
19
+ * Supports Minecraft 1.8, 1.9, 1.10, 1.11, 1.12, 1.13, 1.14, 1.15, 1.16 and 1.17.
23
20
  * Entity knowledge and tracking.
24
21
  * Block knowledge. You can query the world around you. Milliseconds to find any block.
25
22
  * Physics and movement - handle all bounding boxes
@@ -33,11 +30,11 @@ First time using node.js ? You may want to start with the [tutorial](tutorial.md
33
30
 
34
31
  ### Roadmap
35
32
 
36
- Checkout this page to see what are our current [projects](https://github.com/PrismarineJS/mineflayer/wiki/Big-Prismarine-projects).
33
+ Checkout [this page](https://github.com/PrismarineJS/mineflayer/wiki/Big-Prismarine-projects) to see what our current projects are.
37
34
 
38
35
  ## Installation
39
36
 
40
- First install nodejs >= 14 from [nodejs.org](https://nodejs.org/) then:
37
+ First install Node.js >= 14 from [nodejs.org](https://nodejs.org/) then:
41
38
 
42
39
  `npm install mineflayer`
43
40
 
@@ -45,7 +42,7 @@ First install nodejs >= 14 from [nodejs.org](https://nodejs.org/) then:
45
42
 
46
43
  | link | description |
47
44
  |---|---|
48
- |[tutorial](tutorial.md) | Begin with node.js and mineflayer |
45
+ |[tutorial](tutorial.md) | Begin with Node.js and mineflayer |
49
46
  | [FAQ.md](FAQ.md) | Got a question ? go there first |
50
47
  | [api.md](api.md) [unstable_api.md](unstable_api.md) | The full API reference |
51
48
  | [history.md](history.md) | The changelog for mineflayer |
@@ -71,7 +68,7 @@ If you want to learn more, more video tutorials are [there,](https://www.youtube
71
68
 
72
69
  **Getting Started**
73
70
 
74
- Without version specified, the version of the server will be guessed automatically.
71
+ Without a version specified, the version of the server will be guessed automatically.
75
72
  Without auth specified, the mojang auth style will be guessed.
76
73
 
77
74
  ### Echo Example
@@ -99,7 +96,7 @@ bot.on('error', console.log)
99
96
 
100
97
  ### See what your bot is doing
101
98
 
102
- Thanks to [prismarine-viewer](https://github.com/PrismarineJS/prismarine-viewer) project, it's possible to display in a browser window what your bot is doing.
99
+ Thanks to the [prismarine-viewer](https://github.com/PrismarineJS/prismarine-viewer) project, it's possible to display in a browser window what your bot is doing.
103
100
  Just run `npm install prismarine-viewer` and add this to your bot:
104
101
  ```js
105
102
  const { mineflayer: mineflayerViewer } = require('prismarine-viewer')
@@ -118,7 +115,7 @@ And you'll get a *live* view looking like this:
118
115
  |[viewer](https://github.com/PrismarineJS/mineflayer/tree/master/examples/viewer) | Display your bot world view in the browser |
119
116
  |[pathfinder](https://github.com/PrismarineJS/mineflayer/tree/master/examples/pathfinder) | Make your bot go to any location automatically |
120
117
  |[chest](https://github.com/PrismarineJS/mineflayer/blob/master/examples/chest.js) | Use chests, furnaces, dispensers, enchantment tables |
121
- |[digger](https://github.com/PrismarineJS/mineflayer/blob/master/examples/digger.js) | Learn how to create a simple bot that is capable of digging the block |
118
+ |[digger](https://github.com/PrismarineJS/mineflayer/blob/master/examples/digger.js) | Learn how to create a simple bot that is capable of digging blocks |
122
119
  |[discord](https://github.com/PrismarineJS/mineflayer/blob/master/examples/discord.js) | Connect a discord bot with a mineflayer bot |
123
120
  |[jumper](https://github.com/PrismarineJS/mineflayer/blob/master/examples/jumper.js) | Learn how to move, jump, ride vehicles, attack nearby entities |
124
121
  |[ansi](https://github.com/PrismarineJS/mineflayer/blob/master/examples/ansi.js) | Display your bot's chat with all of the chat colors shown in your terminal |
@@ -182,14 +179,17 @@ The most updated and useful are :
182
179
  * [pathfinder](https://github.com/Karang/mineflayer-pathfinder) - advanced A* pathfinding with a lot of configurable features
183
180
  * [prismarine-viewer](https://github.com/PrismarineJS/prismarine-viewer) - simple web chunk viewer
184
181
  * [web-inventory](https://github.com/ImHarvol/mineflayer-web-inventory) - web based inventory viewer
185
- * [statemachine](https://github.com/TheDudeFromCI/mineflayer-statemachine) - A state machine API for more complex bot behavors
186
- * [Armor Manager](https://github.com/G07cha/MineflayerArmorManager) - automatic armor managment
182
+ * [statemachine](https://github.com/TheDudeFromCI/mineflayer-statemachine) - A state machine API for more complex bot behaviors
183
+ * [Armor Manager](https://github.com/G07cha/MineflayerArmorManager) - automatic armor management
187
184
  * [Collect Block](https://github.com/TheDudeFromCI/mineflayer-collectblock) - Quick and simple block collection API.
188
185
  * [Dashboard](https://github.com/wvffle/mineflayer-dashboard) - Frontend dashboard for mineflayer bot
189
186
  * [PVP](https://github.com/TheDudeFromCI/mineflayer-pvp) - Easy API for basic PVP and PVE.
190
- * [auto-eat](https://github.com/LINKdiscordd/mineflayer-auto-eat) - Automatic eating of food.
187
+ * [Auto Eat](https://github.com/link-discord/mineflayer-auto-eat) - Automatic eating of food.
188
+ * [Auto Crystal](https://github.com/link-discord/mineflayer-autocrystal) - Automatic placing & breaking of end crystals.
191
189
  * [Tool](https://github.com/TheDudeFromCI/mineflayer-tool) - A utility for automatic tool/weapon selection with a high level API.
192
190
  * [Hawkeye](https://github.com/sefirosweb/minecraftHawkEye) - A utility for using auto-aim with bows.
191
+ * [GUI](https://github.com/firejoust/mineflayer-GUI) - Eased navigation & management of nested chest-GUI windows
192
+ * [Projectile](https://github.com/firejoust/mineflayer-projectile) - Configurable tool for projectile based combat
193
193
 
194
194
 
195
195
  But also check out :
@@ -204,6 +204,7 @@ The most updated and useful are :
204
204
  * [Bloodhound](https://github.com/Nixes/mineflayer-bloodhound) - determine who and what is responsible for damage to another entity
205
205
  * [tps](https://github.com/SiebeDW/mineflayer-tps) - get the current tps (processed tps)
206
206
  * [panorama](https://github.com/IceTank/mineflayer-panorama) - take Panorama Images of your world
207
+ * [player-death-event](https://github.com/tuanzisama/mineflayer-death-event) - emit player death event in Mineflayer.
207
208
 
208
209
  ## Projects Using Mineflayer
209
210
 
package/docs/api.md CHANGED
@@ -158,7 +158,7 @@
158
158
  - ["weatherUpdate"](#weatherupdate)
159
159
  - ["time"](#time)
160
160
  - ["kicked" (reason, loggedIn)](#kicked-reason-loggedin)
161
- - ["end"](#end)
161
+ - ["end" (reason)](#end-reason)
162
162
  - ["error" (err)](#error-err)
163
163
  - ["spawnReset"](#spawnreset)
164
164
  - ["death"](#death)
@@ -238,6 +238,7 @@
238
238
  - [bot.waitForChunksToLoad(cb)](#botwaitforchunkstoloadcb)
239
239
  - [bot.blockInSight(maxSteps, vectorLength)](#botblockinsightmaxsteps-vectorlength)
240
240
  - [bot.blockAtCursor(maxDistance=256)](#botblockatcursormaxdistance256)
241
+ - [bot.blockAtEntityCursor(entity=bot.entity, maxDistance=256)](#botblockatentitycursorentitybotentity-maxdistance256)
241
242
  - [bot.canSeeBlock(block)](#botcanseeblockblock)
242
243
  - [bot.findBlocks(options)](#botfindblocksoptions)
243
244
  - [bot.findBlock(options)](#botfindblockoptions)
@@ -246,7 +247,7 @@
246
247
  - [bot.recipesAll(itemType, metadata, craftingTable)](#botrecipesallitemtype-metadata-craftingtable)
247
248
  - [bot.nearestEntity(match = (entity) => { return true })](#botnearestentitymatch--entity---return-true-)
248
249
  - [Methods](#methods)
249
- - [bot.end()](#botend)
250
+ - [bot.end(reason)](#botendreason)
250
251
  - [bot.quit(reason)](#botquitreason)
251
252
  - [bot.tabComplete(str, cb, [assumeCommand], [sendBlockInSight])](#bottabcompletestr-cb-assumecommand-sendblockinsight)
252
253
  - [bot.chat(message)](#botchatmessage)
@@ -289,7 +290,7 @@
289
290
  - [bot.activateItem(offHand=false)](#botactivateitemoffhandfalse)
290
291
  - [bot.deactivateItem()](#botdeactivateitem)
291
292
  - [bot.useOn(targetEntity)](#botuseontargetentity)
292
- - [bot.attack(entity)](#botattackentity)
293
+ - [bot.attack(entity, swing = true)](#botattackentity-swing--true)
293
294
  - [bot.swingArm([hand], showHand)](#botswingarmhand-showhand)
294
295
  - [bot.mount(entity)](#botmountentity)
295
296
  - [bot.dismount()](#botdismount)
@@ -310,8 +311,8 @@
310
311
  - [bot.waitForTicks(ticks)](#botwaitforticksticks)
311
312
  - [Lower level inventory methods](#lower-level-inventory-methods)
312
313
  - [bot.clickWindow(slot, mouseButton, mode, cb)](#botclickwindowslot-mousebutton-mode-cb)
313
- - [bot.putSelectedItemRange(start, end, window, slot, noWaiting)](#botputselecteditemrangestart-end-window-slot-nowaiting)
314
- - [bot.putAway(slot, noWaiting)](#botputawayslot-nowaiting)
314
+ - [bot.putSelectedItemRange(start, end, window, slot)](#botputselecteditemrangestart-end-window-slot)
315
+ - [bot.putAway(slot)](#botputawayslot)
315
316
  - [bot.closeWindow(window)](#botclosewindowwindow)
316
317
  - [bot.transfer(options, cb)](#bottransferoptions-cb)
317
318
  - [bot.openBlock(block)](#botopenblockblock)
@@ -756,6 +757,7 @@ Create and return an instance of the class bot.
756
757
  * [difficulty](#bot.settings.difficulty)
757
758
  * [skinParts](#bot.settings.skinParts)
758
759
  * chatLengthLimit : the maximum amount of characters that can be sent in a single message. If this is not set, it will be 100 in < 1.11 and 256 in >= 1.11.
760
+ * defaultChatPatterns: defaults to true, set to false to not add the patterns such as chat and whisper
759
761
 
760
762
  ### Properties
761
763
 
@@ -1154,9 +1156,10 @@ is a chat message explaining why you were kicked. `loggedIn`
1154
1156
  is `true` if the client was kicked after successfully logging in,
1155
1157
  or `false` if the kick occurred in the login phase.
1156
1158
 
1157
- #### "end"
1159
+ #### "end" (reason)
1158
1160
 
1159
1161
  Emitted when you are no longer connected to the server.
1162
+ `reason` is a string explaining why the client was disconnected. (defaults to 'socketClosed')
1160
1163
 
1161
1164
  #### "error" (err)
1162
1165
 
@@ -1448,6 +1451,12 @@ Returns the block at which bot is looking at or `null`
1448
1451
  Returns the block at which bot is looking at or `null`
1449
1452
  * `maxDistance` - The maximum distance the block can be from the eye, defaults to 256.
1450
1453
 
1454
+ #### bot.blockAtEntityCursor(entity=bot.entity, maxDistance=256)
1455
+
1456
+ Returns the block at which specific entity is looking at or `null`
1457
+ * `entity` - Entity data as `Object`
1458
+ * `maxDistance` - The maximum distance the block can be from the eye, defaults to 256.
1459
+
1451
1460
  #### bot.canSeeBlock(block)
1452
1461
 
1453
1462
  Returns true or false depending on whether the bot can see the specified `block`.
@@ -1503,9 +1512,10 @@ const cow = bot.nearestEntity(entity => entity.name.toLowerCase() === 'cow') //
1503
1512
 
1504
1513
  ### Methods
1505
1514
 
1506
- #### bot.end()
1515
+ #### bot.end(reason)
1507
1516
 
1508
1517
  End the connection with the server.
1518
+ * `reason` - Optional string that states the reason of the end.
1509
1519
 
1510
1520
  #### bot.quit(reason)
1511
1521
 
@@ -1664,6 +1674,7 @@ Sets all controls to off.
1664
1674
  #### bot.getExplosionDamages(entity, position, radius, [rawDamages])
1665
1675
 
1666
1676
  Returns how much damage will be done to the entity in a radius around the position of the explosion.
1677
+ It will return `null` if the entity has no armor and rawDamages is not set to true, since the function can't calculate the damage with armor if there is no armor.
1667
1678
 
1668
1679
  * `entity` - Entity instance
1669
1680
  * `position` - [Vec3](https://github.com/andrewrk/node-vec3) instance
@@ -1756,7 +1767,7 @@ dig any other blocks until the block has been broken, or you call
1756
1767
  of the face the bot should be looking at when digging the block. For example: ```vec3(0, 1, 0)``` when mining the top. Can also be 'raycast' raycast checks if there is a face visible by the bot and mines that face. Useful for servers with anti cheat.
1757
1768
  * `callback(err)` - (optional) called when the block is broken or you
1758
1769
  are interrupted.
1759
-
1770
+
1760
1771
  If you call bot.dig twice before the first dig is finished, you will get a fatal 'diggingAborted' error.
1761
1772
 
1762
1773
  #### bot.stopDigging()
@@ -1852,10 +1863,13 @@ Deactivates the currently held item. This is how you release an arrow, stop eati
1852
1863
  Use the currently held item on an `Entity` instance. This is how you apply a saddle and
1853
1864
  use shears.
1854
1865
 
1855
- #### bot.attack(entity)
1866
+ #### bot.attack(entity, swing = true)
1856
1867
 
1857
1868
  Attack a player or a mob.
1858
1869
 
1870
+ * `entity` is a type of entity. To get a specific entity use [bot.nearestEntity()](#botnearestentitymatch--entity---return-true-) or [bot.entities](#botentities).
1871
+ * `swing` Default `true`. If false the bot does not swing is arm when attacking.
1872
+
1859
1873
  #### bot.swingArm([hand], showHand)
1860
1874
 
1861
1875
  Play an arm swing animation.
@@ -1977,20 +1991,15 @@ This function also returns a `Promise`, with `void` as its argument upon complet
1977
1991
 
1978
1992
  Click on the current window. See details at https://wiki.vg/Protocol#Click_Window
1979
1993
 
1980
- #### bot.putSelectedItemRange(start, end, window, slot, noWaiting)
1994
+ #### bot.putSelectedItemRange(start, end, window, slot)
1981
1995
 
1982
1996
  This function also returns a `Promise`, with `void` as its argument upon completion.
1983
1997
 
1984
1998
  Put the item at `slot` in the specified range.
1985
1999
 
1986
- `noWaiting` will not wait for items to be moved.
1987
- Can be useful in case the client is supposed to simulate without feedback from the server.
1988
-
1989
- #### bot.putAway(slot, noWaiting)
2000
+ #### bot.putAway(slot)
1990
2001
 
1991
2002
  This function also returns a `Promise`, with `void` as its argument upon completion.
1992
- `noWaiting` calls putSelectedItemRange with `noWaiting` option: it will not wait for items to be moved.
1993
- Can be useful in case the client is supposed to simulate without feedback from the server.
1994
2003
 
1995
2004
  Put the item at `slot` in the inventory.
1996
2005
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
10
10
 
11
- | 🇺🇸 [English](../README.md) | 🇷🇺 [Russian](../ru/README_RU.md) | 🇪🇸 [Spanish](../es/README_ES.md) | 🇫🇷 [French](../fr/README_FR.md) | 🇹🇷 [Turkish](../tr/README_TR.md) |
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) |
12
12
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
13
13
 
14
14
  Crea bots para Minecraft con una API de JavaScript potente, estable y de alto nivel.
package/docs/es/api_es.md CHANGED
@@ -2,8 +2,6 @@
2
2
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
3
3
  **Tabla de contenidos** *generado con [DocToc](https://github.com/thlorenz/doctoc)*
4
4
 
5
- Esta documentación no está mantenida oficialmente, si quiere ver las últimas novedades, por favor dirijase a la documentación original: [api](api.md)
6
-
7
5
  - [API](#api)
8
6
  - [Enums](#enums)
9
7
  - [minecraft-data](#minecraft-data)
@@ -14,7 +12,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
14
12
  - [mcdata.instruments](#mcdatainstruments)
15
13
  - [mcdata.biomes](#mcdatabiomes)
16
14
  - [mcdata.entities](#mcdataentities)
17
- - [Classes](#classes)
15
+ - [Clases](#clases)
18
16
  - [vec3](#vec3)
19
17
  - [mineflayer.Location](#mineflayerlocation)
20
18
  - [Entity](#entity)
@@ -47,7 +45,10 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
47
45
  - [enchantmentTable.enchant(choice, [callback])](#enchantmenttableenchantchoice-callback)
48
46
  - [enchantmentTable.takeTargetItem([callback])](#enchantmenttabletaketargetitemcallback)
49
47
  - [enchantmentTable.putTargetItem(item, [callback])](#enchantmenttableputtargetitemitem-callback)
50
- - [mineflayer.Villager](#mineflayervillager)
48
+ - [enchantmentTable.putLapis(item, [callback])](#enchantmenttableputlapisitem-callback)
49
+ - [mineflayer.anvil](#mineflayeranvil)
50
+ - [anvil.combine(itemOne, itemTwo[, name, callback])](#anvilcombineitemone-itemtwo-name-callback)
51
+ - [anvil.combine(item[, name, callback])](#anvilcombineitem-name-callback)
51
52
  - [villager "ready"](#villager-ready)
52
53
  - [villager.trades](#villagertrades)
53
54
  - [villager.trade(tradeIndex, [times], [cb])](#villagertradetradeindex-times-cb)
@@ -83,7 +84,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
83
84
  - [bot.game.hardcore](#botgamehardcore)
84
85
  - [bot.game.maxPlayers](#botgamemaxplayers)
85
86
  - [bot.game.serverBrand](#botgameserverbrand)
86
- - [bot.physicEnabled](#botphysicenabled)
87
+ - [bot.physicsEnabled](#botphysicsenabled)
87
88
  - [bot.player](#botplayer)
88
89
  - [bot.players](#botplayers)
89
90
  - [bot.isRaining](#botisraining)
@@ -110,6 +111,8 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
110
111
  - [bot.foodSaturation](#botfoodsaturation)
111
112
  - [bot.oxygenLevel](#botoxygenlevel)
112
113
  - [bot.physics](#botphysics)
114
+ - [bot.simpleClick.leftMouse (slot)](#botsimpleclickleftmouse-slot)
115
+ - [bot.simpleClick.rightMouse (slot)](#botsimpleclickrightmouse-slot)
113
116
  - [bot.time.doDaylightCycle](#bottimedodaylightcycle)
114
117
  - [bot.time.bigTime](#bottimebigtime)
115
118
  - [bot.time.time](#bottimetime)
@@ -131,6 +134,8 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
131
134
  - ["whisper" (username, message, translate, jsonMsg, matches)](#whisper-username-message-translate-jsonmsg-matches)
132
135
  - ["actionBar" (jsonMsg)](#actionbar-jsonmsg)
133
136
  - ["message" (jsonMsg, position)](#message-jsonmsg-position)
137
+ - ["messagestr" (message, messagePosition, jsonMsg)](#messagestr-message-messageposition-jsonmsg)
138
+ - ["inject_allowed"](#inject_allowed)
134
139
  - ["login"](#login)
135
140
  - ["spawn"](#spawn)
136
141
  - ["respawn"](#respawn)
@@ -138,7 +143,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
138
143
  - ["resourcePack" (url, hash)](#resourcepack-url-hash)
139
144
  - ["title"](#title)
140
145
  - ["rain"](#rain)
141
- - ["weatherUpdate"](#weatherUpdate)
146
+ - ["weatherUpdate"](#weatherupdate)
142
147
  - ["time"](#time)
143
148
  - ["kicked" (reason, loggedIn)](#kicked-reason-loggedin)
144
149
  - ["end"](#end)
@@ -149,8 +154,15 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
149
154
  - ["breath"](#breath)
150
155
  - ["entitySwingArm" (entity)](#entityswingarm-entity)
151
156
  - ["entityHurt" (entity)](#entityhurt-entity)
157
+ - ["entityDead" (entity)](#entitydead-entity)
158
+ - ["entityTaming" (entity)](#entitytaming-entity)
159
+ - ["entityTamed" (entity)](#entitytamed-entity)
160
+ - ["entityShakingOffWater" (entity)](#entityshakingoffwater-entity)
161
+ - ["entityEatingGrass" (entity)](#entityeatinggrass-entity)
152
162
  - ["entityWake" (entity)](#entitywake-entity)
153
163
  - ["entityEat" (entity)](#entityeat-entity)
164
+ - ["entityCriticalEffect" (entity)](#entitycriticaleffect-entity)
165
+ - ["entityMagicCriticalEffect" (entity)](#entitymagiccriticaleffect-entity)
154
166
  - ["entityCrouch" (entity)](#entitycrouch-entity)
155
167
  - ["entityUncrouch" (entity)](#entityuncrouch-entity)
156
168
  - ["entityEquip" (entity)](#entityequip-entity)
@@ -166,6 +178,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
166
178
  - ["entityEffect" (entity, effect)](#entityeffect-entity-effect)
167
179
  - ["entityEffectEnd" (entity, effect)](#entityeffectend-entity-effect)
168
180
  - ["playerJoined" (player)](#playerjoined-player)
181
+ - ["playerUpdated" (player)](#playerupdated-player)
169
182
  - ["playerLeft" (player)](#playerleft-player)
170
183
  - ["blockUpdate" (oldBlock, newBlock)](#blockupdate-oldblock-newblock)
171
184
  - ["blockUpdate:(x, y, z)" (oldBlock, newBlock)](#blockupdatex-y-z-oldblock-newblock)
@@ -200,6 +213,8 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
200
213
  - ["bossBarDeleted" (bossBar)](#bossbardeleted-bossbar)
201
214
  - ["bossBarUpdated" (bossBar)](#bossbarupdated-bossbar)
202
215
  - ["heldItemChanged" (heldItem)](#helditemchanged-helditem)
216
+ - ["physicsTick" ()](#physicstick-)
217
+ - ["chat:name" (matches)](#chatname-matches)
203
218
  - [Functions](#functions)
204
219
  - [bot.blockAt(point, extraInfos=true)](#botblockatpoint-extrainfostrue)
205
220
  - [bot.waitForChunksToLoad(cb)](#botwaitforchunkstoloadcb)
@@ -219,6 +234,10 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
219
234
  - [bot.chat(message)](#botchatmessage)
220
235
  - [bot.whisper(username, message)](#botwhisperusername-message)
221
236
  - [bot.chatAddPattern(pattern, chatType, description)](#botchataddpatternpattern-chattype-description)
237
+ - [bot.addChatPattern(name, pattern, chatPatternOptions)](#botaddchatpatternname-pattern-chatpatternoptions)
238
+ - [bot.addChatPatternSet(name, patterns, chatPatternOptions)](#botaddchatpatternsetname-patterns-chatpatternoptions)
239
+ - [bot.removeChatPattern(name)](#botremovechatpatternname)
240
+ - [bot.awaitMessage(...args)](#botawaitmessageargs)
222
241
  - [bot.setSettings(options)](#botsetsettingsoptions)
223
242
  - [bot.loadPlugin(plugin)](#botloadpluginplugin)
224
243
  - [bot.loadPlugins(plugins)](#botloadpluginsplugins)
@@ -227,7 +246,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
227
246
  - [bot.isABed(bedBlock)](#botisabedbedblock)
228
247
  - [bot.wake([cb])](#botwakecb)
229
248
  - [bot.setControlState(control, state)](#botsetcontrolstatecontrol-state)
230
- - [bot.getControlState(control)](#botgetcontrolstatecontrol-state)
249
+ - [bot.getControlState(control)](#botgetcontrolstatecontrol)
231
250
  - [bot.clearControlStates()](#botclearcontrolstates)
232
251
  - [bot.lookAt(point, [force], [callback])](#botlookatpoint-force-callback)
233
252
  - [bot.look(yaw, pitch, [force], [callback])](#botlookyaw-pitch-force-callback)
@@ -242,6 +261,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
242
261
  - [bot.acceptResourcePack()](#botacceptresourcepack)
243
262
  - [bot.denyResourcePack()](#botdenyresourcepack)
244
263
  - [bot.placeBlock(referenceBlock, faceVector, cb)](#botplaceblockreferenceblock-facevector-cb)
264
+ - [bot.placeEntity(referenceBlock, faceVector)](#botplaceentityreferenceblock-facevector)
245
265
  - [bot.activateBlock(block, [callback])](#botactivateblockblock-callback)
246
266
  - [bot.activateEntity(entity, [callback])](#botactivateentityentity-callback)
247
267
  - [bot.activateEntityAt(entity, position, [callback])](#botactivateentityatentity-position-callback)
@@ -251,7 +271,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
251
271
  - [bot.deactivateItem()](#botdeactivateitem)
252
272
  - [bot.useOn(targetEntity)](#botuseontargetentity)
253
273
  - [bot.attack(entity)](#botattackentity)
254
- - [bot.swingArm([hand])](#botswingarmhand)
274
+ - [bot.swingArm([hand], showHand)](#botswingarmhand-showhand)
255
275
  - [bot.mount(entity)](#botmountentity)
256
276
  - [bot.dismount()](#botdismount)
257
277
  - [bot.moveVehicle(left,forward)](#botmovevehicleleftforward)
@@ -263,6 +283,7 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
263
283
  - [bot.openFurnace(furnaceBlock)](#botopenfurnacefurnaceblock)
264
284
  - [bot.openDispenser(dispenserBlock)](#botopendispenserdispenserblock)
265
285
  - [bot.openEnchantmentTable(enchantmentTableBlock)](#botopenenchantmenttableenchantmenttableblock)
286
+ - [bot.openAnvil(anvilBlock)](#botopenanvilanvilblock)
266
287
  - [bot.openVillager(villagerEntity)](#botopenvillagervillagerentity)
267
288
  - [bot.trade(villagerInstance, tradeIndex, [times], [cb])](#bottradevillagerinstance-tradeindex-times-cb)
268
289
  - [bot.setCommandBlock(pos, command, [options])](#botsetcommandblockpos-command-options)
@@ -270,8 +291,8 @@ Esta documentación no está mantenida oficialmente, si quiere ver las últimas
270
291
  - [bot.waitForTicks(ticks)](#botwaitforticksticks)
271
292
  - [Lower level inventory methods](#lower-level-inventory-methods)
272
293
  - [bot.clickWindow(slot, mouseButton, mode, cb)](#botclickwindowslot-mousebutton-mode-cb)
273
- - [bot.putSelectedItemRange(start, end, window, slot, cb)](#botputselecteditemrangestart-end-window-slot-cb)
274
- - [bot.putAway(slot, cb)](#botputawayslot-cb)
294
+ - [bot.putSelectedItemRange(start, end, window, slot)](#botputselecteditemrangestart-end-window-slot)
295
+ - [bot.putAway(slot)](#botputawayslot)
275
296
  - [bot.closeWindow(window)](#botclosewindowwindow)
276
297
  - [bot.transfer(options, cb)](#bottransferoptions-cb)
277
298
  - [bot.openBlock(block)](#botopenblockblock)
@@ -671,7 +692,7 @@ Crea y devuelve una instancia de la clase Bot.
671
692
  * client : una instancia de node-minecraft-protocol, si no se especifíca, mineflayer creará su propio cliente. Esto sirve para usar mineflayer a través de un proxy de muchos clientes o para un cliente vanilla y un cliente mineflayer.
672
693
  * plugins : object : el valor predeterminado es {}
673
694
  - pluginName : false : no cargar el plugin interno con ese nombre ej. `pluginName`
674
- - pluginName : true : carga el plugin interno con ese nombre ej. `pluginName` incluso si loadInternalPlugins está en false
695
+ - pluginName : true : carga el plugin interno con ese nombre ej. `pluginName` incluso si loadInternalPlugins está en false
675
696
  - pluginName : función para introducir : carga un plugin de terceros (externo), anula el plugin interno con el mismo nombre ej. `pluginName`
676
697
  * physicsEnabled : el valor predeterminado es true, si el bot debería ser afectado por las físicas, puede modificarse mediante bot.physicsEnabled
677
698
  * [chat](#bot.settings.chat)
@@ -1914,20 +1935,15 @@ Hacer click en la ventana/interfaz actual, los detalles están en https://wiki.v
1914
1935
  * mouseButton - 0 para click izquierdo, y 1 para click derecho
1915
1936
  * mode - mineflayer solo tiene disponible el modo 0
1916
1937
 
1917
- #### bot.putSelectedItemRange(start, end, window, slot, noWaiting)
1938
+ #### bot.putSelectedItemRange(start, end, window, slot)
1918
1939
 
1919
1940
  Esta función también devueve un `Promise`, con `void` como argumento al finalizar.
1920
1941
 
1921
1942
  Mover el item en la casilla `slot` en un rango especificado
1922
1943
 
1923
- Si `noWaiting` esta en true, el bot no esperará a que los items se hayan movido.
1924
- Puede ser útil en caso que el cliente tiene que simular la acción sin una respuesta del servidor.
1925
-
1926
- #### bot.putAway(slot, noWaiting)
1944
+ #### bot.putAway(slot)
1927
1945
 
1928
1946
  Esta función también devueve un `Promise`, con `void` como argumento al finalizar.
1929
- `noWaiting` ejecuta putSelectedItemRanger con `noWaiting` en true.
1930
- Puede ser útil en caso que el cliente tiene que simular la acción sin una respuesta del servidor.
1931
1947
 
1932
1948
  Mover el item a la casilla `slot` en el inventario.
1933
1949
 
@@ -9,7 +9,7 @@
9
9
 
10
10
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
11
11
 
12
- | 🇺🇸 [Anglais](../README.md) | 🇷🇺 [Russe](../ru/README_RU.md) | 🇪🇸 [Espagnol](../es/README_ES.md) | 🇫🇷 [Français](README_FR.md) | 🇹🇷 [Türkçe](../tr/README_TR.md) | 🇨🇳 [Chinois](../zh/README_ZH_CN.md) |
12
+ | <sub>EN</sub> [Anglais](../README.md) | <sub>RU</sub> [Russe](../ru/README_RU.md) | <sub>ES</sub> [Espagnol](../es/README_ES.md) | <sub>FR</sub> [Français](README_FR.md) | <sub>TR</sub> [Türkçe](../tr/README_TR.md) | <sub>ZH</sub> [Chinois](../zh/README_ZH_CN.md) |
13
13
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
14
14
 
15
15
  Créé des robots Minecraft avec API stable, puissante et facilement maniable, [API](api.md).
package/docs/history.md CHANGED
@@ -1,3 +1,32 @@
1
+ ## 3.13.0
2
+
3
+ * compute scoreboard displayName dynamically (@U9G)
4
+ * SkinsRestorer fix (@U5B)
5
+ * Fix bot not swinging arm on block place (@IceTank)
6
+
7
+ ## 3.12.0
8
+
9
+ * Bypass anticheats that detect sensitivity (@mat-1)
10
+ * Fix removing many players at once from tab list (@mat-1)
11
+ * Added blockAtEntityCursor function (@DatArnoGuy)
12
+ * add option to disable default chat patterns (@U5B)
13
+ * Fixed wrong arm swinging (@IceTank)
14
+ * Add pitch speed to look (@IceTank)
15
+ * Console spam fix (@IceTank)
16
+ * Update openVillager function to return a promise (@amoraschi)
17
+ * Send arm_animation before use_entity (@aesthetic0001)
18
+ * Add reason for the end of a mineflayer bot (@U5B)
19
+ * added rejection of invalid transaction packets (anticheat fix) (@U5B)
20
+
21
+ ## 3.11.2
22
+ * Remove unnecessary and buggy inventory check in place block (@Karang)
23
+ * Make all events allow async cb typings (@u9g)
24
+
25
+ ## 3.11.1
26
+ * Get rid of nowaiting (@nickelpro)
27
+ * update readme (@inthmafr)
28
+ * Fix Typings (@link-discord, @IceTank, @u9g)
29
+
1
30
  ## 3.11.0
2
31
  * better chat, equipping and consuming errors (@u9g)
3
32
  * add bot.usingHeldItem (@mat1)
@@ -9,7 +9,7 @@
9
9
 
10
10
  [![Попробуйте на gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
11
11
 
12
- | 🇺🇸 [English](../README.md) | 🇷🇺 [Russian](../ru/README_RU.md) | 🇪🇸 [Spanish](../es/README_ES.md) | 🇫🇷 [French](../fr/README_FR.md) | 🇹🇷 [Turkish](../tr/README_TR.md) | 🇨🇳 [Chinese](../zh/README_ZH_CN.md) |
12
+ | <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) |
13
13
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
14
14
 
15
15
  Создавайте ботов Minecraft с помощью мощного, стабильного и высокоуровневого JavaScript [API](api.md).
package/docs/ru/api_ru.md CHANGED
@@ -1292,7 +1292,7 @@ function somePlugin (bot, options) {
1292
1292
  bot.someFunction = someFunction
1293
1293
  }
1294
1294
 
1295
- var bot = mineflayer.createBot({})
1295
+ const bot = mineflayer.createBot({})
1296
1296
  bot.loadPlugin(somePlugin)
1297
1297
  bot.once('login', () => {
1298
1298
  bot.someFunction() // Yay!
@@ -9,7 +9,7 @@
9
9
 
10
10
  [![Try it on gitpod](https://img.shields.io/badge/try-on%20gitpod-brightgreen.svg)](https://gitpod.io/#https://github.com/PrismarineJS/mineflayer)
11
11
 
12
- | 🇺🇸 [English](../README.md) | 🇷🇺 [Russian](../ru/README_RU.md) | 🇪🇸 [Spanish](../es/README_ES.md) | 🇫🇷 [French](../fr/README_FR.md) | 🇹🇷 [Turkish](../tr/README_TR.md) | 🇨🇳 [Chinese](../zh/README_ZH_CN.md) |
12
+ | <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) |
13
13
  |-------------------------|----------------------------|----------------------------|----------------------------|----------------------------|----------------------------|
14
14
 
15
15
  JavaScript ile güçlü, stabil ve üst seviye Minecraft botları oluşturabileceğiniz bir [API](api.md).