UUID from Entity and Entity Iterator is different??

Started by ImOd102 on

Topic category: Help with modding (Java Edition)

Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
UUID from Entity and Entity Iterator is different??

So basically I have this very advanced xp system and basically when an entity is attacked it stores the UUID of attacker and the damage dealt by storing multiple nbt tags. When the entity dies xp gets divided to the entities that did damage to it but I came across a problem when doing so. Basically when the entity dies I made it so it checks the UUID of every mob in the radius(thro the "for each entity as 'entity iterator' in square cube with size" block) and checks if the entity iterator's uuid matches the stored attacker's uuid. When running some experiments(killing mobs) it looks the UUID nbt tag stored does not match the entity iterator UUID(which is supposed to be my UUID as a user). Does anybody know why this is happening?? And how to fix? I can give more info and images if anybody can help.

P.S. I'm using a uuid plugin, here's the link: https://mcreator.net/plugin/72173/uuid-procedures

Last seen on 13:56, 19. Dec 2022
Joined Feb 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Another update, entity…
Thu, 08/04/2022 - 21:27

Another update, entity iterator changes every single time I kill the mob. I though it could be the mob's UUID, but I made sure it wouldn't check the mob's UUID and it's still changing.