minecraft-data 3.45.0 → 3.46.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 (58) hide show
  1. package/data.js +23 -1
  2. package/doc/history.md +4 -0
  3. package/index.d.ts +4 -1
  4. package/minecraft-data/README.md +1 -1
  5. package/minecraft-data/data/bedrock/1.16.220/protocol.json +1 -1
  6. package/minecraft-data/data/bedrock/1.16.220/types.yml +2 -2
  7. package/minecraft-data/data/bedrock/1.17.0/protocol.json +1 -1
  8. package/minecraft-data/data/bedrock/1.17.0/types.yml +2 -2
  9. package/minecraft-data/data/bedrock/1.17.10/protocol.json +1 -1
  10. package/minecraft-data/data/bedrock/1.17.10/types.yml +2 -2
  11. package/minecraft-data/data/bedrock/1.17.30/protocol.json +1 -1
  12. package/minecraft-data/data/bedrock/1.17.30/types.yml +2 -2
  13. package/minecraft-data/data/bedrock/1.17.40/protocol.json +1 -1
  14. package/minecraft-data/data/bedrock/1.17.40/types.yml +2 -2
  15. package/minecraft-data/data/bedrock/1.18.0/protocol.json +1 -1
  16. package/minecraft-data/data/bedrock/1.18.0/types.yml +2 -2
  17. package/minecraft-data/data/bedrock/1.18.11/protocol.json +1 -1
  18. package/minecraft-data/data/bedrock/1.18.11/types.yml +2 -2
  19. package/minecraft-data/data/bedrock/1.18.30/protocol.json +1 -1
  20. package/minecraft-data/data/bedrock/1.18.30/types.yml +2 -2
  21. package/minecraft-data/data/bedrock/1.19.1/protocol.json +1 -1
  22. package/minecraft-data/data/bedrock/1.19.1/types.yml +2 -2
  23. package/minecraft-data/data/bedrock/1.19.10/protocol.json +1 -1
  24. package/minecraft-data/data/bedrock/1.19.10/types.yml +1 -1
  25. package/minecraft-data/data/bedrock/1.19.20/protocol.json +1 -1
  26. package/minecraft-data/data/bedrock/1.19.20/types.yml +1 -1
  27. package/minecraft-data/data/bedrock/1.19.21/protocol.json +1 -1
  28. package/minecraft-data/data/bedrock/1.19.21/types.yml +1 -1
  29. package/minecraft-data/data/bedrock/1.19.30/protocol.json +1 -1
  30. package/minecraft-data/data/bedrock/1.19.30/types.yml +1 -1
  31. package/minecraft-data/data/bedrock/1.19.40/protocol.json +1 -1
  32. package/minecraft-data/data/bedrock/1.19.40/types.yml +1 -1
  33. package/minecraft-data/data/bedrock/1.19.50/protocol.json +1 -1
  34. package/minecraft-data/data/bedrock/1.19.50/types.yml +1 -1
  35. package/minecraft-data/data/bedrock/1.19.60/protocol.json +1 -1
  36. package/minecraft-data/data/bedrock/1.19.60/types.yml +1 -1
  37. package/minecraft-data/data/bedrock/1.19.62/protocol.json +1 -1
  38. package/minecraft-data/data/bedrock/1.19.62/types.yml +1 -1
  39. package/minecraft-data/data/bedrock/1.19.70/protocol.json +1 -1
  40. package/minecraft-data/data/bedrock/1.19.70/types.yml +1 -1
  41. package/minecraft-data/data/bedrock/1.19.80/protocol.json +1 -1
  42. package/minecraft-data/data/bedrock/1.19.80/types.yml +1 -1
  43. package/minecraft-data/data/bedrock/1.20.0/protocol.json +1 -1
  44. package/minecraft-data/data/bedrock/1.20.0/types.yml +1 -1
  45. package/minecraft-data/data/bedrock/1.20.10/proto.yml +4021 -0
  46. package/minecraft-data/data/bedrock/1.20.10/protocol.json +1 -1
  47. package/minecraft-data/data/bedrock/1.20.10/types.yml +2101 -0
  48. package/minecraft-data/data/bedrock/1.20.30/protocol.json +11748 -0
  49. package/minecraft-data/data/bedrock/1.20.30/version.json +6 -0
  50. package/minecraft-data/data/bedrock/common/protocolVersions.json +6 -0
  51. package/minecraft-data/data/bedrock/common/versions.json +2 -1
  52. package/minecraft-data/data/bedrock/latest/proto.yml +80 -9
  53. package/minecraft-data/data/bedrock/latest/types.yml +17 -1
  54. package/minecraft-data/data/dataPaths.json +24 -2
  55. package/minecraft-data/data/pc/common/protocolVersions.json +50 -2
  56. package/minecraft-data/doc/history.md +5 -0
  57. package/package.json +1 -1
  58. package/typings/index-template.d.ts +4 -1
