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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 21w03a, 1.16.5
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Loot tables

      Description

      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
      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
                  }
                ]
              }
            ]
          }
        ]
      }
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Misoloo [Helper] Misode
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              CHK: