Minecraft Java command tool

Loot chest generator

Copy-ready loot container commands, and the full list of vanilla loot tables.

Command builder

Choose what you want Minecraft to do

Vanilla Java command

Vanilla Java 1.21.5 to 26.3

Loot table lookup

Every chest, barrel, dispenser, decorated pot, and archaeology path in the vanilla data pack. Select any row to load it into the builder. Rows tagged 26.3 are new in that snapshot and will not resolve on an older server.

Archaeology6

Abandoned Camp3

Structure Chests15

Ancient City2

Bastion Remnant4

Shipwreck3

Stronghold3

Trial Chambers: Chests13

Village16

Trial Chambers: Dispensers3

Trial Chambers: Decorated Pots1

A reliable WorldEdit / Axiom workflow

01Choose the matching environment

Use namespaced vanilla commands on plugin servers. For a WorldEdit selection, choose its profile to generate native //set …{NBT} syntax.

02Copy before opening

Opening the container resolves its table into ordinary Items. Use Ctrl + middle-click while it is still unopened to copy the unresolved loot data.

03Verify the saved asset

Run /data get block x y z LootTable after pasting. If it returns the namespaced ID, the schematic or editor preserved the table.

Why can EssentialsX, WorldEdit, or Axiom appear to break the command?

EssentialsX registers its own /give parser, so the Paper/Spigot profile explicitly calls /minecraft:give. WorldEdit supports block-entity SNBT but requires worldedit.setnbt and a version-compatible adapter. Axiom and schematic exports may serialize the block entity separately. Keep the container unopened and verify its LootTable tag after every editor or schematic round-trip.

Server permissions and command contexts

Namespacing selects the correct vanilla parser; it does not bypass permissions. Paper users need OP or the matching node such as minecraft.command.give. WorldEdit users need worldedit.region.set and worldedit.setnbt. Console, functions, and command blocks omit the leading slash; console placement should use absolute coordinates, and console giving should use an exact online player name.

Unresolved table vs generated items

/give, /setblock, /data merge, and the minecart command store a table that rolls on first use. /loot insert rolls immediately and inserts real items. Use the latter when an editor cannot preserve block-entity loot-table data.

The written guide on Planet Minecraft The same catalogue as a plain reading list, plus the pre-1.13 command forms this builder does not generate.