@@ -0,0 +1,6 @@
1
+ {
2
+ "version": 618,
3
+ "minecraftVersion": "1.20.30",
4
+ "majorVersion": "1.20",
5
+ "releaseType": "release"
6
+ }
@@ -1,4 +1,10 @@
1
1
  [
2
+ {
3
+ "version": 618,
4
+ "minecraftVersion": "1.20.30",
5
+ "majorVersion": "1.20",
6
+ "releaseType": "release"
7
+ },
2
8
  {
3
9
  "version": 594,
4
10
  "minecraftVersion": "1.20.10",
@@ -25,5 +25,6 @@
25
25
  "1.19.70",
26
26
  "1.19.80",
27
27
  "1.20.0",
28
- "1.20.10"
28
+ "1.20.10",
29
+ "1.20.30"
29
30
  ]
@@ -1,7 +1,7 @@
1
1
  # Created from MiNET and gophertunnel docs
2
2
  # The version below is the latest version this protocol schema was updated for.
3
3
  # The output protocol.json will be in the folder for the version
4
- !version: 1.20.10
4
+ !version: 1.20.30
5
5
 
6
6
  # Some ProtoDef aliases
7
7
  string: ["pstring",{"countType":"varint"}] # String / array types
@@ -133,6 +133,11 @@ packet_resource_packs_info:
133
133
  # A list of resource packs that the client needs to download before joining the server.
134
134
  # The order of these resource packs is not relevant in this packet. It is however important in the Resource Pack Stack packet.
135
135
  texture_packs: TexturePackInfos
136
+ # Resource Pack Links contains a list of URLs where the client can download required
137
+ # resource packs, as opposed to the current Minecraft sever sending the data over
138
+ resource_pack_links: []varint
139
+ id: string
140
+ url: string
136
141
 
137
142
  packet_resource_pack_stack:
138
143
  !id: 0x07
@@ -263,9 +268,12 @@ packet_start_game:
263
268
  # to true while the player's or the world's game mode is creative, and it's recommended to simply
264
269
  # always set this to false as a server.
265
270
  achievements_disabled: bool
266
- # EditorWorld is a value to dictate if the world is in editor mode, a special mode recently introduced adding
271
+ # EditorWorldType is a value to dictate the type of editor mode, a special mode recently introduced adding
267
272
  # "powerful tools for editing worlds, intended for experienced creators."
268
- editor_world: bool
273
+ editor_world_type: zigzag32 =>
274
+ - not_editor
275
+ - project
276
+ - test_level
269
277
  # Whether the world was created in editor mode
270
278
  created_in_editor: bool
271
279
  # Whether the world was exported from editor mode
@@ -3140,7 +3148,9 @@ InputFlag: [ "bitflags", {
3140
3148
  "emoting",
3141
3149
  "missed_swing",
3142
3150
  "start_crawling",
3143
- "stop_crawling"
3151
+ "stop_crawling",
3152
+ "start_flying",
3153
+ "stop_flying"
3144
3154
  ]
3145
3155
  }]
3146
3156
 
@@ -3954,8 +3964,15 @@ packet_client_cheat_ability:
3954
3964
  packet_camera_presets:
3955
3965
  !id: 0xc6
3956
3966
  !bound: client
3957
- # Data is a compound tag of the presets being set.
3958
- data: nbt
3967
+ # Name is the name of the preset. Each preset must have their own unique name.
3968
+ name: string
3969
+ # Parent is the name of the preset that this preset extends upon. This can be left empty.
3970
+ parent: string
3971
+ position: Vec3fopts
3972
+ rotation: Vec2fopts
3973
+ ## TODO: make this an enum afer adding proper optional support inside pdefyaml
3974
+ audio_listener?: u8
3975
+ player_effects?: bool
3959
3976
 
3960
3977
  # unlocked_recipes gives the client a list of recipes that have been unlocked, restricting the recipes that appear in
3961
3978
  # the recipe book.
@@ -3975,9 +3992,58 @@ packet_unlocked_recipes:
3975
3992
  # camera_instruction gives a custom camera specific instructions to operate.
3976
3993
  packet_camera_instruction:
3977
3994
  !id: 0x12c
3978
- !bound:
3979
- # Data is a compound tag of the instructions to sent.
3980
- data: nbt
3995
+ !bound: client
3996
+ # Instruction Set is a camera instruction that sets the camera to a specified preset.
3997
+ instruction_set?:
3998
+ # Preset is the index of the preset in the CameraPresets packet sent to the player.
3999
+ runtime_id: li32
4000
+ # Ease represents the easing function that is used by the instruction.
4001
+ ease_data?:
4002
+ type: u8 =>
4003
+ - Linear
4004
+ - Spring
4005
+ - InQuad
4006
+ - OutQuad
4007
+ - InOutQuad
4008
+ - InCubic
4009
+ - OutCubic
4010
+ - InOutCubic
4011
+ - InQuart
4012
+ - OutQuart
4013
+ - InOutQuart
4014
+ - InQuint
4015
+ - OutQuint
4016
+ - InOutQuint
4017
+ - InSine
4018
+ - OutSine
4019
+ - InOutSine
4020
+ - InExpo
4021
+ - OutExpo
4022
+ - InOutExpo
4023
+ - InCirc
4024
+ - OutCirc
4025
+ - InOutCirc
4026
+ - InBounce
4027
+ - OutBounce
4028
+ - InOutBounce
4029
+ - InBack
4030
+ - OutBack
4031
+ - InOutBack
4032
+ - InElastic
4033
+ - OutElastic
4034
+ - InOutElastic
4035
+ duration: lf32
4036
+ position?: vec3f
4037
+ rotation?: vec2f
4038
+ facing?: vec3f
4039
+ default?: bool
4040
+ clear?: bool
4041
+ fade?:
4042
+ fade_in_duration: lf32
4043
+ wait_duration: lf32
4044
+ fade_out_duration: lf32
4045
+ color_rgb: vec3f
4046
+
3981
4047
 
3982
4048
  packet_compressed_biome_definitions:
3983
4049
  !id: 0x12d
@@ -4019,3 +4085,8 @@ packet_agent_animation:
4019
4085
  # entity_runtime_id is the runtime ID of the entity. The runtime ID is unique for each world session, and
4020
4086
  # entities are generally identified in packets using this runtime ID.
4021
4087
  entity_runtime_id: varint64
4088
+
4089
+ # RefreshEntitlements is sent by the client to the server to refresh the entitlements of the player.
4090
+ packet_refresh_entitlements:
4091
+ !id: 0x131
4092
+ !bound: server
@@ -131,7 +131,7 @@ Item:
131
131
  metadata: varint
