minecraft-data 2.99.0 → 2.100.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 (48) hide show
  1. package/data.js +54 -8
  2. package/doc/history.md +12 -0
  3. package/index.d.ts +14 -0
  4. package/minecraft-data/.github/FUNDING.yml +0 -1
  5. package/minecraft-data/data/bedrock/1.16.201/proto.yml +27 -0
  6. package/minecraft-data/data/bedrock/1.16.201/protocol.json +40 -0
  7. package/minecraft-data/data/bedrock/1.16.210/proto.yml +27 -0
  8. package/minecraft-data/data/bedrock/1.16.210/protocol.json +40 -0
  9. package/minecraft-data/data/bedrock/1.16.220/proto.yml +27 -0
  10. package/minecraft-data/data/bedrock/1.16.220/protocol.json +40 -0
  11. package/minecraft-data/data/bedrock/1.17.0/proto.yml +27 -0
  12. package/minecraft-data/data/bedrock/1.17.0/protocol.json +40 -0
  13. package/minecraft-data/data/bedrock/1.17.10/blockCollisionShapes.json +303 -2572
  14. package/minecraft-data/data/bedrock/1.17.10/proto.yml +107 -80
  15. package/minecraft-data/data/bedrock/1.17.10/protocol.json +120 -80
  16. package/minecraft-data/data/bedrock/1.17.30/proto.yml +110 -83
  17. package/minecraft-data/data/bedrock/1.17.30/protocol.json +123 -83
  18. package/minecraft-data/data/bedrock/1.17.40/proto.yml +120 -93
  19. package/minecraft-data/data/bedrock/1.17.40/protocol.json +133 -93
  20. package/minecraft-data/data/bedrock/1.18.0/blockCollisionShapes.json +302 -302
  21. package/minecraft-data/data/bedrock/1.18.0/protocol.json +138 -93
  22. package/minecraft-data/data/bedrock/latest/proto.yml +123 -94
  23. package/minecraft-data/data/dataPaths.json +54 -8
  24. package/minecraft-data/data/pc/1.10/attributes.json +54 -0
  25. package/minecraft-data/data/pc/1.11/attributes.json +54 -0
  26. package/minecraft-data/data/pc/1.12/attributes.json +54 -0
  27. package/minecraft-data/data/pc/1.13/attributes.json +54 -0
  28. package/minecraft-data/data/pc/1.14/attributes.json +54 -0
  29. package/minecraft-data/data/pc/1.15/attributes.json +54 -0
  30. package/minecraft-data/data/pc/1.16/attributes.json +54 -0
  31. package/minecraft-data/data/pc/1.17/attributes.json +54 -0
  32. package/minecraft-data/data/pc/1.18/blockLoot.json +10058 -0
  33. package/minecraft-data/data/pc/1.18/blocks.json +30124 -0
  34. package/minecraft-data/data/pc/1.18/entities.json +1132 -0
  35. package/minecraft-data/data/pc/1.18/entityLoot.json +1148 -0
  36. package/minecraft-data/data/pc/1.18/items.json +7269 -0
  37. package/minecraft-data/data/pc/1.18/language.json +4814 -0
  38. package/minecraft-data/data/pc/1.18/particles.json +354 -0
  39. package/minecraft-data/data/pc/1.18/protocol.json +4 -3
  40. package/minecraft-data/data/pc/1.18/recipes.json +25127 -0
  41. package/minecraft-data/data/pc/1.7/attributes.json +30 -0
  42. package/minecraft-data/data/pc/1.8/attributes.json +50 -0
  43. package/minecraft-data/data/pc/1.9/attributes.json +54 -0
  44. package/minecraft-data/doc/bedrock.md +13 -0
  45. package/minecraft-data/doc/history.md +14 -0
  46. package/minecraft-data/schemas/attributes_schema.json +22 -0
  47. package/minecraft-data/tools/js/test/test.js +1 -1
  48. package/package.json +1 -1
