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

Some advancements do not work when specifying NBT

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Duplicate
    • Affects Version/s: Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w14b, Minecraft 18w16a
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed

      Description

      some advancements trigger

      • minecraft:entity_hurt_player
      • minecraft:player_hurt_entity
      • minecraft:player_killed_entity

      do not work when I custom them

      example,

      {
          "display": {
              "title": "damage",
              "description": "",
              "icon": {
                  "item": "minecraft:writable_book"
              },
              "background": "minecraft:textures/blocks/log_spruce.png",
              "frame": "task",
              "show_toast":false,
              "announce_to_chat":false,
              "hiden":false
          },
          "criteria": {
              "damage": {
                  "trigger": "minecraft:player_hurt_entity",
                  "conditions": {
                 	  "entity": {
                 	    "nbt": "{Tags:[\"enemy\"]}"
                 	 }
                 }
              }
          },
          "rewards": {
              "function": "test:damageenemy"
          }
      }
      

      I cannot use nbt for conditions

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                harataku takumi harada
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: