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

"quality" can't work on blocks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.21
    • None
    • Window11
    • Unconfirmed
    • (Unassigned)

      Using the datapack to turn a block's loot_table into this one:

      {    "type":"minecraft:chest",    "pools":[        {            "bonus_rolls": 0.0,            "rolls":1.0,            "entries":[                {                    "type":"minecraft:item",                    "name":"minecraft:dirt",                    "weight":0,                    "quality":-100                },{                    "type":"minecraft:item",                    "name":"minecraft:diamond",                    "weight":0,                    "quality":100                },{                    "type":"minecraft:item",                    "name":"minecraft:iron_ingot",                    "weight":1                }            ]        }    ]}

      Within expectations,when player's "generic_luck" attribute change,the block will drop dirt or diamond in a high probability.But it always drops iron ingot.

       

      This loot_table can work correctly on entities,chests and so on.

       

      Barter,gifts,spawners have the same problem.

            Unassigned Unassigned
            fffngzzh fffngzzh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: