Started by
Ro...
on
Topic category: Help with Minecraft modding (Java Edition)
I create some kind of story system for my mod, there is a NPC named Raditz, when the player kill him, he should be able to pass to the next mission, This is how it is supposed to work: When Entity Is Killed
if RaditzKilled = False and Is Source Entity Player or Player MP
Set Raditz Killed to True.
it will set the variable to true for the entity, but not the Player, so how can i set to true but for the player?
You can do this using potion effects. Basically make a procedure that checks for entity deaths and then check if the source entity has a specific effect if true give the source entity a effect that on start sets the effected entities variable in question to something. (There has to be a better way to do this but it might be hard idk)
it would be possible if there were a When Player Kill Entity Trigger
There is a when entity dies procedure.