@@ -0,0 +1,30 @@
1
+ [
2
+ {
3
+ "name": "maxHealth",
4
+ "resource": "generic.maxHealth"
5
+ },
6
+ {
7
+ "name": "followRange",
8
+ "resource": "generic.followRange"
9
+ },
10
+ {
11
+ "name": "knockbackResistance",
12
+ "resource": "generic.knockbackResistance"
13
+ },
14
+ {
15
+ "name": "movementSpeed",
16
+ "resource": "generic.movementSpeed"
17
+ },
18
+ {
19
+ "name": "attackDamage",
20
+ "resource": "generic.attackDamage"
21
+ },
22
+ {
23
+ "name": "horseJumpStrength",
24
+ "resource": "horse.jumpStrength"
25
+ },
26
+ {
27
+ "name": "zombieSpawnReinforcements",
28
+ "resource": "zombie.spawnReinforcements"
29
+ }
30
+ ]
@@ -0,0 +1,50 @@
1
+ [
2
+ {
3
+ "name": "maxHealth",
4
+ "resource": "generic.maxHealth"
5
+ },
6
+ {
7
+ "name": "followRange",
8
+ "resource": "generic.followRange"
9
+ },
10
+ {
11
+ "name": "knockbackResistance",
12
+ "resource": "generic.knockbackResistance"
13
+ },
14
+ {
15
+ "name": "movementSpeed",
16
+ "resource": "generic.movementSpeed"
17
+ },
18
+ {
19
+ "name": "attackDamage",
20
+ "resource": "generic.attackDamage"
21
+ },
22
+ {
23
+ "name": "horseJumpStrength",
24
+ "resource": "horse.jumpStrength"
25
+ },
26
+ {
27
+ "name": "zombieSpawnReinforcements",
28
+ "resource": "zombie.spawnReinforcements"
29
+ },
30
+ {
31
+ "name": "attackSpeed",
32
+ "resource": "generic.attackSpeed"
33
+ },
34
+ {
35
+ "name": "flyingSpeed",
36
+ "resource": "generic.flyingSpeed"
37
+ },
38
+ {
39
+ "name": "attackKnockback",
40
+ "resource": "generic.attackKnockback"
41
+ },
42
+ {
43
+ "name": "armor",
44
+ "resource": "generic.armor"
45
+ },
46
+ {
47
+ "name": "armorToughness",
48
+ "resource": "generic.armorToughness"
49
+ }
50
+ ]
@@ -0,0 +1,54 @@
1
+ [
2
+ {
3
+ "name": "maxHealth",
4
+ "resource": "generic.maxHealth"
5
+ },
6
+ {
7
+ "name": "followRange",
8
+ "resource": "generic.followRange"
9
+ },
10
+ {
11
+ "name": "knockbackResistance",
12
+ "resource": "generic.knockbackResistance"
13
+ },
14
+ {
15
+ "name": "movementSpeed",
16
+ "resource": "generic.movementSpeed"
17
+ },
18
+ {
19
+ "name": "attackDamage",
20
+ "resource": "generic.attackDamage"
21
+ },
22
+ {
23
+ "name": "horseJumpStrength",
24
+ "resource": "horse.jumpStrength"
25
+ },
26
+ {
27
+ "name": "zombieSpawnReinforcements",
28
+ "resource": "zombie.spawnReinforcements"
29
+ },
30
+ {
31
+ "name": "attackSpeed",
32
+ "resource": "generic.attackSpeed"
33
+ },
34
+ {
35
+ "name": "flyingSpeed",
36
+ "resource": "generic.flyingSpeed"
37
+ },
38
+ {
39
+ "name": "attackKnockback",
40
+ "resource": "generic.attackKnockback"
41
+ },
42
+ {
43
+ "name": "armor",
44
+ "resource": "generic.armor"
45
+ },
46
+ {
47
+ "name": "armorToughness",
48
+ "resource": "generic.armorToughness"
49
+ },
50
+ {
51
+ "name": "luck",
52
+ "resource": "generic.luck"
53
+ }
54
+ ]
@@ -7,6 +7,19 @@
7
7
  | blockStates.json | Contains the global block palette for a Minecraft version. <br>Contains all of the possible block states. <br><br><br>The index of a Block State instance here is the paletted ID, <br>which can be used to idenfify this block state<br>instead of a string. | [bedrock-extractor][1] ("BlockStates.json" file) | |
