Files
minecraft-data/README.md
T
09821c14cc Update proto.yml for Minecraft 1.21.6 (#1039)
* Update proto.yml for Minecraft 1.21.6

Add support for new dialog system and waypoint tracking features introduced in 1.21.6:

## New Features Added:
- Dialog system with interactive buttons and warning screens
- Waypoint tracking system with operations (track/untrack/update)
- Custom click actions for enhanced UI interactions
- Game mode change functionality

## New Packets:
### Client-bound (Server → Client):
- packet_show_dialog: Display interactive dialogs
- packet_clear_dialog: Dismiss current dialog
- packet_waypoint: Manage tracked waypoints

### Server-bound (Client → Server):
- packet_custom_click_action: Handle dialog interactions
- packet_change_game_mode: Request game mode changes

## New Types:
- Dialog, DialogButton, DialogButtonAction: Dialog system structures
- TrackedWaypoint, WaypointOperation: Waypoint system structures

All packets properly integrated into play state with correct packet IDs and mappings.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix packet ordering based on Java diff analysis

- Move SERVERBOUND_CHANGE_GAME_MODE between set_difficulty and message_acknowledgement
- Move CLIENTBOUND_WAYPOINT, CLIENTBOUND_CLEAR_DIALOG, CLIENTBOUND_SHOW_DIALOG after server_links
- Move SERVERBOUND_CUSTOM_CLICK_ACTION to end of serverbound packet list

This ensures packet IDs match Minecraft's protocol registration order from 1.21.6 source.

* Complete minecraft-data 1.21.6 update with protocol compilation

Add missing components for proper minecraft-data structure:

- data/pc/1.21.5/proto.yml: Copy of previous version proto.yml for 1.21.5
- data/pc/1.21.6/protocol.json: Compiled protocol from new 1.21.6 proto.yml

This follows the standard minecraft-data update workflow:
1. Preserve old version proto.yml in versioned directory
2. Update latest proto.yml with new version features
3. Compile protocol.json from updated proto.yml

Generated using tools/js/compileProtocol.js build process.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Fix dataPaths.json protocol paths for 1.21.6

Update 1.21.6 entry to point to correct protocol files:
- protocol: pc/1.21.5 → pc/1.21.6 (use new generated protocol.json)
- proto: pc/latest → pc/1.21.6 (use versioned proto.yml)

This ensures minecraft-data correctly resolves protocol definitions for 1.21.6
instead of falling back to 1.21.5 or latest versions.

Required for proper protocol loading and compatibility testing.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* Update dataPaths.json

* Update dataPaths.json

* 1.21.5 SlotComponent fixe

* 1.21.6 protocol updates

* update

* fix

* Update dataPaths.json for 1.21.6->5 entities

* Add entityActionUsesStringMapper feature for 1.21.6

This feature indicates when the entity_action packet uses string mappings
instead of numeric actionId values, which was introduced in Minecraft 1.21.6.

* fix tracked_waypoint

* 1.21.6 entity metadataKeys

* fix packet_teams duplicate field

* Fix declare_commands packet parsing for 1.21.6

Missing minecraft:resource in parser condition caused registry field
to be skipped, leading to buffer misalignment and parsing failures.

Added minecraft:resource back to the condition:
if minecraft:resource_or_tag or minecraft:resource_or_tag_key or minecraft:resource or minecraft:resource_key or minecraft:resource_selector

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

* add workflow dispatch to mcdata-generator

* fix readme updater

* apply packet_entity_action and packet_game_state_change changes to all pc versions

* Revert "apply packet_entity_action and packet_game_state_change changes to all pc versions"

This reverts commit af0800b6d4ef6d69f16394ae4310f379eb30dee6.

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: extremeheat <extreme@protonmail.ch>
2025-08-17 22:39:09 +02:00

155 lines
9.6 KiB
Markdown

# minecraft-data
[![Discord](https://img.shields.io/badge/chat-on%20discord-brightgreen.svg)](https://discord.gg/GsEFRM8)
[![Gitter](https://img.shields.io/badge/chat-on%20gitter-brightgreen.svg)](https://gitter.im/PrismarineJS/general)
[![Irc](https://img.shields.io/badge/chat-on%20irc-brightgreen.svg)](https://irc.gitter.im/)
[![Build Status](https://github.com/PrismarineJS/minecraft-data/workflows/CI/badge.svg)](https://github.com/PrismarineJS/minecraft-data/actions?query=workflow%3A%22CI%22)
Language independent module providing minecraft data for minecraft clients, servers and libraries.
Supports
* 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),
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 (1.18, 1.18.1, 1.18.2), 1.19 (1.19, 1.19.2, 1.19.3, 1.19.4), 1.20 (1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.20.5, 1.20.6), 1.21 (1.21, 1.21.1, 1.21.3)
<!--NEXT PC-->
* 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, 1.18.11, 1.18.30, 1.19.1, 1.19.10, 1.19.20, 1.19.21, 1.19.30, 1.19.40, 1.19.50, 1.19.60, 1.19.62, 1.19.63, 1.19.70, 1.19.80, 1.20.0, 1.20.10, 1.20.30, 1.20.40, 1.20.50, 1.20.61, 1.20.71, 1.20.80, 1.21.0, 1.21.2, 1.21.20, 1.21.30, 1.21.42, 1.21.50, 1.21.60, 1.21.70, 1.21.80, 1.21.90, 1.21.93, 1.21.100
<!--NEXT BEDROCK-->
## Wrappers
Minecraft-data is language independent, you can use it with these language specific modules :
| Wrapper name | Language | Data provided |
| --- | --- | --- |
| [node-minecraft-data](https://github.com/PrismarineJS/node-minecraft-data) | Node.js | everything |
| [python-minecraft-data](https://github.com/SpockBotMC/python-minecraft-data) | python | everything |
| [minebase](https://github.com/py-mine/minebase) | python | everything |
| [McData](https://github.com/McEx/McData) | Elixir | protocol |
| [ProtocolGen](https://github.com/Johni0702/ProtocolGen) | java | generated java files from protocol.json to read and write minecraft packets |
| [mcdata](https://github.com/wlwanpan/mcdata) | Go | everything |
| [minecraft-data-rs](https://github.com/Trivernis/minecraft-data-rs) | Rust | everything |
If you want to use minecraft-data in a new language, we advise you to [create a new wrapper](doc/make-a-new-wrapper.md)
## Data
Data provided:
| Data | Description |
| --- | --- |
| Biomes | |
| Blocks | |
| Enchantment | |
| Effect | Status/Potion effects |
| Entities | |
| Language | language code and their english strings |
| Instruments | sounds emitted by blocks |
| Items | |
| Map icons | Provides all available map icons as used by (crafted) maps |
| Materials | to be used with blocks data. Provides tool speed multipliers against material types. |
| Particles | Id and names of minecraft particles |
| Protocol | a complete description of the protocol, can be used to automatically implement the protocol, see [protodef doc](https://github.com/ProtoDef-io/ProtoDef) |
| Protocol Versions | the whole list of minecraft protocol versions |
| Recipes | to be used with blocks and items data |
| Windows | the different kind of windows and their characteristics |
| Version | |
| Versions | all the versions supported in minecraft-data |
| Block collision shapes | |
| Foods | list of foods each with there id, saturation, foodpoints and more |
| Commands | a tree structure for vanilla minecraft server commands, and some info needed to implement sub-parsers.
| Legacy | mappings between legacy (1.12) and post-flattening (1.13+) blocks and items ids
| Skin data | (bedrock edition) Skin geometry and texture data for steve skin
| Features | This can be used to check is a specific feature is available in the current Minecraft version. This is usually only required for handling version-specific functionality.
| Sounds | For versions that use a sound id over the network (1.9+) this provides mappings between network sound id and sound name.
See more information about this data in the [documentation](http://prismarinejs.github.io/minecraft-data/)
## Documentation
* See [doc/history.md](doc/history.md)
* [Documentation generated using the json schemas and docson](http://prismarinejs.github.io/minecraft-data)
* [Textual documentation of the recipe format](doc/recipes.md)
## Projects using minecraft-data
These are the projects that use minecraft-data:
| Project name | Language | Project type | Data used |
| --- | --- | --- | --- |
| [mineflayer](https://github.com/PrismarineJS/mineflayer) | Node.js | bot library | biomes, blocks, entities, instruments, items, materials, recipes |
| [node-minecraft-protocol](https://github.com/PrismarineJS/node-minecraft-protocol) | Node.js | protocol serialization | protocol |
| [flying-squid](https://github.com/PrismarineJS/flying-squid) | Node.js | server library | biomes, blocks, materials |
| [SpockBot](https://github.com/SpockBotMC/SpockBot) | Python | bot library | biomes, blocks, items, materials, windows, recipes |
| [PhaseBot](https://github.com/phase/PhaseBot) | Java | bot | blocks, items, materials |
| [McEx](https://github.com/hansihe/McEx) | Elixir | server | blocks |
| [VoxelGamesLib](https://github.com/MiniDigger/VoxelGamesLib) | Java | minigames server library | blocks, items |
| [Phpcraft](https://github.com/Phpcraft/core) | PHP | all-around library | blocks, items, entities, protocol |
| [MineSharp](https://github.com/psu-de/MineSharp) | C# | Bots | Protocol, Blocks, Items, Entities, Biomes, Recipes, Enchantments |
## Extraction
### Java Edition
The recommended way to extract the data is documented at [add-data-new-version.md](https://github.com/PrismarineJS/minecraft-data/blob/master/doc/add-data-new-version.md).
The [minecraft-data-auto-updater](https://github.com/PrismarineJS/minecraft-data-auto-updater) calls [minecraft-data-generator-server](https://github.com/PrismarineJS/minecraft-data-generator-server).
### Bedrock Edition
See [bedrock.md](./doc/bedrock.md) for information on updating data.
Specifically, [minecraft-data-auto-updater](https://github.com/PrismarineJS/minecraft-data-auto-updater) calls [minecraft-data-generator-server](https://github.com/PrismarineJS/minecraft-data-generator-server)
Projects that provide data:
| Project name | Language | Source | Data provided |
| --- | --- | --- | --- |
| [minecraft-wiki-extractor](https://github.com/PrismarineJS/minecraft-wiki-extractor) | Node.js | [minecraft wiki](https://minecraft.wiki) | blocks, items, entities, recipes |
| [mcdevs-wiki-extractor](https://github.com/PrismarineJS/mcdevs-wiki-extractor) | Node.js | [wiki.vg](http://wiki.vg/Protocol) | a partial protocol, entities |
| [node-minecraft-extractor](https://github.com/PrismarineJS/node-minecraft-extractor) | Node.js | merge between wiki.vg and mcwiki | a complete entities file |
| [minecraft-jar-extractor](https://github.com/PrismarineJS/minecraft-jar-extractor) | Node.js | minecraft server jar | a very partial but completely up to date protocol |
| [minecraft-jar-extractor in python](https://github.com/pangeacake/minecraft-jar-extractor) | Python | minecraft server jar | about the same protocol information as minecraft-jar-extractor in node.js |
| [burger](https://github.com/mcdevs/Burger) with [burger-extractor](https://github.com/PrismarineJS/burger-extractor) | Node.js | minecraft server jar | used to provide items, blocks, biomes and recipes |
| [burger 1.16](https://github.com/Pokechu22/Burger/tree/1.16-dev) | --//-- | --// -- | --//-- |
| [command-generator](https://github.com/Miro-Andrin/mc-data-command-generator) | Python | [Minecraft data generator](https://wiki.vg/Data_Generators) | Data used for parsing all vanilla server commands. |
| [minecraft-data-generator](https://github.com/Archengius/minecraft-data-generator) | Java | minecraft client | biomes, block collision shapes, blocks, effects, enchantments, entities, foods, items, particles, tints. Required Fabric updated to the provided minecraft version. |
Pages interesting to manually update the data if necessary:
| Page | Data |
| ---- | ---- |
| [wiki.vg Inventory page](http://wiki.vg/Inventory) | windows |
| [wiki.vg](http://wiki.vg/Block_Actions) | instruments |
| [a mineflayer PR](https://github.com/PrismarineJS/mineflayer/pull/197) | biomes |
| [mcwiki effects page](https://minecraft.wiki/w/Effect) | effects |
| [wiki.vg protocol version numbers](http://wiki.vg/Protocol_version_numbers) | protocolVersions |
## Data quality
Minecraft data provides scripts to audit the data, they can be useful to check the data is correct :
* [audit_blocks](tools/js/test/audit_blocks.js)
* [audit_items](tools/js/test/audit_items.js)
* [audit_recipes](tools/js/test/audit_recipes.js)
* [audit_shapes](tools/js/test/audit_shapes.js)
Minecraft data also provides json schemas in enums_schemas/ that are used in
test/test.js to check the json file are valid relative to these schemas.
These schemas can also be used to understand better how the json files are
formatted in order to use it.
## Contribute
Please read https://github.com/PrismarineJS/prismarine-contribute
## License
MIT
Some of the data was extracted manually or automatically from wiki.vg and minecraft.gamepedia.com.
If required by one of the sources the license might change to something more appropriate.
## Related project
[minecraft-assets](https://github.com/rom1504/minecraft-assets) which provide minecraft assets along with json files that help to use them.