Loot table generator

Datapacks

Loot chests, drop mobs and blocks - datapackLearn more

Set up a lute chest or replace the bob and block drop: objects, weights, quantity and bonus of the Extraction. Pick up the pre-date pack for Minecraft from 1.20 to 26.3.

My game select version

We'll remember in this browser and set up where your version is available. Open link settings are more important than this choice; the Vicki versions do not change.

What may fall out

Write an id or a name from the game. Weight is part of the shot: a 10-weight record has twice as much chance as a 5-weight recording. "Chares" are random enchantments, like books and swords in the chests of the game.

How many throws

Each throw selects one record by weight. "Wheat weight" is the chance that a throw will do nothing: it does rare prey without touching the rest of the weight.

Where Looting drops from

The command sets its own table. Vanilla - covers the game's loot in all chests of this type that have not yet been opened: those already open do not change.

Result

Example · archives · reward-lot.zip
Item Chances
ItemPer throwAt least once per tableOn average, pcs.
Diamond13.2 %≈ 34 %0.8
Golden Apple26.3 %≈ 59 %1.2
Bottle o' Enchanting52.6 %≈ 87 %12.6
Enchanted Book enchantment7.9 %≈ 22 %0.2
Download datapack

Check: give yourself one table roll

/loot give @s loot custom:chests/reward

Place a chest with this loot

/setblock ~ ~ ~ minecraft:chest{LootTable:"custom:chests/reward"}

Item chest - loot will appear where it is placed

/give @p minecraft:chest[container_loot={loot_table:"custom:chests/reward"}]

data/custom/loot_table/chests/reward.json

{
  "type": "minecraft:chest",
  "pools": [
    {
      "entries": [
        {
          "type": "minecraft:item",
          "modifier": {
            "type": "minecraft:set_count",
            "count": {
              "type": "minecraft:uniform",
              "max": 3,
              "min": 1
            }
          },
          "name": "minecraft:diamond",
          "weight": 5
        },
        {
          "type": "minecraft:item",
          "modifier": {
            "type": "minecraft:set_count",
            "count": {
              "type": "minecraft:uniform",
              "max": 2,
              "min": 1
            }
          },
          "name": "minecraft:golden_apple",
          "weight": 10
        },
        {
          "type": "minecraft:item",
          "modifier": {
            "type": "minecraft:set_count",
            "count": {
              "type": "minecraft:uniform",
              "max": 12,
              "min": 4
            }
          },
          "name": "minecraft:experience_bottle",
          "weight": 20
        },
        {
          "type": "minecraft:item",
          "modifier": {
            "type": "minecraft:enchant_randomly",
            "options": "#minecraft:on_random_loot"
          },
          "name": "minecraft:enchanted_book",
          "weight": 3
        }
      ],
      "rolls": {
        "type": "minecraft:uniform",
        "max": 4,
        "min": 2
      }
    }
  ]
}

How to use

  1. Download the archive

    No need to unpack: the game reads the datapack directly from the zip.

  2. Place in the world folder

    On the server - world/datapacks, in single player - saves/<world>/datapacks.

  3. Reboot

    Execute /reload and check /datapack list enabled. For loading errors, see the game log.

  4. Check your loot

    Place the chest with the command from the result or open an untouched vanilla chest if you replaced it with loot.

What you need to know

  • The recording was changed three times, and the version was chosen for good reason. At 26.3 at the recording modifier, in 1.21 - 1.21.11 - list functions, before 1.21 the folder was called loot_tables. The game does not read the table of someone else’s entry and puts an empty chest - without an error in the chat.
  • Loot appears when first opened. The chest does not store items, but the name of the table, and drops it when opened. Therefore, a chest that is broken and reinstalled will no longer contain any loot.
  • The vanilla table is overlapped by a file along its path. data/minecraft/…/chests/simple_dungeon.json in your datapack replaces loot in all dungeons - and in those already generated before their chests are opened.
  • Replacement of mob or block table is complete. The old conditions of the tool, Silk Touch and Fortune are not maintained. Some block states use another table: check the selected block in the world.
  • The "at least once" chance takes into account the entire range of rolls. This is the average probability for each permissible whole number of throws, rounded to a percentage point. The conditions of the murder and explosion shall be verified separately.

Additional modes

  • Loot and trading Bedrock

    Create the Minecraft Bedrock table: a weighted production with a range of quantities or a dealer's max_uses. BP, native JSON and a fragment of connection to its essence.

Frequently asked questions

How to make your own loot in a Minecraft chest?

A date pack with a lute table: it contains objects, their weight, number and number of throws. A chest with such a table is placed by the command /setblock with the LotTable field, and the lute appears at the first opening.

How to change the drop of a mob or block?

Select Mob or Block and its id. Datapak will replace the game table in its entirety. Foreplay's death condition and mining bonus are available for babobe; the former conditions of Fortune and Silk touch are not retained by the block.

Why is the chest with the loot table empty?

Most often, the table is written for a different version: 26.3, 1.21 and 1.21, and the other game goes silently. Another reason is that the chest has already been opened: the table is thrown once.