Cannot use NBT to set loot table for decorated pot
What actually happened was...:
When I entered:
/setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"}
The block set, but nothing in the pot.
(But /loot worked successfully.)
What I expected to happen was...:
There was a emerald in the pot.
Steps to Reproduce:
- Loot table:
{ "type": "minecraft:chest", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:emerald" } ] } ] } /setblock ~ ~ ~ minecraft:decorated_pot {LootTable:"pot:emerald"}The block set, but nothing in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{}/loot replace block ~ ~ ~ container.0 loot pot:emerald
The block set, and an emerald in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{item:{Count:1b,id:"minecraft:emerald"}}
Linked Issues
Created Issue:
Cannot use nbt to set loot table for decorated pot.
Cannot use nbt to set loot table for decorated pot.
What I expected to happen was...:
When I entered:/setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"},
The block set, but nothing in the pot.
What actually happened was...:
There was a emerald in the pot,
(But /loot worked successfully.)
Steps to Reproduce:
{ "type": "minecraft:item", "name": "minecraft:emerald" }
1. Loot table:
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 1,
"entries": [
]
}
]
}2. /setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"}
The block set, but nothing in the pot
Block data:
minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{}
3. /loot replace block ~ ~ ~ container.0 loot pot:emerald
The block set, and an emerald in the pot
Block data:
minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{item:
{Count:1b,id:"minecraft:emerald"}}
Environment
Win 10
is duplicated by
Cannot use nbt to set loot table for decorated pot.
What I expected to happen was...:
When I entered:/setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"},
The block set, but nothing in the pot.
What actually happened was...:
There was a emerald in the pot,
(But /loot worked successfully.)
{ "type": "minecraft:item", "name": "minecraft:emerald" }
Steps to Reproduce:
1. Loot table:
{
"type": "minecraft:chest",
"pools": [
{
"rolls": 1,
"entries": [
]
}
]
}2. /setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"}
The block set, but nothing in the pot
Block data:
minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{}
3. /loot replace block ~ ~ ~ container.0 loot pot:emerald
The block set, and an emerald in the pot
Block data:
minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{item:
{Count:1b,id:"minecraft:emerald"}}
What actually happened was...:
When I entered:/setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"}The block set, but nothing in the pot.
(But /loot worked successfully.)
What I expected to happen was...:
There was a emerald in the pot.Steps to Reproduce:
- Loot table:
{ "type": "minecraft:chest", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:emerald" } ] } ] }/setblock ~ ~ ~ minecraft:decorated_pot {LootTable:"pot:emerald"}The block set, but nothing in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{} /loot replace block ~ ~ ~ container.0 loot pot:emeraldThe block set, and an emerald in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{item:{Count:1b,id:"minecraft:emerald"}}
Win 10
Cannot usenbtto set loot table for decorated pot.Cannot use NBT to set loot table for decorated pot
What actually happened was...:
When I entered:/setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"}The block set, but nothing in the pot.
(But /loot worked successfully.)
What I expected to happen was...:
There was a emerald in the pot.Steps to Reproduce:
- Loot table:
{ "type": "minecraft:chest", "pools": [ { "rolls": 1, "entries": [{"type": "minecraft:item","name": "minecraft:emerald"}] } ] }/setblock ~ ~ ~ minecraft:decorated_pot {LootTable:"pot:emerald"}The block set, but nothing in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{} /loot replace block ~ ~ ~ container.0 loot pot:emeraldThe block set, and an emerald in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{item:{Count:1b,id:"minecraft:emerald"}}What actually happened was...:
When I entered:/setblock ~ ~ ~ minecraft:decorated_pot{LootTable:"pot:emerald"}The block set, but nothing in the pot.
(But /loot worked successfully.)
What I expected to happen was...:
There was a emerald in the pot.Steps to Reproduce:
- Loot table:
{ "type": "minecraft:chest", "pools": [ { "rolls": 1, "entries": [ { "type": "minecraft:item", "name": "minecraft:emerald" } ] } ] }/setblock ~ ~ ~ minecraft:decorated_pot {LootTable:"pot:emerald"}The block set, but nothing in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{} /loot replace block ~ ~ ~ container.0 loot pot:emeraldThe block set, and an emerald in the pot.
Block data:minecraft:decorated_pot[cracked=false,facing=north,waterlogged=false]{item:{Count:1b,id:"minecraft:emerald"}}
Decorated pots do not have the LootTable and LootTableSeed fields, what /loot ... loot does is evaluate the loot table and put the resulting items in the container (in fact, you even state what inventory slot to replace (container.0)); it does not set the LootTable field, unlike what you're implying.
Relates to (possibly duplicates)
MC-93486and relates toMC-143766.This is a feature request.