[Solved] Check source entity variable on entity death

Started by woodcraft on

Topic category: Help with Minecraft modding (Java Edition)

Active 1 month ago
Joined Jan 2020
Points:
1052

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 519
[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
Active 1 month ago
Joined Jan 2020
Points:
1052

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 519
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

Active 2 days ago
Joined Apr 2020
Points:
804

User statistics:

  • Modifications: 4
  • Forum topics: 15
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 101
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.

Active 1 month ago
Joined Jan 2020
Points:
1052

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 519
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

Active 1 month ago
Joined Jan 2020
Points:
1052

User statistics:

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

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

Active 1 month ago
Joined Jan 2020
Points:
1052

User statistics:

  • Modifications: 0
  • Forum topics: 29
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 519
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

Active 1 month ago
Joined Jan 2020
Points:
1052

User statistics:

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

With the addition of entity variable blocks this is now solved