PT-BR EN ES
Channel Icon

Crazy Ozz

Official Channel Website

Command Block

Minecraft Java Edition Loot Command Generator

Use this Loot Command Generator to simulate drops from chests, mobs, fishing, and mining in Minecraft Java Edition. Choose the destination, the loot source, and copy the ready command.

Destination (where the items go)

Choose where the generated items will be sent.

give Adds items to players' inventories
insert Inserts into a block with inventory (chest, hopper...)
spawn Drops the items on the ground at coordinates
replace Replaces a slot of an entity or a block
@s (you) All players Nearest player
weapon.mainhand weapon.offhand armor.head armor.chest armor.legs armor.feet hotbar.0 inventory.0 container.0

Source (where the items come from)

Choose what the loot is calculated from.

Loot table
Fishing
Mining
Kill mob

The block isn't actually broken — only its drop is simulated.

mainhand diamond_pickaxe Fortune III pickaxe
Nearest zombie Wither Skeleton By tag

The entity isn't actually killed — only its drop is simulated. Loot tables with a "killed by player" condition only trigger if the entity has that damage source.

Generated Loot Command

loot give @s loot minecraft:chests/simple_dungeon

Want a cheap, lag-free Minecraft server?

We recommend Sparked Host: affordable plans, great performance, an easy panel, and fast support.

🚀 Create a server on Sparked Host

How to use the /loot Command Generator

This generator builds /loot commands, used to simulate item generation from loot tables, fishing, mining, or mob kills, delivering the result to a chosen destination.

Example of a generated command:

/loot give @s loot minecraft:chests/stronghold_library

This command gives the player running the command the items from a roll of the stronghold library loot table.

Supported Destinations

give

Delivers the items straight to the inventory of one or more players.

insert

Distributes the items into an existing block with an inventory, such as a chest or hopper.

spawn

Drops the items as loose entities in the world, at a coordinate.

replace

Replaces a specific slot of an entity or block, respecting the number of slots specified.

Supported Sources

loot

Uses any vanilla or custom loot table by its identifier.

fish

Simulates a fishing catch at a coordinate, using the specified fishing rod.

mine

Simulates breaking a block at a coordinate, without actually breaking it.

kill

Simulates the death of an entity, without actually killing it.

Frequently Asked Questions

What is the /loot command used for in Minecraft?

The /loot command generates items from a source (a loot table, fishing, mining, or a mob kill) and delivers them to a destination (a player, block, entity, or the world), following the same drop rules as normal gameplay.

What is the difference between give, insert, spawn and replace?

give delivers items straight to players' inventories, insert places items into an existing container, spawn drops the items as entities in the world, and replace overwrites a specific slot of an entity or a block.

Does /loot account for enchantments like Fortune and Looting?

Yes. When a tool is specified on the source (mine, kill, or loot), the command applies the same Fortune, Looting, and other modifier calculations that would happen in normal gameplay.

How does the slot work for replace entity?

The slot identifies where the item will be placed, such as weapon.mainhand, armor.head, or container.0. Each entity type accepts a different set of valid slots.

Does the /loot command work in Bedrock Edition?

loot exists in both editions, but the slot syntax differs: Java Edition uses a single token such as container.5, while Bedrock Edition uses two arguments, such as slot.container 5.

Related Generators