How to add data for a new version ?

October 26, 2024 ยท View on GitHub

For bedrock edition see bedrock.md

file nameauto?how to get itnotes
protocol.jsonNoFollow Pre-release ProtocolAlways double check by looking at the Minecraft source files.
blocks.jsonYesUse minecraft-data-generator-server
items.jsonYesUse minecraft-data-generator-server
entities.jsonYesUse minecraft-data-generator-server and run extractPcEntityMetadata.js script in tools/js to generate entity metadata in entities.json and protocol.json
recipes.jsonYesUse Burger, then use burger-extractorshould eventually be changed to native data generators
blockCollisionShapes.jsonYesUse minecraft-data-generator-server
commands.jsonNo?Use mc-data-command-generatorLink to jar files have to be manually added
biomes.jsonYesUse minecraft-data-generator-server
instrumentsYesUse minecraft-data-generator-server
materials.jsonYesUse minecraft-data-generator-server
windows.jsonNoLook at wiki.vg inventories
version.jsonNoLook at Protocol Versionswiki.vg protocol numbers
effects.jsonYesUse minecraft-data-generator-server
enchantments.jsonYesUse minecraft-data-generator-server
language.jsonYesUse minecraft-data-generator-server
particles.jsonYesUse minecraft-data-generator-server
blockLoot.jsonNoUse minecraft-jar-extractorExtractor can be very be tempermental at times
entityLoot.jsonNoUse minecraft-jar-extractorExtractor can be very be tempermental at times
mapIcons.jsonNoIcons data can be found in the Minecraft source directly. Alternatively you might be able to look up the icons from the following page on the Minecraft wiki or from wiki.vg.minecraft-data pr mapIcons
loginPacket.jsonYesRunning tests on node-minecraft-protocol
sounds.jsonYesUse minecraft-data-generator-serverMake sure to check the packets that use this and the friendlybytebuffer functions to check if an offset is needed in the generator code.
foods.jsonYesUse minecraft-data-generator-servermove file obtained with minecraft-data-generator-server to the correct location and run extractPcFoods.js script located in tools/js
  • All files that say Yes for auto can be gotten from minecraft-data-auto-updater (that uses minecraft-data-generator-server). This is the preferred way to extract the data.
  • Note, there is a script inside the tools/js folder that can be run with npm run version with usage of npm run version <bedrock|pc> {version} {protocol_version} to automatically copy over old data including the protocol in support for a new version and update entries in the dataPaths.json.

After generating and creating the new files for the version in its own directory, the version must be added to dataPaths.json in the data folder. Additionally in data/pc/common the versions.json file needs to be updated with the new version.

Protocol data

  • See [protocol.md] for information on the protocol and how to update the data