-
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
- Add the loot table shown below to a data pack or download the attached data pack MC-212671.zip
. - Use the /loot command to give yourself the loot table
- 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
}
]
}
]
}
]
}
- is duplicated by
-
MC-276273 Functions do not work with expanded item tags in loot tables
- Resolved