sp614x / optifine

1.81k stars 418 forks source link

CIT - enchantment levels #2778

Open MastaNub opened 5 years ago

MastaNub commented 5 years ago

I don't know if I'm doing something wrong or if it's a bug or an unimplemented feature. I've been trying to change the texture of a diamond pickaxe only if it's enchanted with fortune 3 (other enchantments shouldn't affect it). type=item items=diamond_pickaxe texture=fortune.png enchantmentIDs=fortune enchantmentLevels=3 ezgif-4-55fa1a81d1a2 But for some reason if any enchantment on the pickaxe is level 3 and that pickaxe has fortune (any level) it changes texture.

XDGrangerDX commented 4 years ago

Thats because you enchantmentid and enchantmentlvls do not respect each other. Whats happening here is that it matches to your unbreaking 3 + fortune

See also: https://github.com/sp614x/optifine/issues/1318#issue-308350120