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

Condition match_location does not work with piglin bartering

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 1.16.4, 20w51a
    • Confirmed
    • (Unassigned)

      Any match_location conditions will fail in bartering loot tables. This makes it very difficult to make biome-based piglin barter drops.

      I doubt it's intentional, probably just an oversight.

      Code Analysis

      Code analysis by tryashtar can be found in this comment.

        1. datapack_source.png
          datapack_source.png
          193 kB
        2. piglins_in_warped_forest.png
          piglins_in_warped_forest.png
          1.03 MB
        3. loot_command_in_warped_forest.png
          loot_command_in_warped_forest.png
          1.18 MB
        4. barter_test.zip
          2 kB

            Unassigned Unassigned
            redwolf10105 Ryan Matthew
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: