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]

For Hogwarts Legacy Should I Use PS4 or Switch? For Hogwarts Legacy Should I Use PS4 or Switch?

Posted On: April 15, 2023
So I've been waiting for this game for ages, and I really want to play it. I have a PS4 and a Switch, and I was thinking of getting the Switch version once it comes out, because honestly it's ...[More]


How do I beat level 31 in Worms 2 Armageddon? How do I beat level 31 in Worms 2 Armageddon?

Posted On: August 7, 2023
As a lifelong gamer, I was amazed by the difficulty of Worms 2: Armageddon on the Android platform. After a long struggle, I was finally able to finish level 30, which is basically the end of the camp...[More]


Is Hogwarts Legacy worth buying? Is Hogwarts Legacy worth buying?

Posted On: March 15, 2023
I’m not a big gamer, but I consider myself a big Harry Potter fan. The thing is, I’m very confused about this game. It looks amazing, but I’m afraid that I’ll be spending my mo...[More]


Rolan can fuck himself Rolan can fuck himself

Posted On: April 15, 2026
This man is the only thing standing between me, and platinuming BG3. How do I ensure that he survives.Question from user RangersAreViable at BaldursGate3 at reddit.com.Answer:Convince him to stay in t...[More]


How does air intake work in Kerbal Space Program? How does air intake work in Kerbal Space Program?

Posted On: April 3, 2023
I've just started building planes and am confused about the way air intake works. For instance, the J-90 "Goliath" Turbofan Engine is specified to consume a whopping 132.272 Air/sec whil...[More]


Are the Highlighted destructible items in Diablo 3 significant in any way? Are the Highlighted destructible items in Diablo 3 significant in any way?

Posted On: May 10, 2023
I've noticed that I come across destructibles (doors, barrels, other props) that have a kind of highlight, a double helix type of spiral with some effect. Do these items have any significance? ...[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]


What are Gibdo Guts useful for? What are Gibdo Guts useful for?

Posted On: August 9, 2023
Gibdo Guts are a rare drop from Gibdos (10%) and Moth Gibdos (20%), but they are much less useful than Gibdo Bones, which are much more common. They have a sale value of 2, which is one ruppee less th...[More]


Why do Pokemon sometimes have dark stripes in Pokemon Go? Why do Pokemon sometimes have dark stripes in Pokemon Go?

Posted On: February 5, 2023
Occasionally I'll face a Charizard or Venusaur in GBL that has dark striping like this:.How do they get those markings, or what is the significance of them?Question from user Lysander at gaming.stacke...[More]


Can't get a diamond to be given to entity after taming a cat Can't get a diamond to be given to entity after taming a cat

Posted On: January 26, 2023
((never mind I have found a way)).I am trying to make a "script" to stop people from killing cats in my Minecraft server (please don't ask why). My idea is that I want when you tame a cat, a diamond i...[More]