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

loot_table condition for player_generates_container_loot trigger is not optional

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16.3, 1.18, 1.18.1, 1.19.4, 23w16a, 1.20 Pre-release 2, 1.20, 1.20.1, 23w32a, 1.21.1, 24w40a
    • None
    • Confirmed
    • Advancements, Data Packs
    • Low
    • Platform

      The bug

      The loot_table condition used by the player_generates_container_loot advancement trigger is required and non optional. This is inconsistent with other advancement conditions, which are all optional. It also means that you cannot detect when the player generates any loot.

      How to reproduce

      1. Create the following advancement in a data pack
        {
          "criteria": {
            "requirement": {
              "trigger": "minecraft:player_generates_container_loot"
            }
          }
        }
      2. Reload the game
        The advancement did not load and there is an error in the log
        Parsing error loading custom advancement test:gen_loot: Missing loot_table, expected to find a string

            Unassigned Unassigned
            Misoloo [Helper] Misode
            Votes:
            13 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              CHK: