-
Bug
-
Resolution: Duplicate
-
None
-
Minecraft 19w11b
-
Unconfirmed
-
Loot tables
An entity source of profile on loot tables isn't available in some cases without the loot table being triggered by a player breaking a block or using a loot command as an entity.
For example, a block's loot table can be triggered due to terrain explosion damage with its source being a tnt entity, creeper, wither skull, etc. However, those type of source profiles aren't available.
Example:
A replaced block's loot table...
{ "type": "minecraft:block", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:stone", "functions": [ { "function": "copy_nbt", "source": "this", "ops": [ { "source": "{}", "target": "EntitySourceProfile", "op": "replace" } ] } ] } ] } ] }
Triggered by a player either breaking this block or via a loot command as an entity will store the entire player's/entity's NBT data in the item being dropped under its NBT data inĀ "EntitySourceProfile".
The item dropped via this loot table triggered with terrain explosion damage won't apply any data to the item as those cases don't seem to be supported.
- duplicates
-
MC-153820 The entity_properties block loot table condition only works for players
- Resolved