When a Ghast is killed by a player-deflected Ghast fireball in Minecraft, the expected behavior is that it should always drop a music disc regardless of whether the death was caused by:
1. Direct impact (fireball hits the Ghast directly), or
2. Explosion damage (fireball explodes near the Ghast).
However, currently, only direct kills drop the music disc, while explosion kills do not. This inconsistency contradicts the intended mechanic.
Steps to Reproduce:
1. Deflect a Ghast's fireball back toward it.
2. Observe the drop results in two scenarios:
Direct hit: Music disc drops (correct).
Explosion kill: No music disc drops (incorrect).
Expected Results:
Both direct and explosion kills should yield a music disc, as the player's action (deflecting the fireball) is the cause of death.
Additional Technical Context:
This issue stems from loot table conditions failing to properly handle explosive damage sources. Specifically, when loot table conditions are set as:
"conditions": [
{
"condition": "killed_by_entity",
"entity_type": "minecraft:player"
},
{
"condition": "damaged_by_entity",
"entity_type": "minecraft:fireball"
}
]
The explosion damage from fireballs fails to trigger loot drops. This same behavior affects other explosive-based mob deaths - for example, if similar conditions were applied to a Creeper's loot table, its explosion would also fail to drop loot. This suggests a systemic issue with how explosion damage interacts with loot table conditions.
The Music disc dropping was added in the 1.21.90.25 Preview (Changelog: https://feedback.minecraft.net/hc/en-us/articles/36568454460173) - does this issue reproduce in 1.21.90.25 or later?