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]

Why remove redstone dust from my command block contraptions? Why remove redstone dust from my command block contraptions?

Posted On: December 29, 2023
Whenever I show my command block contraptions to my friends, they always comment that I should remove the redstone dust from them. They say it causes lag and that redstone can be unpredictable, but I&...[More]


Does Bozai show up before defeating Vah Naboris? Does Bozai show up before defeating Vah Naboris?

Posted On: June 13, 2023
Bozai is the NPC in BOTW that gives the player snow and sand boots. I am searching for him around the outskirts of Gerudo Town and I can not find him. I have also looked at the tent he would sit in. T...[More]


Where does The Darkness II keeps its save files? Where does The Darkness II keeps its save files?

Posted On: May 11, 2023
Say I wanted to back up or delete my saves on the PC version (via Steam). Where are they located? Question from user a cat at gaming.stackexchange.com. Answer: Using X to represent the gam...[More]


Is this Moaning Myrtle in Hogwarts Legacy? Is this Moaning Myrtle in Hogwarts Legacy?

Posted On: June 23, 2023
My fiance was playing Hogwarts Legacy and this girl walked by that looks like Moaning Myrtle. Idk if its supposed to be her or just look like her but either way it's funny. Question from user F...[More]


How do I open the Supply Drop in Firewatch? How do I open the Supply Drop in Firewatch?

Posted On: March 27, 2023
On Day 33 of Firewatch I was asked to retrieve a supply drop from the northern part of the park. I found the supply drop, but it's locked with a 4 digit passcode. How do I open the supply drop? Sh...[More]


How do I remove a Steam game from my library? How do I remove a Steam game from my library?

Posted On: November 17, 2022
I like how Steam presents my library to me. However, there is one thing that keeps irritating me every time I open Steam: the Team Fortress 2 Beta. I don't want it, yet it is always in my games li...[More]


In Lost Ruins, Does the Goblin Shamans Mask work on Rosies second form? In Lost Ruins, Does the Goblin Shamans Mask work on Rosies second form?

Posted On: March 26, 2023
The description for the Goblin Shaman's Mask says it increases damage to goblins and orcs by 50%. Does this include Rosie's second form during her boss fight when she transforms into a goblin?...[More]


Why does shift-queuing blink in Starcraft 2 have unpredictable results? Why does shift-queuing blink in Starcraft 2 have unpredictable results?

Posted On: May 9, 2023
I was messing around with some of the "Challenge" missions and discovered a Protoss a mechanic that I don't quite understand (Protoss is my least played race by far, so sorry if this is ...[More]


What is the maximum speed an AMX 40 can achieve over flat terrain in World Of Tanks? What is the maximum speed an AMX 40 can achieve over flat terrain in World Of Tanks?

Posted On: August 11, 2023
I've rebought my AMX-40 lately after reading a guide which tries to fix the issues with the tank (it's speed mostly) and I noticed that sometimes I can reach 26-7kmh on flat pavement surfaces ...[More]


What feats do you use the most? What feats do you use the most?

Posted On: April 19, 2024
For me the staples are every melee attacker has to have savage striker, every spell caster has spell sniper, and usually everyone gets a tough thrown in there as well. What are your go to feats and wh...[More]