[Solved] Check source entity variable on entity death

Started by woodcraft on

Topic category: Help with Minecraft modding (Java Edition)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
[Solved] Check source entity variable on entity death
Sat, 10/30/2021 - 21:10 (edited)

So i'm using the entity dies event trigger and i want to check if the source entity (the player) has a specific variable but i can't seem to figure it out...

Can anyone help me with this?

Edited by woodcraft on Sat, 10/30/2021 - 21:10
Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I got around it using potion…
Sun, 03/28/2021 - 08:47

I got around it using potion effects but i mean wtf there has to be a better way

Joined Apr 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well it really depends on…
Mon, 03/29/2021 - 03:36

Well it really depends on what your trying to do. For example, are you trying to see if a LOGIC variable is true or false, or are you trying to see if a Number variable is at or above or below a certain number. I would need more context as to what your trying to accomplish.

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Let's say you are trying to…
Mon, 03/29/2021 - 07:40

Let's say you are trying to give the player 2 hearts when you kill a mob

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
When a variable is set to ex…
Mon, 03/29/2021 - 07:41

When a variable is set to ex true (player specific)

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Well now there is in the…
Mon, 08/16/2021 - 20:26

Well now there is in the newest snapshot you can now define what entity the variable is pointing to

Joined Jan 2020
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
With the addition of entity…
Sat, 10/30/2021 - 21:11

With the addition of entity variable blocks this is now solved