minecraft-data 3.43.1 → 3.45.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 (52) hide show
  1. package/doc/history.md +8 -0
  2. package/minecraft-data/.github/helper-bot/index.js +58 -59
  3. package/minecraft-data/.github/workflows/update-helper.yml +1 -1
  4. package/minecraft-data/data/bedrock/1.16.220/protocol.json +3 -3
  5. package/minecraft-data/data/bedrock/1.16.220/types.yml +3 -3
  6. package/minecraft-data/data/bedrock/1.17.0/protocol.json +3 -3
  7. package/minecraft-data/data/bedrock/1.17.0/types.yml +3 -3
  8. package/minecraft-data/data/bedrock/1.17.10/protocol.json +3 -3
  9. package/minecraft-data/data/bedrock/1.17.10/types.yml +3 -3
  10. package/minecraft-data/data/bedrock/1.17.30/protocol.json +3 -3
  11. package/minecraft-data/data/bedrock/1.17.30/types.yml +3 -3
  12. package/minecraft-data/data/bedrock/1.17.40/protocol.json +3 -3
  13. package/minecraft-data/data/bedrock/1.17.40/types.yml +3 -3
  14. package/minecraft-data/data/bedrock/1.18.0/protocol.json +3 -3
  15. package/minecraft-data/data/bedrock/1.18.0/types.yml +3 -3
  16. package/minecraft-data/data/bedrock/1.18.11/protocol.json +3 -3
  17. package/minecraft-data/data/bedrock/1.18.11/types.yml +3 -3
  18. package/minecraft-data/data/bedrock/1.18.30/protocol.json +3 -3
  19. package/minecraft-data/data/bedrock/1.18.30/types.yml +3 -3
  20. package/minecraft-data/data/bedrock/1.19.1/protocol.json +3 -3
  21. package/minecraft-data/data/bedrock/1.19.1/types.yml +3 -3
  22. package/minecraft-data/data/bedrock/1.19.10/protocol.json +3 -3
  23. package/minecraft-data/data/bedrock/1.19.10/types.yml +3 -3
  24. package/minecraft-data/data/bedrock/1.19.20/protocol.json +3 -3
  25. package/minecraft-data/data/bedrock/1.19.20/types.yml +3 -3
  26. package/minecraft-data/data/bedrock/1.19.21/protocol.json +3 -3
  27. package/minecraft-data/data/bedrock/1.19.21/types.yml +3 -3
  28. package/minecraft-data/data/bedrock/1.19.30/protocol.json +3 -3
  29. package/minecraft-data/data/bedrock/1.19.30/types.yml +3 -3
  30. package/minecraft-data/data/bedrock/1.19.40/protocol.json +3 -3
  31. package/minecraft-data/data/bedrock/1.19.40/types.yml +3 -3
  32. package/minecraft-data/data/bedrock/1.19.50/protocol.json +3 -3
  33. package/minecraft-data/data/bedrock/1.19.50/types.yml +3 -3
  34. package/minecraft-data/data/bedrock/1.19.60/protocol.json +3 -3
  35. package/minecraft-data/data/bedrock/1.19.60/types.yml +3 -3
  36. package/minecraft-data/data/bedrock/1.19.62/protocol.json +3 -3
  37. package/minecraft-data/data/bedrock/1.19.62/types.yml +3 -3
  38. package/minecraft-data/data/bedrock/1.19.70/protocol.json +3 -3
  39. package/minecraft-data/data/bedrock/1.19.70/types.yml +3 -3
  40. package/minecraft-data/data/bedrock/1.19.80/protocol.json +3 -3
  41. package/minecraft-data/data/bedrock/1.19.80/types.yml +3 -3
  42. package/minecraft-data/data/bedrock/1.20.0/protocol.json +3 -3
  43. package/minecraft-data/data/bedrock/1.20.0/types.yml +3 -3
  44. package/minecraft-data/data/bedrock/1.20.10/protocol.json +3 -3
  45. package/minecraft-data/data/bedrock/common/features.json +10 -0
  46. package/minecraft-data/data/bedrock/latest/types.yml +3 -3
  47. package/minecraft-data/data/pc/1.19.4/protocol.json +4 -4
  48. package/minecraft-data/data/pc/1.20/blocks.json +18251 -16821
  49. package/minecraft-data/data/pc/common/features.json +46 -1
  50. package/minecraft-data/data/pc/common/protocolVersions.json +16 -0
  51. package/minecraft-data/doc/history.md +10 -0
  52. package/package.json +2 -2
package/doc/history.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # History
2
2
 
3
+ ## 3.45.0
4
+
5
+ * update `minecraft-data`
6
+
7
+ ## 3.44.0
8
+
9
+ * update `minecraft-data`
10
+
3
11
  ## 3.43.1
4
12
 
5
13
  * update `minecraft-data`
@@ -1,28 +1,9 @@
1
1
  const fs = require('fs')
2
2
  const cp = require('child_process')
3
- const https = require('https')
4
3
  const helper = require('./github-helper')
5
4
  const pcManifestURL = 'https://launchermeta.mojang.com/mc/game/version_manifest.json'
6
5
  const changelogURL = 'https://feedback.minecraft.net/hc/en-us/sections/360001186971-Release-Changelogs'
7
6
 
8
- // this is a polyfill for node <18
9
- const fetch = globalThis.fetch || function (url) {
10
- return new Promise((resolve, reject) => {
11
- https.get(url, (res) => {
12
- let data = ''
13
- res.on('data', (chunk) => {
14
- data += chunk
15
- })
16
- res.on('end', () => {
17
- resolve({
18
- ok: true,
19
- text: () => Promise.resolve(data),
20
- json: () => Promise.resolve(JSON.parse(data))
21
- })
22
- })
23
- }).on('error', reject)
24
- })
25
- }
26
7
  const download = (url, dest) => cp.execSync(`curl -L ${url} -o ${dest}`)
27
8
 
