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]

Does being in full darkness prevent you from being detected in ToTK? Does being in full darkness prevent you from being detected in ToTK?

Posted On: May 16, 2023
* minor spoilers *. I'm trying to sneak my way underground early to try to find some goodies, and there's a lot. Fortunately it's not densely populated with enemies everywhere. Came acr...[More]


In Zelda TOTK, Is there a way to select a material for all arrows? In Zelda TOTK, Is there a way to select a material for all arrows?

Posted On: May 18, 2023
When aiming a bow, pressing ↑ opens the Materials list "Select a material to attach.". Is there a way to avoid having to open this menu for every arrow that you fire, if you wanted t...[More]


How do I befriend Undyne? How do I befriend Undyne?

Posted On: April 17, 2024
So, I just beat undertale, and I got the neutral ending. At the end, . Flowey told me that I wasn't a good enough friend to Papyrus and Undyne. Then I talked to Papyrus, and he said Undyne wants to b...[More]


Whats the quickest way to get all of the achievements in StarCraft 2? Whats the quickest way to get all of the achievements in StarCraft 2?

Posted On: February 24, 2023
As the title says, are there any shortcuts to getting all of the achievements in the game (preferably without cheesing through games, etc.)? Question from user happy_soil at gaming.stackexchange.co...[More]


Is BG3 worth it for someone who doesn't like the setting? Is BG3 worth it for someone who doesn't like the setting?

Posted On: December 15, 2025
Hi, I'm a long time D&D fan, although most of my experience comes from the older editions (B/X edition and AD&D 1e are my faves), not much 5e experience (tried to run 5e campaigns on two separate occa...[More]


[Warning: Spoiler] I feel so alone in liking Natsai in Hogwarts [Warning: Spoiler] I feel so alone in liking Natsai in Hogwarts

Posted On: June 24, 2023
I feel like I'm in the twilight zone because I seem to be liking characters in this game that aren't liked by most players. I like Natty the most, and then Ominis and Poppy. Though Poppy is...[More]


Where can I find the Legend of Korra save files? Where can I find the Legend of Korra save files?

Posted On: January 18, 2023
I'm referring to this game. I've looked everywhere, and can't seem to find the save file. Google was no much help either, with various resources about games and save files, but with this g...[More]


Pretty sure I'm screwed (Myrkul fight: First Honour mode) Pretty sure I'm screwed (Myrkul fight: First Honour mode)

Posted On: March 11, 2025
Hi all, figured it wouldn't hurt to share my current experience and see if there's some way to salvage my run, though I don't see how it's possible. Worst case, I've learned for my next run. .*Note.Pl...[More]


Kagha arrange for Halsin's imprisonment? What was her plan? Kagha arrange for Halsin's imprisonment? What was her plan?

Posted On: December 29, 2024
[Spoilers].I figure she didn't, that she was already being seduced by the dark side of the Force, sorry wrong franchise, already being manipulated by the Shadow Druids, and when Halsin disappeared loo...[More]


What does saying X mean in the faction chat in Albion Online? What does saying X mean in the faction chat in Albion Online?

Posted On: May 16, 2023
I see many people "x" in the chat, but I cannot find a clear answer to what it means. Asking in the chat also does not give me any answers. Question from user TheBird956 at gaming.stackex...[More]