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 do I have to hold down twice to activate this special attack in PokemonGo? Why do I have to hold down twice to activate this special attack in PokemonGo?

Posted On: July 20, 2023
This has been bothering me recently: when my special attack is ready, why do I have to 'hold down' twice to activate it? Yes, sometimes I only have to do it once but the majority of the time I...[More]


Is it possible to change powers without pausing in MegaMan Legacy? Is it possible to change powers without pausing in MegaMan Legacy?

Posted On: February 26, 2023
Is it possible to cycle through Megaman's powers without pausing the game in MegaMan Legacy Collection? Question from user Ryre at gaming.stackexchange.com. Answer: Unfortunately this is ...[More]


What is the hidden trophy below Lore Master? What is the hidden trophy below Lore Master?

Posted On: August 25, 2023
In Lucky Luna's trophy list there is a hidden Story Mode trophy marked ??? near the bottom of the list. It sits between the trophies for Lore master and Taking flight. What are the requirements fo...[More]


How do I get Avada kedavra in Hogwarts Legacy? How do I get Avada kedavra in Hogwarts Legacy?

Posted On: March 17, 2023
So you're telling me the last spell I needed for 100 is no longer unlockable because I thought seb killing his uncle was wrong?! Like every other curse tells you if you do this you won't get i...[More]


What are the limits of Minecraft worlds? What are the limits of Minecraft worlds?

Posted On: January 18, 2024
Although Minecraft uses its peculiar cube art for all the elements in it, it respects some physics' laws in some manner. If Minecraft uses gravity laws and we expect it respects computer memory...[More]


Hogwarts Legacy - No makeup - beards? Hogwarts Legacy - No makeup - beards?

Posted On: March 7, 2023
I just realized after beating the game and watching some people play that we don't have makeup or beards! Like aren't we 15-16 years old? Surely we can get a little scruff and put on some blus...[More]


Is Angry Birds deterministic? Is Angry Birds deterministic?

Posted On: December 21, 2022
While trying to get 3 stars on the more complex levels (the ones with a lot of destructible entities) I noticed that even after playing the same level over 50 times, doing always the same thing, I've ...[More]


How do I get the star behind the gate in The City? How do I get the star behind the gate in The City?

Posted On: March 29, 2024
Near the start of The City, there is a star behind a gate down in the water. The B3313 wiki says I can bypass the gate with a vanish cap, but I'm not able to find it. Where can I find the vanish cap t...[More]


Are any of the quests in Horizon: Zero Dawn time sensitive? Are any of the quests in Horizon: Zero Dawn time sensitive?

Posted On: April 4, 2023
I started playing Horizon: Zero Dawn a few weeks ago and have been focusing mainly on sidequests and exploring the world. I advanced the game just enough so I got to Meridian, but as I collected more ...[More]


which companions do you use as healer? which companions do you use as healer?

Posted On: December 11, 2023
I'm playing a creature master and want to try different companions out but I feel like I am forced keeping Shadowheart to keep the party rolling along. Maybe I could just do 4 dps and just go camp...[More]