mojira.dev
MC-270928

all item components from the loot table are removed if max_stack_size is used

all item components from the loot table are removed if max_stack_size is used.

{
  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
          "type": "minecraft:item",
          "name": "minecraft:stone",
          "functions": [
            {
              "function": "minecraft:set_components",
              "components": {
                "minecraft:custom_model_data": 1,
                "minecraft:max_stack_size": 1
              }
            }
          ]
        }
      ]
    }
  ]
}

If you remove max_stack_size then in my case custom_model_data and other components will be applied

Attachments

Comments 1

Cannot reproduce; this loot table works fine for me

[media]

mixquartz

(Unassigned)

Unconfirmed

(Unassigned)

1.20.5 Release Candidate 2

Retrieved