132
132
  # When server authoritative inventory is enabled, all allocated items have a unique ID used to identify
133
133
  # a specifc item instance.
134
- has_stack_id: u8
134
+ has_stack_id: bool
135
135
  # StackNetworkID is the network ID of this item *instance*. If the stack is empty, 0 is always written for this
136
136
  # field. If not, the field should be set to 1 if the server authoritative inventories are disabled in the
137
137
  # StartGame packet, or to a unique stack ID if it is enabled.
@@ -164,6 +164,15 @@ vec2f:
164
164
  x: lf32
165
165
  z: lf32
166
166
 
167
+ Vec3fopts:
168
+ x?: lf32
169
+ y?: lf32
170
+ z?: lf32
171
+
172
+ Vec2fopts:
173
+ x?: lf32
174
+ y?: lf32
175
+
167
176
  MetadataDictionary: []varint
168
177
  # https://github.com/pmmp/PocketMine-MP/blob/stable/src/pocketmine/entity/Entity.php#L101
169
178
  key: varint =>
@@ -1931,6 +1940,13 @@ SoundType: varint =>
1931
1940
  - SnifferEggHatched
1932
1941
  - WaxedSignInteractFail
1933
1942
  - RecordRelic
1943
+ - Bump
1944
+ - PumpkinCarve
1945
+ - ConvertHuskToZombie
1946
+ - PigDeath
1947
+ - HoglinZombified
1948
+ - AmbientUnderwaterEnter
1949
+ - AmbientUnderwaterExit
1934
1950
 
1935
1951
  # TODO: remove?
1936
1952
  LegacyEntityType: li32 =>
@@ -1781,10 +1781,32 @@
1781
1781
  "steve": "bedrock/1.16.201",
1782
1782
  "blocksB2J": "bedrock/1.20.0",
1783
1783
  "blocksJ2B": "bedrock/1.20.0",
1784
+ "proto": "bedrock/1.20.10",
1785
+ "types": "bedrock/1.20.10",
1786
+ "version": "bedrock/1.20.10",
1787
+ "language": "bedrock/1.20.10"
1788
+ },
1789
+ "1.20.30": {
1790
+ "blocks": "bedrock/1.20.0",
1791
+ "blockStates": "bedrock/1.20.0",
1792
+ "blockCollisionShapes": "bedrock/1.20.0",
1793
+ "biomes": "bedrock/1.20.0",
1794
+ "entities": "bedrock/1.19.1",
1795
+ "items": "bedrock/1.20.0",
1796
+ "recipes": "bedrock/1.19.10",
1797
+ "instruments": "bedrock/1.17.0",
1798
+ "materials": "pc/1.17",
1799
+ "enchantments": "bedrock/1.19.1",
1800
+ "effects": "pc/1.17",
1801
+ "protocol": "bedrock/1.20.30",
1802
+ "windows": "bedrock/1.16.201",
1803
+ "steve": "bedrock/1.16.201",
1804
+ "blocksB2J": "bedrock/1.20.0",
1805
+ "blocksJ2B": "bedrock/1.20.0",
1784
1806
  "proto": "bedrock/latest",
1785
1807
  "types": "bedrock/latest",
1786
- "version": "bedrock/1.20.10",
1808
+ "version": "bedrock/1.20.30",
1787
1809
  "language": "bedrock/1.20.10"
1788
1810
  }
1789
1811
  }
1790
- }
1812
+ }
@@ -1,10 +1,58 @@
1
1
  [
2
+ {
3
+ "minecraftVersion": "1.20.2-rc2",
4
+ "version": 1073741977,
5
+ "dataVersion": 3577,
6
+ "usesNetty": true,
7
+ "majorVersion": "1.20",
8
+ "releaseType": "snapshot"
9
+ },
10
+ {
11
+ "minecraftVersion": "1.20.2-rc1",
12
+ "version": 1073741976,
13
+ "dataVersion": 3576,
14
+ "usesNetty": true,
15
+ "majorVersion": "1.20",
16
+ "releaseType": "snapshot"
17
+ },
18
+ {
19
+ "minecraftVersion": "1.20.2-pre4",
20
+ "version": 1073741975,
21
+ "dataVersion": 3575,
22
+ "usesNetty": true,
23
+ "majorVersion": "1.20",
24
+ "releaseType": "snapshot"
25
+ },
26
+ {
27
+ "minecraftVersion": "1.20.2-pre3",
28
+ "version": 1073741974,
29
+ "dataVersion": 3574,
30
+ "usesNetty": true,
31
+ "majorVersion": "1.20",
32
+ "releaseType": "snapshot"
33
+ },
34
+ {
35
+ "minecraftVersion": "1.20.2-pre2",
36
+ "version": 1073741973,
37
+ "dataVersion": 3573,
38
+ "usesNetty": true,
39
+ "majorVersion": "1.20",
40
+ "releaseType": "snapshot"
41
+ },
42
+ {
43
+ "minecraftVersion": "1.20.2-pre1",
44
+ "version": 1073741972,
45
+ "dataVersion": 3572,
46
+ "usesNetty": true,
47
+ "majorVersion": "1.20",
48
+ "releaseType": "snapshot"
49
+ },
2
50
  {
3
51
  "minecraftVersion": "23w35a",
4
52
  "version": 1073741971,
5
53
  "dataVersion": 3571,
6
54
  "usesNetty": true,
7
- "majorVersion": "23w35a",
55
+ "majorVersion": "1.20",
8
56
  "releaseType": "snapshot"
9
57
  },
10
58
  {
@@ -12,7 +60,7 @@
12
60
  "version": 1073741970,
13
61
  "dataVersion": 3570,
14
62
  "usesNetty": true,
15
- "majorVersion": "23w33a",
63
+ "majorVersion": "1.20",
16
64
  "releaseType": "snapshot"
17
65
  },
18
66
  {
@@ -1,3 +1,8 @@
1
+ ## 3.46.0
2
+ * [Add bedrock 1.20.30 protocol data (#774)](https://github.com/PrismarineJS/minecraft-data/commit/dd5f730dd8b930cc1d6dc6a7f464a020064f160d) (thanks @extremeheat)
3
+ * [Update bedrock protocol data for has_stack_id in Item to a boolean (#770)](https://github.com/PrismarineJS/minecraft-data/commit/3928388ae32e44558cc342a888d95278a8a1ac70) (thanks @CreeperG16)
4
+ * Update protocolVersions.json
5
+
1
6
  ## 3.45.0
2
7
  * [add features for prismarine chunk (#763)](https://github.com/PrismarineJS/minecraft-data/commit/1b9380edb159721bef2342d4214b0ebb3128c812) (thanks @extremeheat)
3
8
  * [1.20 block data fixes (#766)](https://github.com/PrismarineJS/minecraft-data/commit/b130830580ea0cc5551cd736bdc139ac79d3eba7) (thanks @MathiasElgaard)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minecraft-data",
3
- "version": "3.45.0",
3
+ "version": "3.46.0",
4
4
  "description": "Provide easy access to minecraft data in node.js",
5
5
  "main": "index.js",
6
6
  "tonicExampleFilename": "example.js",
@@ -108,7 +108,10 @@ export interface IndexedData {
108
108
  * Bedrock edition only
109
109
  */
110
110
  blockStates?: { name: string; states: object; version: number }[]
111
- blockCollisionShapes: { blocks: { [name: string]: number[] }; shapes: { [id: number]: [number[]] } }
111
+ /**
112
+ * id is the shape id of the block converted to a string
113
+ */
114
+ blockCollisionShapes: { blocks: { [name: string]: number | number[] }; shapes: { [id: string]: [number[]] } }
112
115
 
113
116
  loginPacket: LoginPacket
114
117