Active Channel: https://bit.ly/CUBID_Kuntal
Hindi Tutorial: https://youtu.be/KI_baPiQ9ME
You can use the /replaceitem command to instanty replace one item with another item. You can replace armor items worn, weapons held in your hands, items stored in chests and items in your inventory/hotbar. This is a great way to quickly put armor on a player during a Minecraft battle or change out a worn out weapon.
Supported Platforms
NOTE: Pocket Edition (PE), Xbox One, PS4, Nintendo Switch, and Windows 10 Edition are now called Bedrock Edition. We will continue to show them individually for version history.
Requirements
To run game commands in Minecraft, you have to turn cheats on in your world.
ReplaceItem Command in Minecraft Pocket Edition (PE)
In Minecraft Pocket Edition (PE), the /replaceitem command has different syntaxes depending on what you would like to do.
To replace a block with another item:
/replaceitem block <position> slot.container <slotId> <itemName> [amount] [data] [components]
To replace an entity's item with another item:
/replaceitem entity <target> <slotType> <slotId> <itemName> [amount] [data] [components]
Definitions
position is the x y z coordinate of the block to replace.
target is the name of the player (or a target selector) that you wish to replace an item for.
slotType and slotId determine the type of slot and slot number that you wish to replace the item for. It can be one of the following:
itemName is the name of the replacement item.
amount is optional. It is the amount of the replacement item. If you don't specify an amount, it will default to 1.
data is optional. It is the data value for the replacement item. It identifies the variation of the block if more than one type exists for that Item ID.
components is optional json.
Example in Pocket Edition (PE)
To replace the chest armor item with a diamond chestplate for the player called Dhinkachika4436:
/replaceitem entity Dhinkachika4436 slot.armor.chest 0 diamond_chestplate
To put a diamond sword in the third slot of a chest that is located at the coordinates (22, 64, 36):
/replaceitem block 22 64 36 slot.chest 2 diamond_sword
How to Enter the Command
1. Open the Chat Window
The easiest way to run a command in Minecraft is within the chat window. The game control to open the chat window depends on the version of Minecraft:
For Pocket Edition (PE), tap on the chat button
at the top of the screen.
2. Type the Command
In this example, we are going to equip a diamond chestplate on the player called Dhinkachika4436 with the following command:
/replaceitem entity Dhinkachika4436 slot.armor.chest diamond_chestplate
Type the command in the chat window and press the Enter key to run the command.
Once the cheat has been entered, the item will be replaced.
Once you have entered the command, you will see the message "Replaced slot slot.armor.chest with 1 x [Diamond Chestplate]" appear in the lower left corner of the game window. This indicates that that diamond chestplate has been replaced.
SUBSCRIBE My Channel:https://youtube.com/c/KuntalBose
SPECIAL THANKS TO
DigMinecraft.
Comments