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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Mineflayer
2
2
 
3
- [![NPM version](https://badge.fury.io/js/mineflayer.svg)](http://badge.fury.io/js/mineflayer)
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
5
  [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
6
6
  [![Issue Hunt](https://github.com/BoostIO/issuehunt-materials/blob/master/v1/issuehunt-shield-v1.svg)](https://issuehunt.io/r/PrismarineJS/mineflayer)
package/docs/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Mineflayer
2
2
 
3
- [![NPM version](https://badge.fury.io/js/mineflayer.svg)](http://badge.fury.io/js/mineflayer)
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
5
  [![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
6
6
  [![Issue Hunt](https://github.com/BoostIO/issuehunt-materials/blob/master/v1/issuehunt-shield-v1.svg)](https://issuehunt.io/r/PrismarineJS/mineflayer)
package/docs/history.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.14.0
2
+
3
+ * Make prismarine-entity versioned (@u9g)
4
+ * fix(typings): Added OpenContainer (@SaubereSache)
5
+
1
6
  ## 3.13.1
2
7
 
3
8
  * Fix bug with force lastSentPitch in bot.look (@KadaverBrutalo10)
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>
@@ -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.13.1",
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": "^1.2.0",
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",