minecraft-data 2.97.0 → 2.98.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/data.js CHANGED
@@ -987,6 +987,9 @@ module.exports =
987
987
  get loginPacket () { return require("./minecraft-data/data/pc/1.17/loginPacket.json") },
988
988
  get tints () { return require("./minecraft-data/data/pc/1.17/tints.json") },
989
989
  get mapIcons () { return require("./minecraft-data/data/pc/1.16/mapIcons.json") }
990
+ },
991
+ '1.18': {
992
+ get protocol () { return require("./minecraft-data/data/pc/1.18/protocol.json") }
990
993
  }
991
994
  },
992
995
  'bedrock': {
package/doc/history.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.98.0
2
+ * update mcdata
3
+
1
4
  ## 2.97.0
2
5
  * update mcdata
3
6
 
@@ -9,7 +9,7 @@ Language independent module providing minecraft data for minecraft clients, serv
9
9
 
10
10
  Supports
11
11
  * Minecraft PC version 0.30c (classic), 1.7.10, 1.8.8, 1.9 (15w40b, 1.9, 1.9.1-pre2, 1.9.2, 1.9.4),
12
- 1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), and 1.17
12
+ 1.10 (16w20a, 1.10-pre1, 1.10, 1.10.1, 1.10.2), 1.11 (16w35a, 1.11, 1.11.2), 1.12 (17w15a, 17w18b, 1.12-pre4, 1.12, 1.12.1, 1.12.2), 1.13 (17w50a, 1.13, 1.13.1, 1.13.2-pre1, 1.13.2-pre2, 1.13.2), 1.14 (1.14, 1.14.1, 1.14.3, 1.14.4), 1.15 (1.15, 1.15.1, 1.15.2), 1.16 (20w13b, 20w14a, 1.16-rc1, 1.16, 1.16.1, 1.16.2, 1.16.3, 1.16.4, 1.16.5), 1.17, 1.17.1, 1.18
13
13
  * Minecraft bedrock version 0.14, 0.15, 1.0, 1.16.201, 1.16.210, 1.16.220, 1.17.0, 1.17.10, 1.17.30, 1.17.40, 1.18.0
14
14
 
15
15
  ## Wrappers
@@ -43,7 +43,7 @@ Data provided:
43
43
  | Map icons | Provides all available map icons as used by (crafted) maps |
44
44
  | Materials | to be used with blocks data. Provides tool speed multipliers against material types. |
45
45
  | Particles | Id and names of minecraft particles |
46
- | Protocol | a complete description of the protocol, can be used to automatically implement the protocol |
46
+ | Protocol | a complete description of the protocol, can be used to automatically implement the protocol, see [protodef doc](https://github.com/ProtoDef-io/ProtoDef) |
47
47
  | Protocol Versions | the whole list of minecraft protocol versions |
48
48
  | Recipes | to be used with blocks and items data |
49
49
  | Windows | the different kind of windows and their characteristics |
@@ -986,6 +986,9 @@
986
986
  "loginPacket": "pc/1.17",
987
987
  "tints": "pc/1.17",
988
988
  "mapIcons": "pc/1.16"
989
+ },
990
+ "1.18": {
991
+ "protocol": "pc/1.18"
989
992
  }
990
993
  },
991
994
  "bedrock": {
@@ -177,32 +177,29 @@
177
177
  "container",
178
178
  [
179
179
  {
180
- "name": "originX",
181
- "type": "f64"
180
+ "name": "origin",
181
+ "type": "position"
182
182
  },
183
183
  {
184
- "name": "originY",
185
- "type": "f64"
184
+ "name": "positionType",
185
+ "type": "string"
186
186
  },
187
187
  {
188
- "name": "originZ",
189
- "type": "f64"
190
- },
191
- {
192
- "name": "destX",
193
- "type": "f64"
194
- },
195
- {
196
- "name": "destY",
197
- "type": "f64"
198
- },
199
- {
200
- "name": "destZ",
201
- "type": "f64"
188
+ "name": "destination",
189
+ "type": [
190
+ "switch",
191
+ {
192
+ "compareTo": "positionType",
193
+ "fields": {
194
+ "block": "position",
195
+ "entity": "varint"
196
+ }
197
+ }
198
+ ]
202
199
  },
203
200
  {
204
201
  "name": "ticks",
205
- "type": "i32"
202
+ "type": "varint"
206
203
  }
207
204
  ]
208
205
  ]
@@ -177,32 +177,29 @@
177
177
  "container",
178
178
  [
179
179
  {
180
- "name": "originX",
181
- "type": "f64"
180
+ "name": "origin",
181
+ "type": "position"
182
182
  },
183
183
  {
184
- "name": "originY",
185
- "type": "f64"
184
+ "name": "positionType",
185
+ "type": "string"
186
186
  },
187
187
  {
188
- "name": "originZ",
189
- "type": "f64"
190
- },
191
- {
192
- "name": "destX",
193
- "type": "f64"
194
- },
195
- {
196
- "name": "destY",
197
- "type": "f64"
198
- },
199
- {
200
- "name": "destZ",
201
- "type": "f64"
188
+ "name": "destination",
189
+ "type": [
190
+ "switch",
191
+ {
192
+ "compareTo": "positionType",
193
+ "fields": {
194
+ "block": "position",
195
+ "entity": "varint"
196
+ }
197
+ }
198
+ ]
202
199
  },
203
200
  {
204
201
  "name": "ticks",
205
- "type": "i32"
202
+ "type": "varint"
206
203
  }
207
204
  ]
208
205
  ]