Wiki 9Minecraft Wiki 9Minecraft
Bedrock source › Commands › /replaceitem

/replaceitem

/replaceitem

Command

/replaceitem in Minecraft Bedrock Edition 1.26.70.21, read straight from the game files.

Contents (3)
  1. Data
  2. Syntax
  3. See also

Data

Identifier/replaceitem
DescriptionReplaces items in inventories.
Permission level1
Requires cheatsYes

Syntax

OverloadSyntax
1/replaceitem <block: REPLACEITEMBLOCK> <position: POSITION> <slotType: BLOCKEQUIPMENTSLOT> <slotId: INT> <itemName: ITEM> [<amount: INT>] [<data: INT>] [<components: JSON_OBJECT>]
2/replaceitem <entity: REPLACEITEMENTITY> <target: SELECTION> <slotType: ENTITYEQUIPMENTSLOT> <slotId: INT> <itemName: ITEM> [<amount: INT>] [<data: INT>] [<components: JSON_OBJECT>]
3/replaceitem <block: REPLACEITEMBLOCK> <position: POSITION> <slotType: BLOCKEQUIPMENTSLOT> <slotId: INT> <oldItemHandling: REPLACEMODE> <itemName: ITEM> [<amount: INT>] [<data: INT>] [<components: JSON_OBJECT>]
4/replaceitem <entity: REPLACEITEMENTITY> <target: SELECTION> <slotType: ENTITYEQUIPMENTSLOT> <slotId: INT> <oldItemHandling: REPLACEMODE> <itemName: ITEM> [<amount: INT>] [<data: INT>] [<components: JSON_OBJECT>]

See also

Extracted from Minecraft Bedrock 1.26.70.21 — Mojang’s own published sample packs. 9Minecraft is not affiliated with Mojang or Microsoft.

/replaceitem
Identifier/replaceitem
DescriptionReplaces items in inventories.
Permission level1
Requires cheatsYes