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]

Attention to detail is awesome! Attention to detail is awesome!

Posted On: September 6, 2023
I’ve spent a lot of time in the Middle East/Africa. There is a non spin-able globe in the headmasters office. Given that the game takes place in 1890, while it’s not 100% perfect, the glob...[More]


Can I turn off this Necromancer visual effect? Can I turn off this Necromancer visual effect?

Posted On: June 16, 2023
I was in a team with a Necromancer and one the skills was to create a patch of black smoke. However this skill seems to just obscure everything! My character, my loot, enemies and even chests. This...[More]


How can I see which character has finished a certain level? How can I see which character has finished a certain level?

Posted On: December 19, 2023
I've played most of the levels in Super Mario 3D World with Princess Peach and after I've got Rosalina, then with her. If I want to reach the golden stars for the levels, I have to play each l...[More]


How can I perform an arbitrary search in the Xbox YouTube app? How can I perform an arbitrary search in the Xbox YouTube app?

Posted On: March 25, 2023
Admittedly I haven't played with the Xbox YouTube app much. I looked through various tabs and menus and could not find a way to perform a keyword search. Is there a way? Question from user EBon...[More]


Are there any real counters to supers in Crucible? Are there any real counters to supers in Crucible?

Posted On: March 5, 2024
In every single Crucible match I have played since the start of Destiny 2 New Light, supers have felt completely uncounterable and pretty much oneshot me all the time. I can't possibly think of any o...[More]


Is Bae'zel Green or Yellow? Is Bae'zel Green or Yellow?

Posted On: February 5, 2025
Question from user DearPersimmon8155 at BaldursGate3 at reddit.com.Answer:Yes.Answer from user Toki_mon at BaldursGate3 at reddit.com....[More]


AC Revelations How can I check how long I need to wait for the next bank deposit? AC Revelations How can I check how long I need to wait for the next bank deposit?

Posted On: May 3, 2023
I never know how long I have to wait until the next bank deposit. I know it's meant to be every 20 minutes and that there are events that annoyingly reset the timer without telling you, so I was w...[More]


Is it possible to run RollerCoaster Tycoon 2 in windowed mode? Is it possible to run RollerCoaster Tycoon 2 in windowed mode?

Posted On: April 9, 2024
Is it possible to run RollerCoaster Tycoon 2 in windowed mode?I have Windows 7 and the game works, but since my resolution is bigger than the game can handle, I would prefer to play in windowed mode i...[More]


Whats up with the Overwatch pink sausages and onions? Whats up with the Overwatch pink sausages and onions?

Posted On: May 10, 2023
One of the many sprays available in-game shows a pink sausage holding a leek, and is commonly seen with his turnip-onion baby, seen here:. All of the sprays in game, for every hero either reference...[More]


What is the definition of a pug? What is the definition of a pug?

Posted On: February 2, 2023
What is a "pug"? I've heard multiple instances of it used in many MMORPG and FPS games. I've heard of games called "pubs", but those I think reference public games. Is t...[More]