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
Adds a system for declaring and getting default items for tags.
- The
libcdblock 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.getDefaultItemmethod for getting the default value of an item tag. - Loot tweakers can now use the
Entries.defaultedTagmethod to create a loot entry based on alibcd:defaulted_tagentry. - 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_existsandlibcd:block_tag_existsnow require the tag to have at least on entry to be considered existent. - Inside of obfuscation, the
TagHelperclass and itsTagHelper.ITEMimplementation provide access to default resources at any time.