-
Bug
-
Resolution: Fixed
-
1.20.4, 24w06a, 1.21 Pre-Release 2
-
None
-
Community Consensus
-
Commands
-
Low
-
Platform
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.