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

adding nbt data to advancement json causes failure of advancement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.12.2
    • None
    • Unconfirmed

      I am attempting to create an advancement where the player is rewarded for taming a wolf named wolfie.  The following advancement appears in game, and will register the taming of the wolf, no matter what its named (or even if its unnamed).

          
      {
      "display": {        
      "icon": {           
      "item": "minecraft:stone",           
      "data": 0        },        
      "title": "tamewolf",       
      "frame": "task",        
      "description": "called wolfie",        
      "show_toast": true,        
      "announce_to_chat": true,        
      "hidden": false    },   
      
      "criteria":{       
      "tamewolf": {            
      "trigger": "minecraft:tame_animal",            
      "conditions": {                
      "entity": {                    
      "type": "minecraft:wolf"                 
      }           
      }       
      }    
      },    
      "requirements": [        
      [ 
                 "tamewolf"        
      ]   
       ],    
      "parent": "wolves:root"
      

      BUT adding the nbt to make sure the wolf being tamed is called wolfie causes the advancement NOT to show up in game.

      {    
      "display": {        
      "icon": {           
      "item": "minecraft:stone",           
      "data": 0        },        
      "title": "tamewolf",       
      "frame": "task",        
      "description": "called wolfie",        
      "show_toast": true,        
      "announce_to_chat": true,        
      "hidden": false    },   
      
      "criteria":{       
      "tamewolf": {            
      "trigger": "minecraft:tame_animal",            
      "conditions": {                
      "entity": {                    
      "type": "minecraft:wolf"        
      "nbt": "CustomName":"wolfie"       
      }           
      }       
      }    
      },    
      "requirements": [        
      [ 
                 "tamewolf"        
      ]   
       ],    
      "parent": "wolves:root"
      

            Unassigned Unassigned
            GentlemanGnu GentleMan Gnu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: