Mojira Archive
MC-126952

Loot_table (chest) datapack.

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

Invalid

Hardel

2018-03-09, 12:02 AM

2018-03-10, 04:21 PM

2018-03-09, 12:38 AM

0

0

Unconfirmed

Minecraft 18w10c, Minecraft 18w10d

-