The equipment_drops component always works on the attacker, even if the enchanted field is set to victim.
Steps to reproduce
Create an enchantment which sets
equipment_dropsvalue to 1 withenchantedfield set tovictimTest 1: Summon lots of mobs equipping items with the enchantment and kill the mobs with a normal weapon
Test 2: Summon lots of mobs equipping normal equipment and kill the mobs with a weapon with the enchantment
The enchantment file is attached. It supports #enchantable/vanishing items and works in any slots.
Expected behavior
All equipment drops in Test 1 since the enchantment should work on victims.
Observed behavior
All equipment drops in Test 2 when the enchantment is equipped by the attacker. ❌
How can I use this .json file you've attached to the bug report as step 1?
Does it need to be in a datapack? If so please upload a datapack containing this file and include the commands/steps needed to use it