been trying to get a mods items to spawn in any chest not just the one the jar file has it set too and cant seem to get it right, if anyone could help that would be amazing.
the mod is: https://www.curseforge.com/minecraft/mc-mods/immersive-enchanting
the code we currently have( and have tried a lot more) is:
LootJS.modifiers(event => {
// Or we can also use a regex
event
.addTableModifier(LootType.CHEST)
.addLoot[("immersiveenchanting:ancient_book"(["immersiveenchanting:enchantmenttype":".*"]))]
})