Contents (3)
- Data
- Syntax
- See also
Data
| Identifier | /replaceitem |
|---|
| Description | Replaces items in inventories. |
|---|
| Permission level | 1 |
|---|
| Requires cheats | Yes |
|---|
Syntax
| Overload | Syntax |
|---|
| 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.