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]

My new shop in Hogwarts Legacy My new shop in Hogwarts Legacy

Posted On: May 31, 2023
Is anyone else annoyed by the fact that Penny tells you that you can sell "anything from essence of dittany to mooncalf fur" in the shop but then once you actually do everything to get the s...[More]


Whats the software used in Mega Man X speedruns? Whats the software used in Mega Man X speedruns?

Posted On: April 25, 2024
I'm starting out with my personal journey toward a 100% speedrun of Mega Man X, and I noticed that pretty much every speedrunner on YouTube is using a software that keeps track of time for each level:...[More]


Optimal percentages for maximum profit and experience when buying and selling for each customer Optimal percentages for maximum profit and experience when buying and selling for each customer

Posted On: January 15, 2023
Does anyone know the optimal buying/selling percentages of normal, increased and decreased-priced items to get the maximum experience points (high chance of pin bonus and customers should accept at fi...[More]


Is there a way to increase the number of potions I can carry in Final Fantasy 16? Is there a way to increase the number of potions I can carry in Final Fantasy 16?

Posted On: July 25, 2023
I'm still in the early parts of Final Fantasy 16, and Clive can only carry 4 potions and 3 high potions. During certain boss fights, I found myself using them all early on in the fights and not ha...[More]


The last thing I expected from this game. The last thing I expected from this game.

Posted On: September 16, 2023
I'm on my first play through as a Hufflepuff witch, and I have to say I'm bowled over by the outfits and how good they look. The costume design team have done such a good job. My wardrobe is s...[More]


Act2 & Act3 Spoilers with Astarion Act2 & Act3 Spoilers with Astarion

Posted On: February 2, 2025
Hi, it’s me again. You’re going to see me asking lots of things. So, I did the quest for Raphael, for Astarion’s sake and now I have to fight Cazador while we have the tadpole so we have the adv...[More]


In PUBG, Where are all the underground bunkers? In PUBG, Where are all the underground bunkers?

Posted On: May 1, 2023
In Player Unknown battlegrounds there's a massive underground bunker in F4 filled with high grade loot. I know from a game where I joined a random squad that there are more underground bunkers as we r...[More]


Is there a way to reset my Talents in Hogwarts Legacy? Is there a way to reset my Talents in Hogwarts Legacy?

Posted On: July 20, 2023
I want to know if there is a way to reset my Talents in Hogwarts Legacy. I've used up all my Talent Points, but I'm not happy with the Talents I've chosen to spend it on. So I'd lik...[More]


WHY IS SALAMI A WEAPON?!? WHY IS SALAMI A WEAPON?!?

Posted On: March 25, 2025
i don’t even know what to say…should i start beating up the steel watch with salami now????Question from user Bellaswannabe at BaldursGate3 at reddit.com.Answer:Yes start beating people up with th...[More]


How do I get the ghillie suit? How do I get the ghillie suit?

Posted On: November 19, 2023
Sometimes while I play Call of Duty Modern Warfare 3 online, I see people with a ghillie suit to help them blend in to their surroundings. How do I get that costume? Question from user Scribblenaut...[More]