Replace item (mcpe)

Replace item (mcpe) - Washing Item in Sink

I want to replace an equipped leather cap with a glass block. I tried /replaceitem entity @s slot.armor.head glass, but it didn’t work.



Best Answer

This is the syntax for /replaceitem:

/replaceitem <block|entity> <position or target> <slot type> <slot ID> <item name> [amount] [data] [components]

You forgot to define the slot ID, which in your case should be 0:

/replaceitem entity @s slot.armor.head 0 glass

You can find more information about /replaceitem on this site.




Pictures about "Replace item (mcpe)"

Replace item (mcpe) - Young woman watching movie in headphones in messy room
Replace item (mcpe) - Unpacked boxes in middle of room
Replace item (mcpe) - Woman cutting off adhesive tape from box with parcel



Does the Replace item command work in bedrock?

Minecraft Bedrock Edition: Entering and using the replace item command. The default command syntax for current versions of Minecraft Bedrock Edition is "/replaceitem block <position> slot. container <slotId> <itemName> [amount] [data] [components]" without quotations. This will replace a block with another item.

How do you replace a block with something else in Minecraft?

Once cheats are enabled, Minecraft: Bedrock Edition players can open their chat console in-game and type out their command. The syntax of the command to replace blocks (in Bedrock Edition specifically) is currently: /fill <from> <to> <tilename> [tiledata] replace <replacetilename> <replacedatavalue>



How To Use The Minecraft Replace Item Command In Bedrock MCPE! (Updated)




Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.

Images: Karolina Grabowska, Andrea Piacquadio, Ketut Subiyanto, Liza Summer