Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-268518

Attribute generic.luck only affect players

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.20.4, 24w06a
    • 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.

       

            Unassigned Unassigned
            FlameTree FlameTree
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              CHK: