Data Tables

Data Tables

A lightweight mod for Fabric which adds data tables: data-driven key-value pairs which can be used by modders or data pack creators!

90 downloads
1 followers

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
  }
}

No gallery available for this project.