Started by
thatgirllinzi
on
Topic category: Troubleshooting, bugs, and solutions
Hi, this code worked in an older build of Mcreator for Minecraft 1.20, but in the current version the itemstack iterator doesn't ever recognize this horse armor enchantment.
I have already double checked that the enchantments were correctly applied to the armor, the tooltip confirms my custom enchantment is active.
The itemstack iterator check just seems to never return true, even when an item with the custom Pegasus enchantment is inserted into the horse's inventory.
Edited by thatgirllinzi on Wed, 10/09/2024 - 21:54
Update: I've trimmed down the code to just this broken part.
Regardless of what is in the horse's armor slot, their inventory only recognizes the AIR and SADDLE. (I converted the itemstacks to text and sent them in chat)
Your horse only has air and saddle in its inventory so this looks correct to me
What about the golden horse armor? In previous versions an inventory check would also trigger for armor. Is there a different way to detect the horse's amor?