Unable to read entity inventory in 2024.3

Started by thatgirllinzi on

Topic category: Troubleshooting, bugs, and solutions

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Unable to read entity inventory in 2024.3
Wed, 10/09/2024 - 21:54 (edited)

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
Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Update: I've trimmed down…
Wed, 10/09/2024 - 16:00

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)

Joined Aug 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
What about the golden horse…
Mon, 10/14/2024 - 12:39

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?