Hello everyone,
I wonder if it is possible to reference configuration values from an OptionsHolder inside JSON files.
Let's assume, that I create a configuration OptionsHolder according to this topic:
In some of the loot tables of my mod I use float values for drop chances of specific items:
{
"type": "minecraft:item",
"name": "mymod:gold_ore_fragment",
"conditions": [
{ "condition": "minecraft:match_tool", "predicate": { "items": [ "mymod:iron_hammer" ] } },
{ "condition": "minecraft:table_bonus", "enchantment": "minecraft:fortune", "chances": [ 0.10, 0.15, 0.20, 0.25 ] }
]
}
I wanted to make the drop chance values (here 0.10, 0.15, 0.20 and 0.25) adjustable using a configuration file. Is there any possibility to do this?
Thank you!