-
Bug
-
Resolution: Duplicate
-
None
-
1.16.1, 1.16.4
-
None
-
Java update 261 build 12
-
Unconfirmed
-
(Unassigned)
I wanted to detect when a player injures/kills an end crystal to trigger a message via an invisible advancement reward mcfunction. It turns out... injuring (or killing, I tried both) an end_crystal does not trigger the advancement. The advancement, as written, if you substitute sheep for end_crystal, does detect injury (or killing) of sheep, so the bug appears specific to the end_crystal entity type.
[edit to fix quote to code]
{
"display": {
"title": {
"text": "Destroy End Crystal"
},
"description": {
"text": "Destroy End Crystal"
},
"icon": {
"item": "minecraft:end_crystal"
},
"frame": "task",
"show_toast": true,
"announce_to_chat": true,
"hidden": false,
"background": "minecraft:textures/gui/advancements/backgrounds/stone.png"
},
"criteria": {
"injure_crystal": {
"trigger": "minecraft:player_hurt_entity",
"conditions": {
"entity": {
"type": "minecraft:end_crystal"
}
}
}
},
"requirements": [
["injure_crystal"]
]
}
- duplicates
-
MC-117824 Advancement trigger player_hurt_entity is only triggered for mobs
- Open