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

Loot table tag entry with "expand": true does not apply functions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 21w03a, 1.16.5, 1.18, 1.19.2, 24w33a, 1.21.1
    • None
    • Confirmed
    • Loot tables

      The bug

      When a loot entry uses the tag type and has expand set to true, any functions on that loot entry won't be applied to the item.

      How to reproduce

      1. Add the loot table shown below to a data pack or download the attached data pack MC-212671.zip.
      2. Use the /loot command to give yourself the loot table
      3. Notice that you only get one item, when you expect to get a full stack.

      Example loot table

      {
        "pools": [
          {
            "rolls": 1,
            "entries": [
              {
                "type": "minecraft:tag",
                "name": "minecraft:logs",
                "expand": true,
                "functions": [
                  {
                    "function": "minecraft:set_count",
                    "count": 64
                  }
                ]
              }
            ]
          }
        ]
      }
      

            boq [Mojang] Bartosz Bok
            Misoloo [Helper] Misode
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: