/item

Cheats / op 2Java 26.3

Replaces or modifies items in inventory and container slots. Its basic form is /item fill block <target> <slots> from block <source> <sourceSlots>; it has 26 syntax forms and 7 arguments. Permission: Cheats / op 2.

Who can use it
Cheats / op 2
Syntax forms
26
Arguments
7

/item syntax

Game data

Every form the game accepts. Words in <angle brackets> are arguments you fill in; everything else is typed as is.

/item fill block <target> <slots> from block <source> <sourceSlots>
/item fill block <target> <slots> from entity <source> <sourceSlots>
/item fill block <target> <slots> with <item>
/item fill block <target> <slots> with <item> <count>
/item fill entity <target> <slots> from block <source> <sourceSlots>
/item fill entity <target> <slots> from entity <source> <sourceSlots>
/item fill entity <target> <slots> with <item>
/item fill entity <target> <slots> with <item> <count>
/item modify block <target> <slots> <modifier>
/item modify entity <target> <slots> <modifier>
/item override block <target> <slots> from block <source> <sourceSlots>
/item override block <target> <slots> from entity <source> <sourceSlots>
/item override block <target> <slots> with <item>
/item override block <target> <slots> with <item> <count>
/item override entity <target> <slots> from block <source> <sourceSlots>
/item override entity <target> <slots> from entity <source> <sourceSlots>
/item override entity <target> <slots> with <item>
/item override entity <target> <slots> with <item> <count>
/item replace block <target> <slots> from block <source> <sourceSlots>
/item replace block <target> <slots> from entity <source> <sourceSlots>
/item replace block <target> <slots> with <item>
/item replace block <target> <slots> with <item> <count>
/item replace entity <target> <slots> from block <source> <sourceSlots>
/item replace entity <target> <slots> from entity <source> <sourceSlots>
/item replace entity <target> <slots> with <item>
/item replace entity <target> <slots> with <item> <count>

/item examples

Ready-to-paste examples (cheats on). @s is you, @p the nearest player, @a everyone, @e every entity.

/item replace entity @s armor.head with minecraft:carved_pumpkin
Puts a carved pumpkin straight into your helmet slot.
/item replace entity @s weapon.offhand with minecraft:totem_of_undying
Puts a Totem of Undying in your off hand.

/item arguments

What each argument expects, with the limits the game enforces.

/item arguments
ArgumentExpectsLimits
<target>Block coordinates (x y z, ~ relative, ^ local)—
<slots>Slot source—
<source>Block coordinates (x y z, ~ relative, ^ local)—
<sourceSlots>Slot source—
<modifier>Item modifier ID—
<item>Item ID with optional [components]—
<count>Whole number1 … 99

Related commands

Data: Minecraft Java Edition 26.3 game files. How we source this

Replaces or modifies items in inventory and container slots. It has 26 syntax forms and can be run by: Cheats / op 2.

See Also

🔍

Help us maintain accuracy! If you notice incorrect stats, missing data, or any issues, your feedback directly improves the quality of our data for the entire community.

Report an Issue

/item FAQ (Java 26.3)

What does /item do in Minecraft?

Replaces or modifies items in inventory and container slots.

What is the syntax of /item?

The basic form is /item fill block <target> <slots> from block <source> <sourceSlots>. All forms are listed above.

What is an example of /item?

/item replace entity @s armor.head with minecraft:carved_pumpkin — Puts a carved pumpkin straight into your helmet slot.

Do you need cheats for /item?

Yes: Cheats / op 2. In singleplayer turn on Allow Cheats (or open to LAN with cheats).