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

Some advancements do not work when specifying NBT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w14b, Minecraft 18w16a
    • None
    • Confirmed

      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

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

              Created:
              Updated:
              Resolved:
              CHK: