If you want this to be on a custom projectile, then use my exact code except the check for arrow damage type, and place it in the "when hits living entity" custom trigger that thatperson_ is showing. I would say to use the player one, but if a player is using this, then the trigger will also effect them too when they shoot it, so it's better to just check for a player in the living entity trigger.
Oh that is because of the amount dependency, I added that in order to scale xp with the damage done, but you can remove that and just have it take and give 5 xp.
Are you trying this on another player? If not you can set the [target entity sub type] to something other than "Player" or just remove it.
And if you are using this on the projectile trigger, you can also remove the top "entity is attacked" trigger if you still have it as you are using the projectile to trigger it instead.
https://imgur.com/a/bF4Yow3
Thanks, but this does not work with my special arrow type
use this projectile trigger instead of a global one https://imgur.com/a/a4u16e9
I tried; it doesnt allow for the use of the "Provided Damage Source" dependency
try just removing 5 xp
Sorry, I read that wrong. Just remove that part.
I tried then it doesnt work
maybe try what I mistakenly said last time and make it just remove 5 xp
If you want this to be on a custom projectile, then use my exact code except the check for arrow damage type, and place it in the "when hits living entity" custom trigger that thatperson_ is showing. I would say to use the player one, but if a player is using this, then the trigger will also effect them too when they shoot it, so it's better to just check for a player in the living entity trigger.
I tried to do that but it wont let me add it to the when hits living entities because of "missing dependancies"
Oh that is because of the amount dependency, I added that in order to scale xp with the damage done, but you can remove that and just have it take and give 5 xp.
I tried it just doesnt work
Are you trying this on another player? If not you can set the [target entity sub type] to something other than "Player" or just remove it.
And if you are using this on the projectile trigger, you can also remove the top "entity is attacked" trigger if you still have it as you are using the projectile to trigger it instead.
That's an awesome concept "vampire" arrows they just suck the XP from the victim and give it to the shooter.