This adds a few new features to the element options used by the lore, book, and banner merge adapter.
Additionally, the value property can have an array of values now to provide an easier way to include/exclude values.
Examples
Compact value inclusions
Something like this pre-update:
{
key: "customcrafting:display_lore",
lines: [
{
value = "<grey>Special Enchant III</grey>"
},
{
value = "<grey>Special Enchant IV</grey>"
},
{
value = "<grey>Special Enchant V</grey>"
}
]
}
This adds a few new features to the element options used by the lore, book, and banner merge adapter. Additionally, the
value
property can have an array of values now to provide an easier way to include/exclude values.Examples
Compact value inclusions
Something like this pre-update:
Can be changed to this:
Same for indices:
Can be changed to this:
Exclusion
Now it is possible to exclude specific values and indices from the ingredient lore/book/banner.
Excludes the first 3 lines/pages/patterns:
Excludes the lines/pages/patterns matching any of the values:
You may even combine both values and indices. Excludes the matching values in the first 3 lines/pages/patterns: