mineflayer 3.13.1 → 3.14.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 +1 -1
- package/docs/README.md +1 -1
- package/docs/history.md +5 -0
- package/index.d.ts +2 -0
- package/lib/plugins/entities.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Mineflayer
|
|
2
2
|
|
|
3
|
-
[](
|
|
3
|
+
[](https://www.npmjs.com/package/mineflayer)
|
|
4
4
|
[](https://github.com/PrismarineJS/mineflayer/actions?query=workflow%3A%22CI%22)
|
|
5
5
|
[](https://discord.gg/GsEFRM8)
|
|
6
6
|
[](https://issuehunt.io/r/PrismarineJS/mineflayer)
|
package/docs/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Mineflayer
|
|
2
2
|
|
|
3
|
-
[](
|
|
3
|
+
[](https://www.npmjs.com/package/mineflayer)
|
|
4
4
|
[](https://github.com/PrismarineJS/mineflayer/actions?query=workflow%3A%22CI%22)
|
|
5
5
|
[](https://discord.gg/GsEFRM8)
|
|
6
6
|
[](https://issuehunt.io/r/PrismarineJS/mineflayer)
|
package/docs/history.md
CHANGED
package/index.d.ts
CHANGED
|
@@ -343,6 +343,8 @@ export interface Bot extends TypedEmitter<BotEvents> {
|
|
|
343
343
|
callback?: (err?: Error) => void
|
|
344
344
|
) => Promise<void>
|
|
345
345
|
|
|
346
|
+
openContainer: (chest: Block | Entity) => Promise<Chest | Furnace | Dispenser>
|
|
347
|
+
|
|
346
348
|
openChest: (chest: Block | Entity) => Promise<Chest>
|
|
347
349
|
|
|
348
350
|
openFurnace: (furnace: Block) => Promise<Furnace>
|
package/lib/plugins/entities.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
const { Vec3 } = require('vec3')
|
|
2
|
-
const Entity = require('prismarine-entity')
|
|
3
2
|
const conv = require('../conversions')
|
|
4
3
|
const NAMED_ENTITY_HEIGHT = 1.62
|
|
5
4
|
const NAMED_ENTITY_WIDTH = 0.6
|
|
@@ -26,6 +25,7 @@ const entityStatusEvents = {
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
function inject (bot, { version }) {
|
|
28
|
+
const Entity = require('prismarine-entity')(version)
|
|
29
29
|
const objects = require('minecraft-data')(version).objects
|
|
30
30
|
const mobs = require('minecraft-data')(version).mobs
|
|
31
31
|
const entitiesArray = require('minecraft-data')(version).entitiesArray
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mineflayer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.14.0",
|
|
4
4
|
"description": "create minecraft bots with a stable, high level API",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"prismarine-block": "^1.10.3",
|
|
28
28
|
"prismarine-chat": "^1.3.3",
|
|
29
29
|
"prismarine-chunk": "^1.26.0",
|
|
30
|
-
"prismarine-entity": "^
|
|
30
|
+
"prismarine-entity": "^2.0.0",
|
|
31
31
|
"prismarine-item": "^1.11.0",
|
|
32
32
|
"prismarine-nbt": "^2.0.0",
|
|
33
33
|
"prismarine-physics": "^1.3.1",
|