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

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: 20w22a, 1.16 Pre-release 2, 1.16 Pre-release 3, 1.16.3
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Advancements, Data Packs
    • Mojang Priority:
      Low

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              CHK: