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]

What is the best class to RP as a doctor? What is the best class to RP as a doctor?

Posted On: May 7, 2025
So, I want to try and play as a doctor character but don't know what class would fit them best. Armor wise, I feel like they would only wear clothing and wield a staff. I was thinking cleric could fit...[More]


How do I make it so that a command only runs when Im at a certain position How do I make it so that a command only runs when Im at a certain position

Posted On: February 14, 2023
I'm trying to make it so that if someone goes to a certain coordinate, it will trigger a boss fight. I have a chain of commands set up to do this, but it can only activate when I pull a lever. ...[More]


How do I know which version of Minecraft I have? How do I know which version of Minecraft I have?

Posted On: April 26, 2023
I don't know which version of Minecraft I have. I have regular Minecraft, not Java or anything else and I just don't know the version I have. Question from user Azalea at gaming.stackexchan...[More]


How do you make Cuphead black and white? How do you make Cuphead black and white?

Posted On: March 13, 2024
I've seen screenshots of it, and a character on the third isle says something about you have to be a pacifist or something. How is it done?Question from user Levi C. Olson at gaming.stackexchange.com....[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]


Links to webpages in books Links to webpages in books

Posted On: February 3, 2023
In multiple multiplayer servers I play in (e.g. Hypixel), There are books with text in them, and when you click on the text it takes you to a website.How do I replicate this?Question from user 65_7a a...[More]


Man spoke nothing but facts and truth Man spoke nothing but facts and truth

Posted On: December 13, 2024
Question from user ScarHydreigon87 at BaldursGate3 at reddit.com.Answer:Is it even legal for one man to be this based?Answer from user Roland1232 at BaldursGate3 at reddit.com....[More]


How do monsters in NetHack attack? How do monsters in NetHack attack?

Posted On: April 25, 2024
There is much information about how the player attacks (or attempts to attack) in the weapon spoiler. But there is no information on how monsters attack.How is the monsters value of to-Hit* calculated...[More]


How do I make food in Planet Crafter? How do I make food in Planet Crafter?

Posted On: April 29, 2024
In The Planet Crafter, I'm building my base, and I have enough food for now. I don't have any machines to make food, but I know I'm going to eventually run out. I guess that, like with water, I'm goin...[More]


Is Wordle always beatable under optimal play? Is Wordle always beatable under optimal play?

Posted On: June 15, 2023
Is Wordle always beatable under optimal play on easy mode (where you can guess any valid word)? To put the question more formally, does there exist a deterministic computer program that can play Wo...[More]