Item Components JSON NBT | Minecraft Bedrock Command Help | /give /replaceitem NBT Components @smellofcurry
Item Components JSON NBT | Minecraft Bedrock Command Help | /give /replaceitem NBT Components  @smellofcurry
Uploaded April 2022 | Updated November 2026, 1 day ago
/give and /replaceitem have special features that not alot of people know about. These things are NBT Components. In the /give and /replace item syntax they have a augment called components as type JSON. These components are actually super simple to understand. JSON formatted. Like NBT tags but supports only minecraft:can_place_on, minecraft:can_destroy, minecraft:item_lock and minecraft:keep_on_death functions.

Chapters:
0:00 Intro & component demo
2:34 Item components available in Bedrock
3:00 can_place_on & can_destroy
4:10 Writing the /give command
5:02 Block lists
6:05 Adventure mode behavior
7:00 item_lock: lock_in_inventory
8:01 item_lock: lock_in_slot
9:05 keep_on_death
10:06 Combining components
12:02 Data value bug & outro

NBT data for the Bedrock edition is minimal. The only values we have access to are:
CanPlaceOn
CanDestroy
KeepOnDeath
ItemLock.
These are used as part of a /give or replaceitem command and can edit specific properties of the items with said NBT.

Destroy: /give @p diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["planks", "skull"]}}

Place on: /give @p stone 1 0 {"minecraft:can_place_on":{"blocks":["stone"]}}

Lock in any applicable slot in inventory: /give @p iron_axe 1 100 {"minecraft:item_lock":{ "mode": "lock_in_inventory" }}

Lock in a specific slot in inventory: /give @p apple 1 0 {"minecraft:item_lock":{ "mode": "lock_in_slot" }}

Item will remain in an entity's inventory when it dies: /replaceitem entity @e[type=zombie] slot.weapon.mainhand -1 cooked_beef 1 0 {"minecraft:keep_on_death":{}}

Give all players a bow that locks in a specific inventory slot and is kept on death: /give @a bow 1 0 {"minecraft:item_lock":{ "mode": "lock_in_slot" }, "minecraft:keep_on_death":{}}

Give self a stone shovel that can only dig up gravel and sand, and locks in inventory: /give @s stone_shovel 1 0 {"minecraft:can_destroy":{"blocks":["dirt", "sand"]},"minecraft:item_lock":{ "mode": "lock_in_inventory" }}

Assigning specific blocks and items with specific data values using "minecraft:can_place_on" and "minecraft:can_destroy" will return an error stating the NBT "could not be updated, which seems to be an unintended bug in this case.

/give @s cobblestone 64 0 {"minecraft:can_place_on":{"blocks":["stained_glass:2"]}}

/give @a wooden_axe 16 0 {"minecraft:can_destroy":{"blocks":["wool:5"]}}

Similarly to the issue above, specifying commands that generally do not make sense will also return a "could not be updated" error. Some examples include:

/give @a diamond 10 0 {"minecraft:can_place_on":{"blocks":["dirt"]}}

VIDEO AND DESCRIPTION COMMANDS ARE FROM: bedrock.dev:
https://wiki.bedrock.dev/commands/nbt-commands.html

Join this channel to get access to perks:
youtube.com/channel/UCbtRgldllSHEG7CnVp_04DQ/join
Item Components JSON NBT | Minecraft Bedrock Command Help | /give /replaceitem NBT ComponentsPokeBedrock Update 3.6: Mines, Claims, Quests & Trainer AIRubedo Anti-Cheat Showcase: Regions, Roles & SettingsBikes can drive over LAVA nowSmelly Ranks v2: Chat Ranks Addon for Minecraft BedrockNew Pokedex & Detailed Pokemon Stats in PokeBedrock!*NEW* Minecraft Bedrock Pokémon Server | BEST POKEMON ADDON ON MCPE | 1.20+ | UPDATED!Working on Binocraft FactionsGrave Hollow has a TON of questsHow to Make Spawn Protection in Minecraft Bedrock (Commands)Electric Terrain is in PokeBedrockHOW TO CREATE PERSONAL STATS/SCOREBOARD | Minecraft Bedrock | PS,Win10,PE,XBOX | 1.18+
Smell of Curry |

Item Components JSON NBT | Minecraft Bedrock Command Help | /give /replaceitem NBT Components

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER