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

XMLWordPrintable

    • 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
          2020-08-11_09.18.17.png
          311 kB
        2. 2020-08-12_16.47.19.png
          2020-08-12_16.47.19.png
          470 kB
        3. 2020-08-12_16.47.37.png
          2020-08-12_16.47.37.png
          143 kB
        4. 2020-08-12_17.00.55.png
          2020-08-12_17.00.55.png
          179 kB
        5. Spawners.rar
          135 kB
        6. Untitled.png
          Untitled.png
          126 kB

            Unassigned Unassigned
            jirauser365615 user-16d15 (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: