Mojira Archive
MC-197679

Advancements can't detect end_crystal kill or injure

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"]
   ]
}

Duplicate

Scott Miller

2020-08-11, 07:36 AM

2021-01-04, 06:17 AM

2021-01-04, 06:12 AM

0

0

Unconfirmed

(Unassigned)

1.16.1, 1.16.4

-