Fuzss / universalenchants

Better enchantments! Use them on all tools and weapons. Infinity crossbow, or looting trident anyone?
https://www.curseforge.com/minecraft/mc-mods/universal-enchants-forge
Mozilla Public License 2.0
3 stars 3 forks source link

[Bug]: some modded enchants aren't properly restricted when specifying allowed items in the config files. #33

Open acolonyofrabbits opened 1 year ago

acolonyofrabbits commented 1 year ago

Mod Loader (Required)

Forge

Minecraft Version (Required)

1.19.2

Mod Version (Required)

4.2.9

Notes (Required)

this code makes it so the armoring enchant cannot be added to any items (using anvil or commands) except for minecolonies plate armor boots.

{ "id": "more_enchantments:agility", "items": [ "minecolonies:plate_armor_boots" ], "incompatible": [ "majruszsenchantments:incompatibility_curse" ] }

however, when I tried it for this enchant, it didn't work. the enchant can be added to many different weapons.

{ "id": "more_enchantments:furor", "items": [ "minecolonies:chiefsword" ], "incompatible": [ "majruszsenchantments:incompatibility_curse" ] }

if I add another enchant to the incompatibility list, it does properly make them exclusive (but it can still be applied to all of the various weapons).

this problem also occurs with a couple of the pickaxe enchants from that mod, but I haven't seen this problem with other enchants from other mods.

latest.log (Optional)

No response

Fuzss commented 1 year ago

This sound like something is going wrong when reading "minecolonies:chiefsword", so the items list stays empty. When that's the case vanilla behavior will be applied for the more_enchantments:furor enchantment and Universal Enchants does nothing.

You can check your latest.log, it will tell you if reading the file failed.