28
9
  function buildFirstIssue (title, result, jarData) {
@@ -65,43 +46,78 @@ async function updateManifestPC () {
65
46
  const manifest = await fetch(pcManifestURL).then(res => res.json())
66
47
  // fs.writeFileSync('./manifest.json', JSON.stringify(manifest, null, 2))
67
48
  const knownVersions = protocolVersions.pc.reduce((acc, cur) => (acc[cur.minecraftVersion] = cur, acc), {})
68
- const latestRelease = manifest.latest.release
49
+ const latestVersion = manifest.latest.snapshot
50
+ const latestVersionData = manifest.versions.find(v => v.id === latestVersion)
51
+ const latestVersionIsSnapshot = latestVersionData.type !== 'release'
69
52
 
70
- const title = `Support Minecraft PC ${latestRelease}`
53
+ const title = `Support Minecraft PC ${latestVersion}`
71
54
  const issueStatus = await helper.getIssueStatus(title)
72
55
 
73
- if (supportedVersions.pc.includes(latestRelease)) {
74
- if (issueStatus.open) {
75
- helper.close(issueStatus.id, `Closing as PC ${latestRelease} is now supported`)
56
+ if (latestVersionIsSnapshot) {
57
+ // don't make issues for snapshots
58
+ if (supportedVersions.pc.includes(latestVersion) || knownVersions[latestVersion]) {
59
+ console.log('Latest version is a known snapshot, no work to do')
60
+ return
76
61
  }
77
- console.log('Latest PC version is supported.')
78
- return
79
- } else if (knownVersions[latestRelease]) {
80
- console.log(`Latest PC version ${latestRelease} is known in protocolVersions.json, but not in versions.json (protocol version ${knownVersions[latestRelease].version})`)
81
- return
82
62
  } else {
83
- console.log(`Latest PC version ${latestRelease} is not known in protocolVersions.json, adding and making issue`)
63
+ if (supportedVersions.pc.includes(latestVersion)) {
64
+ if (issueStatus.open) {
65
+ helper.close(issueStatus.id, `Closing as PC ${latestVersion} is now supported`)
66
+ }
67
+ console.log('Latest PC version is supported.')
68
+ return
69
+ } else if (knownVersions[latestVersion]) {
70
+ console.log(`Latest PC version ${latestVersion} is known in protocolVersions.json, but not in versions.json (protocol version ${knownVersions[latestVersion].version})`)
71
+ return
72
+ } else {
73
+ console.log(`Latest PC version ${latestVersion} is not known in protocolVersions.json, adding and making issue`)
74
+ }
84
75
  }
85
- const latestReleaseData = manifest.versions.find(v => v.id === latestRelease)
86
76
 
87
- // Note: We don't use the below check to track if the version is supported properly or not
88
- // (data like protocol/blocks/items/etc is present), just to make sure the known protocol version is correct.
77
+ let versionJson
89
78
  try {
90
- const latestReleaseManifest = await fetch(latestReleaseData.url).then(res => res.json())
79
+ versionJson = await addEntryFor(latestVersion, latestVersionData)
80
+ } catch (e) {
81
+ console.error(e)
82
+
83
+ if (latestVersionIsSnapshot) {
84
+ console.warn('Failed to update protocolVersions.json for the snapshot', latestVersion)
85
+ } else {
86
+ console.log('Latest PC version is not supported and we failed to load data. Opening issue...')
87
+ const issuePayload = buildFirstIssue(title, latestVersionData)
88
+ helper.createIssue(issuePayload)
89
+
90
+ fs.writeFileSync('./issue.md', issuePayload.body)
91
+ console.log('OK, wrote to ./issue.md', issuePayload)
92
+ }
93
+ }
94
+
95
+ if (!latestVersionIsSnapshot && !issueStatus.open && !issueStatus.closed) {
96
+ console.log('Opening issue', versionJson)
97
+ const issuePayload = buildFirstIssue(title, latestVersionData, versionJson)
98
+
99
+ helper.createIssue(issuePayload)
100
+
101
+ fs.writeFileSync('./issue.md', issuePayload.body)
102
+ console.log('OK, wrote to ./issue.md', issuePayload)
103
+ }
104
+
105
+ async function addEntryFor (releaseVersion, releaseData) {
106
+ const latestReleaseManifest = await fetch(releaseData.url).then(res => res.json())
91
107
  // Download client jar
92
- if (!fs.existsSync(`./${latestRelease}.jar`)) {
108
+ if (!fs.existsSync(`./${releaseVersion}.jar`)) {
93
109
  const clientJarUrl = latestReleaseManifest.downloads.client.url
94
110
  console.log('Downloading client jar', clientJarUrl)
95
- download(clientJarUrl, `./${latestRelease}.jar`)
111
+ download(clientJarUrl, `./${releaseVersion}.jar`)
96
112
  }
97
113
 
98
114
  // Log the byte size of the client jar
99
- const clientJarSize = fs.statSync(`./${latestRelease}.jar`).size
100
- console.log(`Downloaded client jar ${latestRelease}.jar (${clientJarSize} bytes), extracting its version.json...`)
115
+ const clientJarSize = fs.statSync(`./${releaseVersion}.jar`).size
116
+ console.log(`Downloaded client jar ${releaseVersion}.jar (${clientJarSize} bytes), extracting its version.json...`)
101
117
 
102
118
  // unzip with tar / unzip, Actions image uses 7z
103
- if (process.platform === 'win32') cp.execSync(`tar -xf ./${latestRelease}.jar version.json`)
104
- else cp.execSync(`7z -y e ./${latestRelease}.jar version.json`, { stdio: 'inherit' })
119
+ if (process.platform === 'win32') cp.execSync(`tar -xf ./${releaseVersion}.jar version.json`)
120
+ else cp.execSync(`7z -y e ./${releaseVersion}.jar version.json`, { stdio: 'inherit' })
105
121
  const versionJson = require('./version.json')
106
122
 
107
123
  let majorVersion
@@ -118,7 +134,7 @@ async function updateManifestPC () {
118
134
  dataVersion: versionJson.world_version,
119
135
  usesNetty: true,
120
136
  majorVersion,
121
- releaseType: latestReleaseData.type
137
+ releaseType: latestVersionData.type
122
138
  }
123
139
  console.log('Adding new entry to pc protocolVersions.json', newEntry)
124
140
  const updatedProtocolVersions = [newEntry, ...protocolVersions.pc]
@@ -134,24 +150,7 @@ async function updateManifestPC () {
134
150
  cp.execSync('git push')
135
151
  }
136
152
 
137
- if (!issueStatus.open && !issueStatus.closed) {
138
- console.log('Opening issue', versionJson)
139
- const issuePayload = buildFirstIssue(title, latestReleaseData, versionJson)
140
-
141
- helper.createIssue(issuePayload)
142
-
143
- fs.writeFileSync('./issue.md', issuePayload.body)
144
- console.log('OK, wrote to ./issue.md', issuePayload)
145
- }
146
- } catch (e) {
147
- console.error(e)
148
-
149
- console.log('Latest PC version is not supported and we failed to load data. Opening issue...')
150
- const issuePayload = buildFirstIssue(title, latestReleaseData)
151
- helper.createIssue(issuePayload)
152
-
153
- fs.writeFileSync('./issue.md', issuePayload.body)
154
- console.log('OK, wrote to ./issue.md', issuePayload)
153
+ return versionJson
155
154
  }
156
155
  }
157
156
 
@@ -14,7 +14,7 @@ jobs:
14
14
  - name: Set up Node.js
15
15
  uses: actions/setup-node@master
16
16
  with:
17
- node-version: 16.0.0
17
+ node-version: 18.0.0
18
18
  - name: Install Github Actions toolkit
19
19
  run: npm i @actions/github
20
20
  working-directory: .github/helper-bot
@@ -2064,7 +2064,7 @@
2064
2064
  [
2065
2065
  {
2066
2066
  "name": "request_id",
2067
- "type": "varint"
2067
+ "type": "zigzag32"
2068
2068
  },
2069
2069
  {
2070
2070
  "name": "actions",
@@ -2342,7 +2342,7 @@
2342
2342
  },
2343
2343
  {
2344
2344
  "name": "request_id",
2345
- "type": "varint"
2345
+ "type": "zigzag32"
2346
2346
  },
2347
2347
  {
2348
2348
  "anon": true,
@@ -2390,7 +2390,7 @@
2390
2390
  },
2391
2391
  {
2392
2392
  "name": "item_stack_id",
2393
- "type": "varint"
2393
+ "type": "zigzag32"
2394
2394
  },
2395
2395
  {
2396
2396
  "name": "custom_name",
@@ -779,7 +779,7 @@ StackRequestSlotInfo:
779
779
  ItemStackRequest:
780
780
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
781
781
  # specific request in the ItemStackResponse packet.
782
- request_id: varint
782
+ request_id: zigzag32
783
783
  actions: []varint
784
784
  type_id: u8 =>
785
785
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -915,7 +915,7 @@ ItemStackResponses: []varint
915
915
  1: error
916
916
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
917
917
  # will undo the actions from the request with this ID.
918
- request_id: varint
918
+ request_id: zigzag32
919
919
  _: status ?
920
920
  if ok:
921
921
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -936,7 +936,7 @@ ItemStackResponses: []varint
936
936
  # sent to the client.
937
937
  count: u8
938
938
  # StackNetworkID is the network ID of the new stack at a specific slot.
939
- item_stack_id: varint
939
+ item_stack_id: zigzag32
940
940
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
941
941
  custom_name: string
942
942
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2067,7 +2067,7 @@
2067
2067
  [
2068
2068
  {
2069
2069
  "name": "request_id",
2070
- "type": "varint"
2070
+ "type": "zigzag32"
2071
2071
  },
2072
2072
  {
2073
2073
  "name": "actions",
@@ -2345,7 +2345,7 @@
2345
2345
  },
2346
2346
  {
2347
2347
  "name": "request_id",
2348
- "type": "varint"
2348
+ "type": "zigzag32"
2349
2349
  },
2350
2350
  {
2351
2351
  "anon": true,
@@ -2393,7 +2393,7 @@
2393
2393
  },
2394
2394
  {
2395
2395
  "name": "item_stack_id",
2396
- "type": "varint"
2396
+ "type": "zigzag32"
2397
2397
  },
2398
2398
  {
2399
2399
  "name": "custom_name",
@@ -782,7 +782,7 @@ StackRequestSlotInfo:
782
782
  ItemStackRequest:
783
783
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
784
784
  # specific request in the ItemStackResponse packet.
785
- request_id: varint
785
+ request_id: zigzag32
786
786
  actions: []varint
787
787
  type_id: u8 =>
788
788
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -918,7 +918,7 @@ ItemStackResponses: []varint
918
918
  1: error
919
919
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
920
920
  # will undo the actions from the request with this ID.
921
- request_id: varint
921
+ request_id: zigzag32
922
922
  _: status ?
923
923
  if ok:
924
924
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -939,7 +939,7 @@ ItemStackResponses: []varint
939
939
  # sent to the client.
940
940
  count: u8
941
941
  # StackNetworkID is the network ID of the new stack at a specific slot.
942
- item_stack_id: varint
942
+ item_stack_id: zigzag32
943
943
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
944
944
  custom_name: string
945
945
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2067,7 +2067,7 @@
2067
2067
  [
2068
2068
  {
2069
2069
  "name": "request_id",
2070
- "type": "varint"
2070
+ "type": "zigzag32"
2071
2071
  },
2072
2072
  {
2073
2073
  "name": "actions",
@@ -2345,7 +2345,7 @@
2345
2345
  },
2346
2346
  {
2347
2347
  "name": "request_id",
2348
- "type": "varint"
2348
+ "type": "zigzag32"
2349
2349
  },
2350
2350
  {
2351
2351
  "anon": true,
@@ -2393,7 +2393,7 @@
2393
2393
  },
2394
2394
  {
2395
2395
  "name": "item_stack_id",
2396
- "type": "varint"
2396
+ "type": "zigzag32"
2397
2397
  },
2398
2398
  {
2399
2399
  "name": "custom_name",
@@ -782,7 +782,7 @@ StackRequestSlotInfo:
782
782
  ItemStackRequest:
783
783
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
784
784
  # specific request in the ItemStackResponse packet.
785
- request_id: varint
785
+ request_id: zigzag32
786
786
  actions: []varint
787
787
  type_id: u8 =>
788
788
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -918,7 +918,7 @@ ItemStackResponses: []varint
918
918
  1: error
919
919
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
920
920
  # will undo the actions from the request with this ID.
921
- request_id: varint
921
+ request_id: zigzag32
922
922
  _: status ?
923
923
  if ok:
924
924
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -939,7 +939,7 @@ ItemStackResponses: []varint
939
939
  # sent to the client.
940
940
  count: u8
941
941
  # StackNetworkID is the network ID of the new stack at a specific slot.
942
- item_stack_id: varint
942
+ item_stack_id: zigzag32
943
943
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
944
944
  custom_name: string
945
945
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2075,7 +2075,7 @@
2075
2075
  [
2076
2076
  {
2077
2077
  "name": "request_id",
2078
- "type": "varint"
2078
+ "type": "zigzag32"
2079
2079
  },
2080
2080
  {
2081
2081
  "name": "actions",
@@ -2353,7 +2353,7 @@
2353
2353
  },
2354
2354
  {
2355
2355
  "name": "request_id",
2356
- "type": "varint"
2356
+ "type": "zigzag32"
2357
2357
  },
2358
2358
  {
2359
2359
  "anon": true,
@@ -2401,7 +2401,7 @@
2401
2401
  },
2402
2402
  {
2403
2403
  "name": "item_stack_id",
2404
- "type": "varint"
2404
+ "type": "zigzag32"
2405
2405
  },
2406
2406
  {
2407
2407
  "name": "custom_name",
@@ -787,7 +787,7 @@ StackRequestSlotInfo:
787
787
  ItemStackRequest:
788
788
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
789
789
  # specific request in the ItemStackResponse packet.
790
- request_id: varint
790
+ request_id: zigzag32
791
791
  actions: []varint
792
792
  type_id: u8 =>
793
793
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -923,7 +923,7 @@ ItemStackResponses: []varint
923
923
  1: error
924
924
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
925
925
  # will undo the actions from the request with this ID.
926
- request_id: varint
926
+ request_id: zigzag32
927
927
  _: status ?
928
928
  if ok:
929
929
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -944,7 +944,7 @@ ItemStackResponses: []varint
944
944
  # sent to the client.
945
945
  count: u8
946
946
  # StackNetworkID is the network ID of the new stack at a specific slot.
947
- item_stack_id: varint
947
+ item_stack_id: zigzag32
948
948
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
949
949
  custom_name: string
950
950
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2075,7 +2075,7 @@
2075
2075
  [
2076
2076
  {
2077
2077
  "name": "request_id",
2078
- "type": "varint"
2078
+ "type": "zigzag32"
2079
2079
  },
2080
2080
  {
2081
2081
  "name": "actions",
@@ -2377,7 +2377,7 @@
2377
2377
  },
2378
2378
  {
2379
2379
  "name": "request_id",
2380
- "type": "varint"
2380
+ "type": "zigzag32"
2381
2381
  },
2382
2382
  {
2383
2383
  "anon": true,
@@ -2425,7 +2425,7 @@
2425
2425
  },
2426
2426
  {
2427
2427
  "name": "item_stack_id",
2428
- "type": "varint"
2428
+ "type": "zigzag32"
2429
2429
  },
2430
2430
  {
2431
2431
  "name": "custom_name",
@@ -787,7 +787,7 @@ StackRequestSlotInfo:
787
787
  ItemStackRequest:
788
788
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
789
789
  # specific request in the ItemStackResponse packet.
790
- request_id: varint
790
+ request_id: zigzag32
791
791
  actions: []varint
792
792
  type_id: u8 =>
793
793
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -938,7 +938,7 @@ ItemStackResponses: []varint
938
938
  1: error
939
939
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
940
940
  # will undo the actions from the request with this ID.
941
- request_id: varint
941
+ request_id: zigzag32
942
942
  _: status ?
943
943
  if ok:
944
944
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -959,7 +959,7 @@ ItemStackResponses: []varint
959
959
  # sent to the client.
960
960
  count: u8
961
961
  # StackNetworkID is the network ID of the new stack at a specific slot.
962
- item_stack_id: varint
962
+ item_stack_id: zigzag32
963
963
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
964
964
  custom_name: string
965
965
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2075,7 +2075,7 @@
2075
2075
  [
2076
2076
  {
2077
2077
  "name": "request_id",
2078
- "type": "varint"
2078
+ "type": "zigzag32"
2079
2079
  },
2080
2080
  {
2081
2081
  "name": "actions",
@@ -2377,7 +2377,7 @@
2377
2377
  },
2378
2378
  {
2379
2379
  "name": "request_id",
2380
- "type": "varint"
2380
+ "type": "zigzag32"
2381
2381
  },
2382
2382
  {
2383
2383
  "anon": true,
@@ -2425,7 +2425,7 @@
2425
2425
  },
2426
2426
  {
2427
2427
  "name": "item_stack_id",
2428
- "type": "varint"
2428
+ "type": "zigzag32"
2429
2429
  },
2430
2430
  {
2431
2431
  "name": "custom_name",
@@ -787,7 +787,7 @@ StackRequestSlotInfo:
787
787
  ItemStackRequest:
788
788
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
789
789
  # specific request in the ItemStackResponse packet.
790
- request_id: varint
790
+ request_id: zigzag32
791
791
  actions: []varint
792
792
  type_id: u8 =>
793
793
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -938,7 +938,7 @@ ItemStackResponses: []varint
938
938
  1: error
939
939
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
940
940
  # will undo the actions from the request with this ID.
941
- request_id: varint
941
+ request_id: zigzag32
942
942
  _: status ?
943
943
  if ok:
944
944
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -959,7 +959,7 @@ ItemStackResponses: []varint
959
959
  # sent to the client.
960
960
  count: u8
961
961
  # StackNetworkID is the network ID of the new stack at a specific slot.
962
- item_stack_id: varint
962
+ item_stack_id: zigzag32
963
963
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
964
964
  custom_name: string
965
965
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2075,7 +2075,7 @@
2075
2075
  [
2076
2076
  {
2077
2077
  "name": "request_id",
2078
- "type": "varint"
2078
+ "type": "zigzag32"
2079
2079
  },
2080
2080
  {
2081
2081
  "name": "actions",
@@ -2379,7 +2379,7 @@
2379
2379
  },
2380
2380
  {
2381
2381
  "name": "request_id",
2382
- "type": "varint"
2382
+ "type": "zigzag32"
2383
2383
  },
2384
2384
  {
2385
2385
  "anon": true,
@@ -2427,7 +2427,7 @@
2427
2427
  },
2428
2428
  {
2429
2429
  "name": "item_stack_id",
2430
- "type": "varint"
2430
+ "type": "zigzag32"
2431
2431
  },
2432
2432
  {
2433
2433
  "name": "custom_name",
@@ -791,7 +791,7 @@ StackRequestSlotInfo:
791
791
  ItemStackRequest:
792
792
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
793
793
  # specific request in the ItemStackResponse packet.
794
- request_id: varint
794
+ request_id: zigzag32
795
795
  actions: []varint
796
796
  type_id: u8 =>
797
797
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -946,7 +946,7 @@ ItemStackResponses: []varint
946
946
  1: error
947
947
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
948
948
  # will undo the actions from the request with this ID.
949
- request_id: varint
949
+ request_id: zigzag32
950
950
  _: status ?
951
951
  if ok:
952
952
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -967,7 +967,7 @@ ItemStackResponses: []varint
967
967
  # sent to the client.
968
968
  count: u8
969
969
  # StackNetworkID is the network ID of the new stack at a specific slot.
970
- item_stack_id: varint
970
+ item_stack_id: zigzag32
971
971
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
972
972
  custom_name: string
973
973
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2079,7 +2079,7 @@
2079
2079
  [
2080
2080
  {
2081
2081
  "name": "request_id",
2082
- "type": "varint"
2082
+ "type": "zigzag32"
2083
2083
  },
2084
2084
  {
2085
2085
  "name": "actions",
@@ -2383,7 +2383,7 @@
2383
2383
  },
2384
2384
  {
2385
2385
  "name": "request_id",
2386
- "type": "varint"
2386
+ "type": "zigzag32"
2387
2387
  },
2388
2388
  {
2389
2389
  "anon": true,
@@ -2431,7 +2431,7 @@
2431
2431
  },
2432
2432
  {
2433
2433
  "name": "item_stack_id",
2434
- "type": "varint"
2434
+ "type": "zigzag32"
2435
2435
  },
2436
2436
  {
2437
2437
  "name": "custom_name",
@@ -799,7 +799,7 @@ StackRequestSlotInfo:
799
799
  ItemStackRequest:
800
800
  # RequestID is a unique ID for the request. This ID is used by the server to send a response for this
801
801
  # specific request in the ItemStackResponse packet.
802
- request_id: varint
802
+ request_id: zigzag32
803
803
  actions: []varint
804
804
  type_id: u8 =>
805
805
  # TakeStackRequestAction is sent by the client to the server to take x amount of items from one slot in a
@@ -954,7 +954,7 @@ ItemStackResponses: []varint
954
954
  1: error
955
955
  # RequestID is the unique ID of the request that this response is in reaction to. If rejected, the client
956
956
  # will undo the actions from the request with this ID.
957
- request_id: varint
957
+ request_id: zigzag32
958
958
  _: status ?
959
959
  if ok:
960
960
  # ContainerInfo holds information on the containers that had their contents changed as a result of the
@@ -975,7 +975,7 @@ ItemStackResponses: []varint
975
975
  # sent to the client.
976
976
  count: u8
977
977
  # StackNetworkID is the network ID of the new stack at a specific slot.
978
- item_stack_id: varint
978
+ item_stack_id: zigzag32
979
979
  # CustomName is the custom name of the item stack. It is used in relation to text filtering.
980
980
  custom_name: string
981
981
  # DurabilityCorrection is the current durability of the item stack. This durability will be shown
@@ -2081,7 +2081,7 @@
2081
2081
  [
2082
2082
  {
2083
2083
  "name": "request_id",
2084
- "type": "varint"
2084
+ "type": "zigzag32"
2085
2085
  },
2086
2086
  {
2087
2087
  "name": "actions",
@@ -2385,7 +2385,7 @@
2385
2385
  },
2386
2386
  {
2387
2387
  "name": "request_id",
2388
- "type": "varint"
2388
+ "type": "zigzag32"
2389
2389
  },
2390
2390
  {
2391
2391
  "anon": true,
@@ -2433,7 +2433,7 @@
2433
2433
  },
2434
2434
  {
2435
2435
  "name": "item_stack_id",
2436
- "type": "varint"
2436
+ "type": "zigzag32"
2437
2437
  },
2438
2438
  {
2439
2439
  "name": "custom_name",