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

Cannot use nbt to set loot table for decorated pot.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 23w41a
    • None
    • Win10
      Game Verson:23w41a
    • Unconfirmed
    • (Unassigned)

      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)

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

              Created:
              Updated:
              Resolved: