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]

Using - execute command, how do I check if a block is one of multiple possibilities? Using - execute command, how do I check if a block is one of multiple possibilities?

Posted On: April 8, 2024
Using an /execute command, I want to check if a certain block is, for example, either oak_fence, OR iron_bars.However, in my specific case, I can't just use two command blocks to check for either one ...[More]


Can I abandon my Kerbonaut in space in Kerbal Space Program? Can I abandon my Kerbonaut in space in Kerbal Space Program?

Posted On: February 20, 2023
My little Kerbonaut is currently circling the planet in a stable orbit, and seems to be having a grand ol' time with it. You should see the smile on his face. He's been circling now for what l...[More]


Tell me why I should like Minsc Tell me why I should like Minsc

Posted On: September 27, 2023
Because he’s the first person at camp that I don’t like (well except Mizora). I don’t like his character and at this point I don’t really. Red a ranger. Question from user B...[More]


How do you flip a troll’s club into it’s face? How do you flip a troll’s club into it’s face?

Posted On: August 2, 2023
I see that objective a lot in the Duelling feats. I know you’re supposed to use flippendo, but whenever I use it on a troll it just does nothing or slows it’s movement for a second. What i...[More]


What am I missing with Weapon Infusion in Elden Ring? What am I missing with Weapon Infusion in Elden Ring?

Posted On: October 20, 2023
So I just got back into Elden Ring, and am re-acquainting myself with the weapon upgrades/infusion systems. I'm playing a Dex build, and am currently wielding the base dual-scimitars. However, ...[More]


I turned Karlach into a hell hound by accident. I turned Karlach into a hell hound by accident.

Posted On: November 24, 2024
Question from user Annepackrat at BaldursGate3 at reddit.com.Answer:Hope youre doing well, soldier.Answer from user Cambyses-II at BaldursGate3 at reddit.com....[More]


How does Natures Fury work in Diablo IV? How does Natures Fury work in Diablo IV?

Posted On: August 11, 2023
Nature's Fury is a Druid skill which reads as follows:. Casting an Earth skill has a 20% chance to trigger a free Storm skill of the same category. In addition, casting a Storm skill has a 2...[More]


Is BG3 worth playing if I wouldn't like the combat? Is BG3 worth playing if I wouldn't like the combat?

Posted On: August 5, 2025
I prefer games to have as little luck involved in possible, I want everything to be within the player's control. Mechanics like hit chance and random critical hits are annoying to me. Are the other as...[More]


Can the Haglins Satchel add any orb to your deck? Can the Haglins Satchel add any orb to your deck?

Posted On: December 7, 2023
The description for Haglin's Satchel says it "Randomly adds 2 orbs to your deck, then randomly upgrades orbs 4 times." Are there any limits to which orbs the Haglin's Satchel can ...[More]


How To Spawn after a specific amount of time How To Spawn after a specific amount of time

Posted On: January 27, 2023
I am currently making a Legend of Zelda themed adventure map. I am struggling to make it, so enemies spawn every few minutes but not spawn large amounts over time. I have tried using things like hoppe...[More]