-
Bug
-
Resolution: Unresolved
-
None
-
1.21
-
None
-
Confirmed
-
Commands, Data Packs, Enchantments
-
Normal
-
Platform
The explosion caused by the "explode" entity effect doesn't appear to correctly attribute the explosion to the player.
This means that mobs killed by the explosion don't drop xp or loot that is specific to player kills (i.e. spider eyes).
Steps to Reproduce:
- Add the attached data pack (mc-274503.zip) to your world to add the bugtest:explosive enchantment to bows. The definition for this enchantment is provided in explosive.json.
- Enchant a bow with the custom enchantment (using an enchanted book from the creative inventory)
- Fire the bow at a mob
- Have the explosion damage a hostile mob, iron golems, or the player
Observed Results:
Damage, and credit for any kills, from the explosion is attributed to the affected mob, so no XP is dropped. Passive Iron golems damaged by the explosion will attack the victim of the original attack, and not the player.
Expected Results:
The attribute_to_user field says that the explosion should be attributed to the user, in this case the player. Enemies damaged by the explosion should become hostile to the player, and XP should be dropped on kill.