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

The advancement "Two by Two" is no longer obtainable due to the change to sniffer's breeding

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 23w13a
    • 23w12a
    • None
    • Confirmed
    • Advancements
    • Very Important
    • Expansion B

      Breeding sniffers now drops a sniffer egg instead of spawning a snifflet, but the advancement "Two by Two" still requires the snifflet's immediate spawning, causing it unobtainable.

      In husbandry/bred_all_animals.json, the criterion is as follows:

      ...
          "minecraft:sniffer": {
            "conditions": {
              "child": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "type": "minecraft:sniffer"
                  }
                }
              ]
            },
            "trigger": "minecraft:bred_animals"
          }, 
      ...

      This should be fixed as: 

      ...
          "minecraft:sniffer": {
            "conditions": {
              "parent": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "type": "minecraft:sniffer"
                  }
                }
              ],
              "partner": [
                {
                  "condition": "minecraft:entity_properties",
                  "entity": "this",
                  "predicate": {
                    "type": "minecraft:sniffer"
                  }
                }
              ]
            },
            "trigger": "minecraft:bred_animals"
          },
      ... 

       

            hawkan [Mojang] hawkan
            gra_yen gra_yen
            Votes:
            8 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: