#Help trying to make an item with a random single enchant spawn in ANY chest

2 messages · Page 1 of 1 (latest)

river elm
#

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":".*"]))]
})

CurseForge

Enchanting Reworked.
849 Downloads | Mods

split schoonerBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!