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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 15w47c, Minecraft 1.12.2, Minecraft 18w21b, Minecraft 1.13-pre2, Minecraft 18w32a, Minecraft 1.13.1-pre1
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Plausible

      Description

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

      When looting table has

      "function": "enchant_randomly"

      WITHOUT

      "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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Toboe_Irbis MichaƂ
              • Votes:
                3 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: