That makes a lot of sense, but for some reason my code keeps throwing NullPointerExceptions. This is my locked_tomes.json, which is referenced in my global_loot_modifiers.json.
{
"type": "bden:locked_tomes",
"bookItem": "bden:locked_tome",
"numBooks": 1,
"pools": [
{
"conditions": [
{
"condition": "random_chance",
"chance": 1
}
],
"rolls": 1,
"entries": [
{
"type": "item",
"name": "bden:locked_tome",
"weight": 100
}
]
}
]
}
Im assuming the conditions here aren't enough? Do you know why it would be throwing a NullPointerException at this lootModifiers line?
ILootCondition[] lootConditions = GSON_INSTANCE.fromJson(object.get("conditions"), ILootCondition[].class);