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

Details

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

    Description

      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

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated: