Mojira Archive
MC-265780

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:
1. Loot table:
{
    "type": "minecraft:chest",
    "pools": [
        {
            "rolls": 1,
            "entries": [
               

{                     "type": "minecraft:item",                     "name": "minecraft:emerald"                 }

            ]
        }
    ]
}

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"}

}

(I was conscious of this is MCL just now)

Duplicate

Patrick100309

2023-10-12, 03:11 AM

2023-10-12, 03:57 AM

2023-10-12, 03:57 AM

0

1

Unconfirmed

(Unassigned)

23w41a

-