Mojira Archive
MC-186503

loot_table condition for player_generates_container_loot trigger is not optional

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

Unresolved

[Helper] Misode

2020-05-30, 12:59 PM

2024-10-03, 01:19 AM

14

6

Confirmed

Low

Platform

Advancements, Data Packs

20w22a - 24w40a20w22a, 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

-