Loot tables from blocks don't pass entity conditions when referenced in other loot tables
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:
- Make a loot table with entity conditions
- Make another loot table that references it
- Run a command that sets a container with the second loot table (ex: "/setblock ~ ~ ~1 chest{LootTable:"spawners:enchanted_evoker_wand"}")
- Open the container
- →
The loot generated will have missing properties (scores, selectors and other properties relying on the entity), but the referenced one works correctly
2020-08-11, 09:36 AM
2022-07-09, 03:10 PM
2022-07-09, 03:10 PM
3
1
condition, entity_properties, loot-table
-