Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-265779

Cannot use NBT to set loot table for decorated pot

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • 23w41a
    • None
    • Confirmed

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

            Unassigned Unassigned
            Patrick100309 Patrick100309
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: