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]

In Season 2 of The Walking Dead, do I play as Clementine, or someone else? In Season 2 of The Walking Dead, do I play as Clementine, or someone else?

Posted On: March 25, 2023
I recently finished playing The Walking Dead Season 1 (and the 400 Days DLC), and I'm probably going to buy Season 2 very soon. However the one thing I'm not sure about is who I'll be play...[More]


How do I get keys in where is my water? How do I get keys in where is my water?

Posted On: March 2, 2023
I'm playing where is my water on windows phone. I completed my missions under "soap factory", and four more missions under "beach". It wants me buy 3 keys or take from my frien...[More]


Why would I change my realm layout in Genshin Impact? Why would I change my realm layout in Genshin Impact?

Posted On: October 15, 2023
I recently unlocked the Silken Courtyard realm layout. However I cannot see why I would change to a new layout. None of my furnishings go with me, so I would have to rebuild everything. I tried bef...[More]


What can affect the rewards in Spy Missions? What can affect the rewards in Spy Missions?

Posted On: January 25, 2023
I 've been doing my best to try and farm for Ivara in Warframe, and I have checked and cross-checked my info, but I simply do not appear to be getting the Neuroptics.I have checked and cross-checked m...[More]


How to mute squad member in Call Of Duty Warzone 2.0 DMZ How to mute squad member in Call Of Duty Warzone 2.0 DMZ

Posted On: February 22, 2023
I'm playing in a party and a specific team mate is very loud in the channel. Some people suggest that I can mute them in the Channels menu, but I can see no MUTE option at all in the corner. ...[More]


In Terraria, do some items make the Blood Moon event more common? In Terraria, do some items make the Blood Moon event more common?

Posted On: March 14, 2023
I'm playing in a new 1.2 world, and the Blood Moon rises nearly every night! My character is currently weak enough that I'm having a tough time staying alive, and it's getting to be frustr...[More]


A single Microsoft account, but two Xbox consoles: I would like to use a different unlock pattern A single Microsoft account, but two Xbox consoles: I would like to use a different unlock pattern

Posted On: December 3, 2023
I have a single Microsoft account (2FA enabled), but two consoles (Xbox S and the big X). One console is for the kids and one for me. I want to use a different unlock pattern or somehow make sure t...[More]


In the Forestry mod, how do you input seed oil into the carpenter? In the Forestry mod, how do you input seed oil into the carpenter?

Posted On: January 31, 2023
I've started using the mod Forestry, and I want to build a bee hive. But this requires a part made from in a carpenter, using wood and some "seed oil".I've powered the carpenter, but the liquid part r...[More]


What is your toughest Hogwarts Legacy enemies so far? What is your toughest Hogwarts Legacy enemies so far?

Posted On: June 5, 2023
For me it's DUGBOG!!!. It is frustrating to run upon them in a swamp. If there are only one or two of them, it is tolerable, but if there are four, I will die right away. Levioso won't w...[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]