Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-197679

Advancements can't detect end_crystal kill or injure

XMLWordPrintable

    • Icon: Bug 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"]
         ]
      }

            Unassigned Unassigned
            Gatinh0 Scott Miller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: