Mojira Archive
MC-265779

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:

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

Invalid

Patrick100309

2023-10-12, 03:26 AM

2023-10-13, 07:08 AM

2023-10-13, 07:08 AM

2

3

Confirmed

23w41a

-