Towers of the Wild Modded

Towers of the Wild Modded

10M Downloads

Prevent illegal enchantments from appearing in TOTW chest

itcfangye opened this issue ยท 0 comments

commented

Old "treasure" field was removed and replaced by options. So if there's no restrictions to enchantments in loot tables, illegal enchantments from other mods (e.g I AM ERROR from DNT) will appear.

How to fix:

  1. Change
    "treasure": true
    to
    "options": "#minecraft:on_random_loot"
    This should be enough to limit enchantments to only those in random loot (i.e soul_speed, swift_sneak, wind_burst will NOT be included).

I don't know how to have the above three excluded treasure enchantments to appear as well (#minecraft:treasure contains these three enchantments, but does not contain #minecraft:non_treasure like #minecraft:on_random_loot does). Maybe you could define a tag to contain #minecraft:non_treasure and #minecraft:treasure and then use this tag?