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]

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]


Ancient Magic Theory relating to Harry Potter Ancient Magic Theory relating to Harry Potter

Posted On: July 31, 2023
So we know that the Keepers became Keepers because they wanted to keep the truth of the ancient magic from others because it could turn them evil, as we see with Isidora. It turned her dark. What i...[More]


Can anyone explain how time works in this game? Can anyone explain how time works in this game?

Posted On: November 16, 2023
So I had an issue early on that's kinda ruined my experience. When I found the gith woman locked in the cage, I talked the tieflings into moving, but then I couldn't figure out how to target t...[More]


Hogwarts Avada Kedavara Hogwarts Avada Kedavara

Posted On: July 5, 2023
Can I still learn or is it too late?. I told Sebastian nobody should use the curse and then I told Ominis that we should turn him in. Will I get another chance to learn it or have I completely scre...[More]


How can I activate an area of redstone all at once? How can I activate an area of redstone all at once?

Posted On: February 6, 2023
The idea behind my contraption is to trap players in lava by deactivating an area of fence gates under some carpet. This pushes the players upwards into the lava and there items fall onto the carpet. ...[More]


In Hogwarts is how do I get to this chest behind the revolving statues? In Hogwarts is how do I get to this chest behind the revolving statues?

Posted On: February 12, 2023
There are some caves that has these chests behind the revolving statues. Standing on the platform rotates and you end up on the other platform, rather than the other side of the wall. How do I get ...[More]


Is there a purpose for the Planet Scanning meters? Is there a purpose for the Planet Scanning meters?

Posted On: September 2, 2023
When scanning a planet, the UI includes meters for each of the resources you might collect. The bars in each of these meters seem to max out when you've collected about 25,000 of the given resourc...[More]


Red border - frame around screen Red border - frame around screen

Posted On: December 31, 2023
So I was playing ARAM last night, and suddenly I got a red border/frame around my screen. I couldn't move my screen with my mouse anymore. And I had to play with a locked camera for the rest of th...[More]


underdark or crèche? underdark or crèche?

Posted On: September 14, 2025
hi everyone! i’ve just recently started to play this game for the first time and i’ve approached the point where my main quests are to travel to moonrise towers as well as go to the crèche that k...[More]


What are some tactics to fortify villages and their population against outside attack? What are some tactics to fortify villages and their population against outside attack?

Posted On: January 29, 2023
I recently discovered my homely village has been ransacked by a marauding horde of zombies. They managed to get inside one of my large apartment houses and wiped out all but two (!) of the village pop...[More]