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

`source_entity` doesn't function correctly as advancement trigger condition

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 17w13a
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Minecraft's internal Java version, Windows 7 x64

    • Confirmation Status:
      Unconfirmed

      Description

      If I set up an advancement with the following JSON data:

      {
          "display": {
              "icon": "minecraft:wool",
              "title": "Arrow damage test"
          },
          "parent": "minecraft:testing/root",
          "criteria": {
              "take_arrow_damage": {
                  "trigger": "minecraft:player_damaged",
                  "conditions": {
                      "damage": {
                          "source_entity": {
                              "type": "arrow"
                          }
                      }
                  }
              }
          }
      }
      

      The advancement doesn't seem to trigger, even after taking arrow damage. Changing this to `skeleton` also seems not to work, which makes me think either I'm missing the point or this might be broken.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                CalmBit Ethan Brooks
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: