When making items that use weapon triggers to do things like give their targets status effects, they only work when the player is holding the item and don't work when mobs are holding the item.
Steps To Reproduce:
Download the attached
, put it in a behaviour pack and a load a world with it
Summon a husk and give them the test_item (no icon so will throw content log errors about that).
Run the command /effect @e resistance 9999 9 true
Hit the husk with the test item and observe that it will get wither for 5 seconds
Go into survival and allow the husk to hit you with the test item
You will not be given wither at all
Expected Behavior:
Weapon triggers work for items when mobs hold them
Actual Behavior:
Weapon triggers only work when players are holding the item
Attachments
Comments 0
No comments.