mojira.dev
MC-93178

Loot table function "enchant randomly" doesn't require "treasure": true for treasure enchantments

Loot table function "enchant randomly" doesn't require "treasure": true for treasure enchantments

When looting table has

"function": "enchant_randomly"
"function": "enchant_randomly"

WITHOUT

"treasure": true
"treasure": true

it can still choose treasure enchantments like mending and frost walker.

The fix for this requires changes in behaviour (adding checks for "treasure" in loot tables) and changes in loot tables of chests (adding "treasure": true).

Probably "enchant_randomly" doesn't respect "treasure": false but I haven't checked it yet.

Linked issues

Comments 3

Is this still an issue in the most recent versions (currently that is 1.10.2, or 16w42a) of Minecraft? If so, please update the affected versions and help us keeping this ticket updated from time to time.

Time to check old bugs. Reopen. 18w21b affected.

"treasure" is a parameter of the "enchant_with_levels" function, not the "enchant_randomly" function. If you are suggesting that it be added to the "enchant_randomly" function as well, then this is a feature request, not a bug.

Irbis

(Unassigned)

Plausible

Loot tables

Minecraft 15w47c, Minecraft 1.12.2, Minecraft 18w21b, Minecraft 1.13-pre2, Minecraft 18w32a, Minecraft 1.13.1-pre1, Minecraft 19w13a, 1.15 Pre-release 4, 20w06a

Retrieved