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

Loot_table (chest) datapack.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Invalid
    • Affects Version/s: Minecraft 18w10c, Minecraft 18w10d
    • Fix Version/s: None
    • Labels:
      None
    • Confirmation Status:
      Unconfirmed

      Description

      To reproduce

      1. create new world
      2. create new datapack.
      World
      ->DataPacks
      ->"Name"
      ->pack.mcmeta
      ->Data
      ->"Name"
      ->loot_tables
      ->chests
      ->test.json

      3. create custom loot_tables me for the test I chose a loot tables already existing

      {
        "pools": [
          {
            "rolls": 1,
            "entries": [
              {
                "type": "item",
                "name": "minecraft:diamond_sword",
                "weight": 1,
                "functions": [
                  {
                    "function": "set_nbt",
                    "tag": "{Unbreakable:1}"
                  }
                ]
              }
            ]
          }
        ]
      }
      
      

      4. (In game) /setblock ~ ~-1 ~ minecraft:chest

      {LootTable:"hardel:loot_tables/chests/test"}

      Look a chest he is empty

        Attachments

        1. Capture d’écran (258).png
          Capture d’écran (258).png
          350 kB
        2. Capture d’écran (259).png
          Capture d’écran (259).png
          799 kB
        3. Capture d’écran (260).png
          Capture d’écran (260).png
          84 kB
        4. Capture d’écran (262).png
          Capture d’écran (262).png
          324 kB
        5. Capture d’écran (263).png
          Capture d’écran (263).png
          712 kB
        6. Capture d’écran (264).png
          Capture d’écran (264).png
          391 kB

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            Hardel Hardel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: