Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition?

[BACK]
Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition?
Posted On: January 19, 2023

This question was split into different questions for each workaround. See these two meta posts for more information.


Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like:.


give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}}.


give @s stone_pickaxe{Unbreakable:1b}.


give @s item_frame{EntityTag:{Invisible:1b}}.


summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}}.


summon tnt ~ ~ ~ {Fuse:20s}.


Question from user cherryblossom at gaming.stackexchange.com.


Answer:

If your question was marked as a duplicate of this one, it means your NBT question is not solvable in Bedrock Edition.


Unfortunately, there is no access to NBT tags from commands in Bedrock Edition (formerly Pocket Edition), so this is not possible. There are some workarounds for specific use cases:.


Giving one of the default potions from the Creative Inventory (no custom effects).


Giving an item with properties (click link to see available/unavailable properties).


Using an NBT editor to modify normally unavailable item properties.


Can be used to obtain enchantments that exceed their maximum enchantment level. (No longer works as of 1.16.100).


Using CanPlaceOn and CanDestroy.


Detecting whether a player has an item in their inventory, or in a certain slot.


Getting a block with data to place yourself.


Setting a block with data in a certain position.


Summoning a charged creeper.


Summoning a named mob.


Summoning a baby mob.


Summoning a villager with a certain profession.


Testing for a certain dropped item.


Summoning a horse with specific attributes.


Here are some examples of things that are currently impossible in Bedrock Edition:.


Giving a potion with a custom effect (although you can fake it to some extent using commands).


Placing skulls with custom owners.


Adding attribute modifiers to items.


Summoning a tipped arrow.


Summoning invisible item frames.


Summoning horses with custom speed/jump height/health.


Changing the time until a TNT explosion.


Querying item properties in /clear (note that you can still use data values).


Detecting when a mob is at a certain health.


Referencing JSON files in commands.


Answer from user cherryblossom at gaming.stackexchange.com.


[BACK]
Is it possible to use NBT tags in commands in Minecraft: Bedrock Edition?
Posted On: January 19, 2023

This question was split into different questions for each workaround. See these two meta posts for more information.


Can you use NBT tags in commands? I’ve tried commands that normally work in Java Edition like:.


give @s minecraft:planks 30 1 {display:{Lore:["Wooden planks"]}}.


give @s stone_pickaxe{Unbreakable:1b}.


give @s item_frame{EntityTag:{Invisible:1b}}.


summon villager ~ ~ ~ {Offers:{Recipes:[{buy:{id:"emerald",Count:5b},sell:{id:"diamond_sword"}}]}}.


summon tnt ~ ~ ~ {Fuse:20s}.


Question from user cherryblossom at gaming.stackexchange.com.


Answer:

If your question was marked as a duplicate of this one, it means your NBT question is not solvable in Bedrock Edition.


Unfortunately, there is no access to NBT tags from commands in Bedrock Edition (formerly Pocket Edition), so this is not possible. There are some workarounds for specific use cases:.


Giving one of the default potions from the Creative Inventory (no custom effects).


Giving an item with properties (click link to see available/unavailable properties).


Using an NBT editor to modify normally unavailable item properties.


Can be used to obtain enchantments that exceed their maximum enchantment level. (No longer works as of 1.16.100).


Using CanPlaceOn and CanDestroy.


Detecting whether a player has an item in their inventory, or in a certain slot.


Getting a block with data to place yourself.


Setting a block with data in a certain position.


Summoning a charged creeper.


Summoning a named mob.


Summoning a baby mob.


Summoning a villager with a certain profession.


Testing for a certain dropped item.


Summoning a horse with specific attributes.


Here are some examples of things that are currently impossible in Bedrock Edition:.


Giving a potion with a custom effect (although you can fake it to some extent using commands).


Placing skulls with custom owners.


Adding attribute modifiers to items.


Summoning a tipped arrow.


Summoning invisible item frames.


Summoning horses with custom speed/jump height/health.


Changing the time until a TNT explosion.


Querying item properties in /clear (note that you can still use data values).


Detecting when a mob is at a certain health.


Referencing JSON files in commands.


Answer from user cherryblossom at gaming.stackexchange.com.


[BACK]

Can I bind a key to a macro without applying it on an action button? Can I bind a key to a macro without applying it on an action button?

Posted On: January 24, 2023
So far all I can do is to create a macro, place it on an action button, and make sure that this action bar has a key bound to it. But now I'm running out of action buttons.I would like to bind a key (...[More]


Why Can’t I Change How Dirty I am Why Can’t I Change How Dirty I am

Posted On: October 19, 2023
When I got to the celebration at the camp with the tieflings, I tried rizzing up Gale and chose a line that said I was secretly a nymph. Gale hit me with “hmm no because nymphs bathe regularly a...[More]


What does the orange part of my health bar mean in Like A Dragon? What does the orange part of my health bar mean in Like A Dragon?

Posted On: April 12, 2023
My health bar in Like A Dragon: Ishin is divided into two sections: one red and one orange. What is the orange section of my health bar for? Is it some kind of bonus HP? Question from user Stevoisi...[More]


Just need some advice ?? Just need some advice ??

Posted On: November 28, 2025
Im doing my first real play through, and decided to play on tactician and would really like some advice/tips. So far i made it to the cove after finding the guy who can respec your characters. Battle...[More]


Is there any way in Minecraft to detect who deposited a diamond into a chest using command blocks? Is there any way in Minecraft to detect who deposited a diamond into a chest using command blocks?

Posted On: April 26, 2024
So far, I've been able to detect when a diamond is placed into a chest's inventory but how can I detect who placed that diamond?I'd prefer not to use the nearest player because someone else could pote...[More]


How do I pass the level 7 will find forward puzzle? How do I pass the level 7 will find forward puzzle?

Posted On: June 12, 2023
The objective is to delete all the red outlined characters. . It allows only 12 key presses and you enter from the bridge above (on either n, d or the space after "find)". Leaving the puz...[More]


How do I transfer the Militech Datashard eddies to myself? How do I transfer the Militech Datashard eddies to myself?

Posted On: December 19, 2023
During one of the early missions in the game, you are tasked with collecting a Flathead robot from a Maelstrom hideout. I resolved the optional objective to chat to Militech about it, and received the...[More]


How do I use Triple Notch without triggering High Volley in Horizon Forbidden West How do I use Triple Notch without triggering High Volley in Horizon Forbidden West

Posted On: April 21, 2023
I have two skills from the Hunter tree: Triple Notch and High Volley. The weird thing is that as far as I can tell both are triggered by the same buttons, holding L2 and pressing R1. Sometimes when...[More]


What is your favorite companion voice line? What is your favorite companion voice line?

Posted On: September 13, 2025
I'm a bit in my cups tonight. I've played this game now for about 500 hours, rookie numbers, I know. After all this time I still chuckle every time Astarion say, "Into my pocket." His inflection on th...[More]


What is this treasure in Lara’s trophy collection? What is this treasure in Lara’s trophy collection?

Posted On: March 3, 2024
In the Croft Manor section of Tomb Raider 3, there is a hidden trophy room containing relics from Lara’s previous adventures. Most of these are references to previous games - fragments of the Scion ...[More]