Source#

Source definitions are used to specify the data to be used in a rule. You can either define the data directly or reference a path in the current json file.

Tip

Using reference allows you to supply a loot table that is valid when weld isn't used and reuse the same data for when weld is used.

Using value allows you to customize behavior if and only if weld is used.

type "reference" | "value" - The type of source definition to apply. A weld: can be prefixed on the rule type.

value#

value Any - The data that will be used as the source for rule application.

reference#

path str - A specifed path to a field within the current json file. The data at this path will be used as the source for rule application.

Note

Reference sources are converted to value sources as apart of a pre-processing step before pack merging is computed.