Entity kills entity wont change variables anymore

Started by UndeadGmrDad on

Topic category: Help with Minecraft modding (Java Edition)

Joined Mar 2022
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Entity kills entity wont change variables anymore
Sun, 01/28/2024 - 00:55 (edited)

About a year ago, I published my mod. After taking a long break I have returned to work on it, but many things have changed on mcreator. One such thing is that I cannot get my tamed mobs to increase my player-persistent variables anymore. 

Previously I had a mob that when it kills another mob it would gain an experience point, which would be stored in my player-persistant variable. I achieved this by "IF source entity is tamed,  DO variable + 1 of source entities owner. It worked perfectly fine until recent updates. 

Can anyone tell me how to achieve this nowadays?

 

Update

I figured out a way around this issue, so this has been SOLVED. 

I stopped using the mobs "when entity kills another entity" trigger, and instead created a global trigger. When Entity dies, IF source entity = tamed AND source entity = my custom entity DO increase variable for null get owner of source entity if tamed + 1. 

Hopefully this can help anyone else having this same issue since the update.

Edited by UndeadGmrDad on Sun, 01/28/2024 - 00:55
Joined Nov 2019
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
It's nice you managed to fix…
Sun, 01/28/2024 - 20:40

It's nice you managed to fix this, good job!