LibCapableData (LibCD)

Improved data processing for Fabric and 1.14

File Details

2.4.0+1.15.2

  • R
  • Apr 24, 2020
  • 262.01 KB
  • 5.6K
  • 1.15.2+3
  • Fabric

File Name

libcd-2.4.0+1.15.2.jar

Supported Versions

  • 1.15-Snapshot
  • 1.15.2
  • 1.15.1
  • 1.15

Curse Maven Snippet

Fabric

modImplementation "curse.maven:libcd-323710:2938909"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Adds a system for declaring and getting default items for tags.

  • The libcd block of a tag JSON can now take a "default" field with an item ID, specifying the default item for that tag. If no tag JSONs for a given tag ID define a default, then the default will be selected based on namespace preference defined in the config.
  • Recipe JSON "result" fields can have a "tag" field instead of an "item" field to use the default value of that tag for item output.
  • Loot tables can use a "libcd:defaulted_tag" entry to drop the default value of that tag for item output.
  • Recipe tweakers can use a # at the beginning of an output string to get the default value of an item tag for item output.
  • Tweakers can alternatively use the TweakerUtils.getDefaultItem method for getting the default value of an item tag.
  • Loot tweakers can now use the Entries.defaultedTag method to create a loot entry based on a libcd:defaulted_tag entry.
  • Cooking and cutting recipe JSONs can now take an object for their respective "result" fields along with the standard string value, allowing them to use default items and NBT in outputs.
  • The conditions libcd:item_tag_exists and libcd:block_tag_exists now require the tag to have at least on entry to be considered existent.
  • Inside of obfuscation, the TagHelper class and its TagHelper.ITEM implementation provide access to default resources at any time.