8
8
  | steve.json | Skin data for clients connecting to BE servers, for default Steve character | [bedrock-protocol][2] (capture from proxy) | |
9
9
 
10
+ ### Updating protocol data
11
+
12
+ * To update bedrock protocol data, open `data/bedrock/latest` (or replace "latest" with some older version) and update the `proto.yml` and `types.yml` files.
13
+ * Go to `tools/js`, run `npm install` then `npm run build` to update the protodef JSON files
14
+
15
+ To update to a new protocol version:
16
+ * Copy `data/bedrock/latest` files into the old version's folder.
17
+ * Open `data/bedrock/latest` and update the `proto.yml` and `types.yml` files and update the `!version` part at the top
18
+ * Go to `tools/js`, run `npm install` then `npm run build` to update the protodef JSON files
19
+
20
+
21
+ then run `npm test` to test validity
22
+
10
23
  ### Status of data
11
24
 
12
25
  <!--StartFragment-->
@@ -1,3 +1,17 @@
1
+ ## 2.100.0
2
+ * pc: add more 1.18 data
3
+ * bedrock: update protocol
4
+ * pc: add attribute support
5
+
6
+ ## 2.99.3
7
+ * pc: rename x_sec and z_sec to x and z in chunk block entity
8
+
9
+ ## 2.99.2
10
+ * pc: change nbtData field of chunkBlockEntity to optionalNbt in 1.18
11
+
12
+ ## 2.99.1
13
+ * pc: fix simulation distance packet in 1.18
14
+
1
15
  ## 2.99.0
2
16
  * pc: fix version path in 1.18 (@u9g)
3
17
  * bedrock: update 1.18 data (@extremeheat)
@@ -0,0 +1,22 @@
1
+ {
2
+ "title": "attributes",
3
+ "type": "array",
4
+ "uniqueItems": true,
5
+ "items" : {
6
+ "title": "attribute",
7
+ "type": "object",
8
+ "properties": {
9
+ "resource": {
10
+ "description": "The Mojang name of an attribute (usually is generic.[name] or minecraft:generic.[name]",
11
+ "type": "string"
12
+ },
13
+ "name": {
14
+ "description": "The name of an attribute",
15
+ "type": "string",
16
+ "pattern": "\\S+"
17
+ }
18
+ },
19
+ "required": ["resource", "name"],
20
+ "additionalProperties":false
21
+ }
22
+ }
@@ -11,7 +11,7 @@ const Validator = require('protodef-validator')
11
11
 
12
12
  Error.stackTraceLimit = 0
13
13
 
14
- const data = ['biomes', 'commands', 'instruments', 'items', 'materials', 'blocks', 'blockCollisionShapes', 'recipes', 'windows', 'entities', 'protocol', 'version', 'effects', 'enchantments', 'language', 'foods', 'particles', 'blockLoot', 'entityLoot', 'mapIcons', 'tints']
14
+ const data = ['attributes', 'biomes', 'commands', 'instruments', 'items', 'materials', 'blocks', 'blockCollisionShapes', 'recipes', 'windows', 'entities', 'protocol', 'version', 'effects', 'enchantments', 'language', 'foods', 'particles', 'blockLoot', 'entityLoot', 'mapIcons', 'tints']
15
15
 
16
16
  require('./version_iterator')(function (p, versionString) {
17
17
  describe('minecraft-data schemas ' + versionString, function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "2.99.0",
3
+ "version": "2.100.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",