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

Loot tables from blocks don't pass entity conditions when referenced in other loot tables



    • Bug
    • Status: Reopened
    • Resolution: Unresolved
    • 1.16.2 Release Candidate 2
    • None
    • Windows 10
    • Unconfirmed
    • (Unassigned)


      Loot tables generated directly from containers (Chests) don't pass on the entity that generated them when they are referenced by another loot table.

      What I expected to happen was....

      The chest I opened to pass me as the entity for conditions, and generate accordingly

      What actually happened was....

      No entity was passed therefore no entity condition succeeded


      Steps to reproduce:

      1. Make a loot table with entity conditions
      2. Make another loot table that references it
      3. Run a command that sets a container with the second loot table (ex: "/setblock ~ ~ ~1 chest{LootTable:"spawners:enchanted_evoker_wand"}")
      4. Open the container
      5.  The loot generated will have missing properties (scores, selectors and other properties relying on the entity), but the referenced one works correctly


        1. 2020-08-11_09.18.17.png
          311 kB
          Afilom Alexandru Cătălin
        2. 2020-08-12_16.47.19.png
          470 kB
          Afilom Alexandru Cătălin
        3. 2020-08-12_16.47.37.png
          143 kB
          Afilom Alexandru Cătălin
        4. 2020-08-12_17.00.55.png
          179 kB
          Afilom Alexandru Cătălin
        5. Spawners.rar
          135 kB
          Afilom Alexandru Cătălin
        6. Untitled.png
          126 kB
          Afilom Alexandru Cătălin



            Unassigned Unassigned
            Cata75 Afilom Alexandru Cătălin
            3 Vote for this issue
            0 Start watching this issue