Started by
woodcraft
on
Topic category: Help with Minecraft modding (Java Edition)
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
I got around it using potion effects but i mean wtf there has to be a better way
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.
Let's say you are trying to give the player 2 hearts when you kill a mob
When a variable is set to ex true (player specific)
Well now there is in the newest snapshot you can now define what entity the variable is pointing to
With the addition of entity variable blocks this is now solved