Compatibility
Minecraft: Java Edition
1.21.7–1.21.8
Platforms
Supported environments
Links
Creators
Details
Licensed MIT
Published last week
Updated 2 weeks ago
Data Tables
Adds a new data pack resource known as data tables, which allow you to map identifiers (like item, block, or entity type IDs) to different integer values. These data tables are accessible to both modders and data pack creators who can use them to implement a wide variety of data-driven features.
Features
- Server-side, with optional syncing to client if the client also has the mod
- Supports tags, not just individual IDs!
- Refreshes on
/reload
like other data pack resources - Supports modded items
- Query data tables using the
/table
command, or a simple API for modders! - Supports datagen! No need for modders to write data tables by hand.
See the README for more info!
Example Data Table
Data tables are extremely simple to write and use.
{
"type": "block",
"default": 0,
"entries": {
"#my_data_pack:gem_blocks": 3,
"minecraft:emerald_block": 5,
"minecraft:diamond_block": 5,
"minecraft:diamond_ore": 4
}
}