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 do I get Marios hat back after pressing the Yellow Switch? How do I get Marios hat back after pressing the Yellow Switch?

Posted On: September 12, 2023
In the "abandoned" version 0.9 of B3313 (a ROM hack of Super Mario 64), I activated the Yellow Switch which caused Mario to lose his hat. Just like the original version of Super Mario 64, Ma...[More]


Will a Smokepowder Satchel explode if Im lit on fire while carrying it? Will a Smokepowder Satchel explode if Im lit on fire while carrying it?

Posted On: September 5, 2023
I picked up a Smokepowder Satchel that says it explodes when ignited, damaging everything in the vicinity. Some enemy spells can inflict burning. Will a Smokepowder Satchel explode if a character gets...[More]


What does this checkmark mean in the course listing screen? What does this checkmark mean in the course listing screen?

Posted On: October 20, 2023
Started playing through the levels and trying to pick up everything I see along the way so I don't have to go back and revisit the levels. First course so far so good. First course complete....[More]


Who exactly is Fake Crash? Who exactly is Fake Crash?

Posted On: April 8, 2024
In Crash Bandicoot: Warped and also in N. Sane Trilogy you can see this weird (and fake) version of Crash dancing outside of some levels. He even became a playable character then in Crash Team Racing....[More]


Hogwarts Legacy Was So Much Fun Hogwarts Legacy Was So Much Fun

Posted On: June 10, 2023
I am now the proud owner of a shop in Hogsmeade, and that quest was way more involved than I expected. Question from user Street-Comparison-45 at HogwartsLegacyGaming at reddit.com. Answer: T...[More]


How to quit an online match? How to quit an online match?

Posted On: March 6, 2024
I'm trying to run for the Platinum trophy before the server closure, so I'll soon start to get game modes I don't need anymore, and I don't want to waste my time.Is there a way to leave an online matc...[More]


What is the optimum pattern to place crops in Minecraft? What is the optimum pattern to place crops in Minecraft?

Posted On: April 25, 2023
What factors affect soil hydration and crop growth time? What is the most efficient layout of dirt and water to grow crops? Question from user Joe Dovahkiin at gaming.stackexchange.com. Answer: ...[More]


How do I reveal the bonus art in the Art Gallery? How do I reveal the bonus art in the Art Gallery?

Posted On: April 24, 2024
After using a key to open the first Concept Art room in the Art Gallery, I noticed some of the pictures were missing, displaying as a blue question mark. If I go to examine them, they are labeled as "...[More]


In Hogwarts Legacy, Am I the only one who prefers the switch Hagrid? In Hogwarts Legacy, Am I the only one who prefers the switch Hagrid?

Posted On: April 19, 2023
Question from user supxleon123 at HogwartsLegacyGaming at reddit.com. Answer: We’re getting a PS5 hagrid? Answer from user UglyPuta- at HogwartsLegacyGaming at reddit.com....[More]


USB Loader GX keeps on crashing to the Homebrew Channel USB Loader GX keeps on crashing to the Homebrew Channel

Posted On: March 24, 2023
I have a Wii on version 4.3U. One of my games used to work, but now all of them just crash to the Homebrew Channel. I already know there is another post about this, but I didn't perform a system u...[More]