Mojira Archive
MC-124432

Some advancements do not work when specifying NBT

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

Duplicate

takumi harada

2018-01-19, 05:22 PM

2018-05-02, 04:29 AM

2018-05-02, 04:27 AM

2

4

Confirmed

Minecraft 18w03b, Minecraft 18w05a, Minecraft 18w14b, Minecraft 18w16a

-