Started by
thatgirllinzi
on
Topic category: Troubleshooting, bugs, and solutions
2025.1 Still Broken! I am completely unable to read information about entity armor using the "for each slot of entity, get contents copy as itemstack iterator".
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 Sun, 04/13/2025 - 16:29
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?
Just bumping this so that hopefully a maintainer can take a look. This issue is still completely reproducable for me in 2024.4.
As of 2025.1 it's still broken, I am completely unable to read information about entity armor using the "for each slot of entity, get contents copy as itemstack iterator". Could somebody please take a look at this 🙏
I don't think armor is still accessible via this mechanism due to how neoforge restructured inventories