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
Cannot reproduce; this loot table works fine for me
[media]