Started by
Kokorakonn
on
Topic category: Help with Minecraft modding (Java Edition)
I want the player to be given an item called blood, when he hits any mob with a sword tool called battle axe. I tried making a procedure in the "when mob is hit with tool" in the battle axe's creation, with no additional trigger, simply adding 1 blood to the player's invectory, but it doesn't work. Any help would be appreciated. Thanks in advance.
Side note, I think it might be a bug but I am not sure. My other guess is that I still need to set a trigger instead of leaving it to no additional trigger.
Use Source Entity in place of Target/Provided Entity
Basically you were giving blood to the entity you hit, not the entity using the tool
Source entity? Is that something I can find in the procedures list? I got confused. Could you please explain it a bit when you are able?
ok, I tried executing the command for @p and it works only for the battle axe, exactly what I wanted. Problem solved.