Attribute "minecraft:generic.luck" only affect players, it should be renamed and replace "generic" with "player".
Steps to Reproduce:
1. Use a json file in datapack to modify the loot table of chicken.
{
"type":"minecraft:entity",
"pools":[
{
"rolls":1,
"bonus_rolls":63,
"entries":[
{
"type":"minecraft:item",
"name":"minecraft:feather"
}
]
}
]
}
2. Run command /reload to reload this datapack.
3. Kill a chicken, it will drop 1 feather. Use splash luck potion on myself then kill a chicken, it will drop 1+63=64 feather.
4. Summon an ocelot and use splash luck potion on it, then let it kill a chicken, the chicken will drop 1 feather.
5. It means luck is not a generic attribute, it can only affect players, cannot affect mobs.
What I expected to happen was...:
Rename attribute "minecraft:generic.luck", replace "generic" with "player", OR make luck attribute can affect mobs.
Linked issues
relates to 3
Attachments
Comments
Ok, the datapack "Test.zip" only have 1 json file, which used to modify chicken's loot table. Always drop 1 feather at normal situation or drop 64 feather at luck applied.

Relates to [MC-267422].
Seeing how the fix for that report was to rename the attribute, I can confirm this issue. However, requesting to make it affect mobs as well is a feature request which is why I suggest to remove that part in the description.
Cannot reproduce this in 24w33a, the 'generic.' and 'player.' prefixes were removed. Refer to the changelog:
Quote: "Attribute IDs no longer have generic., player. and zombie. prefixes"
Please attach a minimal setup datapack to reproduce this.