mojira.dev
MC-274394

"quality" can't work on blocks

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.

Linked issues

Attachments

Comments 2

Please update the description to include steps to reproduce this issue, as well as expected VS observed results.

Please also attach any needed commands, datapacks, resourcepacks, screenshots, videos or worlds needed to help reproduce this issue.

fffngzzh

(Unassigned)

Unconfirmed

(Unassigned)

1.21

Retrieved