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]

How can I disable use of a macro if a spell is on cooldown? How can I disable use of a macro if a spell is on cooldown?

Posted On: January 29, 2023
As a Shadow Priest, I use a macro to announce to those nearby who I'm casting Power Infusion on. I do this for clarity in a raid and Mythic+ setting. It works fairly well.The problem I'm encountering ...[More]


Whats the Best Way to Grind XP in Dynasty Warriors 6 Whats the Best Way to Grind XP in Dynasty Warriors 6

Posted On: March 25, 2023
I'm trying to max out the level of all Heroes to get the Achievement: Completist. I'm not sure if I have to only max out heroes I can play in story mode, or all heroes. Does this affect the...[More]


Is it possible to play Prop Hunt in GMod without CS:S? Is it possible to play Prop Hunt in GMod without CS:S?

Posted On: July 5, 2023
I've got GMod and just about every mainstream Valve game excepting CS:S. I'd like to play Prop Hunt, a GMod game mode. Is it possible to play Prop Hunt without CS:S, possibly by obtaining t...[More]


Can you import included and DLC tracks from Just Dance 2 into Just Dance 3? Can you import included and DLC tracks from Just Dance 2 into Just Dance 3?

Posted On: June 24, 2023
My wife has been enjoying Just Dance 2 on the Wii since I gave it to her last Christmas and has actually bought a number of additional tracks — enough that I had to buy her a big SD card just fo...[More]


What are decals for in Starcraft 2? What are decals for in Starcraft 2?

Posted On: May 6, 2023
What are the Decals in the rewards section used for? Question from user Erv Walter at gaming.stackexchange.com. Answer: Images of StarCraft II buildings and units with decals:. Answer from...[More]


Cannot beat this fight to save my life, help? Cannot beat this fight to save my life, help?

Posted On: March 29, 2025
I’m at the Kethric/Myrkul fight and I am getting my ass beat. Level 8 Warlock main with Shadowheart on support, Karlach as melee, and Gale as range/distraction. .I’ve read the tips, I go free Nigh...[More]


Luigis Mansion 3: Does a higher rank change the ending in any way? Luigis Mansion 3: Does a higher rank change the ending in any way?

Posted On: January 13, 2024
I've recently played through Luigi's Mansion 3. I didn't really care for any Boos, crystals or money, and the game awarded me with the rank B at the end of the credits scene.  Give...[More]


Which visual novels are represented by the animated avatars in the 2023 Steam Visual Novel Fest? Which visual novels are represented by the animated avatars in the 2023 Steam Visual Novel Fest?

Posted On: April 16, 2024
Steam is currently running the 2023 Steam Visual Novel Fest, giving out animated avatars of what I assume to be characters from various visual novel games. Which visual novels are these characters ...[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]


How to make an outline square? How to make an outline square?

Posted On: June 13, 2023
I want to start a build in a 10x10 chunk, but unfortunately I don't know how to form a square outline around the 10 by 10 chunks using smooth stone quickly. I've tried using the /fill commands...[More]