Uploaded image for project: 'Minecraft (Bedrock codebase)'
  1. Minecraft (Bedrock codebase)
  2. MCPE-180390

The loot tables of normal trial spawner and ominous trial spawner are not in parity with Java Edition

XMLWordPrintable

    • Confirmed
    • Multiple
    • 1219485

      Description:
      In Java Edition snapshot 24w13a, the loot ejected from trial spawners have been adjusted, and ominous trial spawner has unique reward. However, in Bedrock Edition, the loot ejected from trial spawners are still like Java Edition snapshot 24w12a, and ominous trial spawners eject a set of loot identical to normal trial spawners, which breaks parity with Java Edition.

      Steps to Reproduce:

      1. Go to trial chambers
      2. Search for several normal trial spawners and ominous trial spawners
      3. Defeat normal trial spawners and get rewards
      4. Defeat ominous trial spawners and get rewards
      5. Observe the rewards of normal trial spawners and ominous trial spawners

      Observed Results:
      Normal trial spawners use old rewards just like snapshot 24w12a, and the rewards of ominous trial spawner are the same as normal trail spawner.

      Expected Results:
      Normal trial spawner should use the new loot table and ominous trial spawner should use the unique loot table just like Java Edition.

      Code Analysis:
      The normal trial spawner and ominous trial spawner loot tables in Bedrock Edition from /behavior_packs/vanilla_1.21.0/loot_tables/spawners/ominous/trial_chamber/consumables.json and /behavior_packs/vanilla_1.21.0/loot_tables/spawners/ominous/trial_chamber/consumables.json (they are the same):

      {
        "pools": [
          {
            "rolls": 1,
            "entries": [
              {
                "type": "item",
                "name": "minecraft:emerald",
                "weight": 3,
                "functions": [
                  {
                    "function": "set_count",
                    "count": {
                      "min": 1,
                      "max": 6
                    }
                  }
                ]
              },
              {
                "type": "item",
                "name": "minecraft:golden_carrot",
                "weight": 1,
                "functions": [
                  {
                    "function": "set_count",
                    "count": {
                      "min": 1,
                      "max": 3
                    }
                  }
                ]
              },
              {
                "type": "item",
                "name": "minecraft:baked_potato",
                "weight": 3,
                "functions": [
                  {
                    "function": "set_count",
                    "count": {
                      "min": 1,
                      "max": 3
                    }
                  }
                ]
              },
              {
                "type": "item",
                "name": "minecraft:glow_berries",
                "weight": 3,
                "functions": [
                  {
                    "function": "set_count",
                    "count": {
                      "min": 2,
                      "max": 10
                    }
                  }
                ]
              },
              {
                "type": "item",
                "name": "minecraft:ender_pearl",
                "weight": 1,
                "functions": [
                  {
                    "function": "set_count",
                    "count": 1.0
                  }
                ]
              },
              {
                "type": "item",
                "name": "minecraft:potion",
                "weight": 1,
                "aux_val": 28,
                "functions": [
                  {
                    "function": "set_count",
                    "count": 1.0
                  },
                  {
                    "function": "set_data",
                    "data": 28
                  }
                ]
              },
              {
                "type": "item",
                "name": "minecraft:potion",
                "weight": 1,
                "aux_val": 31,
                "functions": [
                  {
                    "function": "set_count",
                    "count": 1.0
                  },
                  {
                    "function": "set_data",
                    "data": 31
                  }
                ]
              }
            ]
          }
        ]
      }
      

      The ominous trial spawner loot table in Java Edition from data/minecraft/datapacks/update_1_21/data/minecraft/loot_tables/spawners/ominous/trial_chamber/consumables.json:

      {
        "type": "minecraft:chest",
        "pools": [
          {
            "bonus_rolls": 0.0,
            "entries": [
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 2.0,
                      "min": 1.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:cooked_beef",
                "weight": 3
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 4.0,
                      "min": 2.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:baked_potato",
                "weight": 3
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 2.0,
                      "min": 1.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:golden_carrot",
                "weight": 2
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": 1.0,
                    "function": "minecraft:set_count"
                  },
                  {
                    "function": "minecraft:set_potion",
                    "id": "minecraft:regeneration"
                  }
                ],
                "name": "minecraft:potion"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": 1.0,
                    "function": "minecraft:set_count"
                  },
                  {
                    "function": "minecraft:set_potion",
                    "id": "minecraft:strength"
                  }
                ],
                "name": "minecraft:potion"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 4.0,
                      "min": 1.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:rotten_flesh"
              }
            ],
            "rolls": 1.0
          }
        ],
        "random_sequence": "minecraft:spawners/ominous/trial_chamber/consumables"
      }
      

      The normal trial spawner loot table in Java Edition from data/minecraft/datapacks/update_1_21/data/minecraft/loot_tables/spawners/trial_chamber/consumables.json:

      {
        "type": "minecraft:chest",
        "pools": [
          {
            "bonus_rolls": 0.0,
            "entries": [
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": 1.0,
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:cooked_chicken",
                "weight": 3
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 3.0,
                      "min": 1.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:bread",
                "weight": 3
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 3.0,
                      "min": 1.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:baked_potato",
                "weight": 2
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": 1.0,
                    "function": "minecraft:set_count"
                  },
                  {
                    "function": "minecraft:set_potion",
                    "id": "minecraft:regeneration"
                  }
                ],
                "name": "minecraft:potion"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": 1.0,
                    "function": "minecraft:set_count"
                  },
                  {
                    "function": "minecraft:set_potion",
                    "id": "minecraft:swiftness"
                  }
                ],
                "name": "minecraft:potion"
              },
              {
                "type": "minecraft:item",
                "functions": [
                  {
                    "add": false,
                    "count": {
                      "type": "minecraft:uniform",
                      "max": 4.0,
                      "min": 1.0
                    },
                    "function": "minecraft:set_count"
                  }
                ],
                "name": "minecraft:rotten_flesh"
              }
            ],
            "rolls": 1.0
          }
        ],
        "random_sequence": "minecraft:spawners/trial_chamber/consumables"
      }
      

      Notes:
      This issue doesn't affect key loot table. Ominous trial spawners can eject ominous trial keys.

            agoodday233 agoodday233
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: