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]

Can I alter the biome of an area? Can I alter the biome of an area?

Posted On: January 12, 2023
In part 3 of my adventures, I would like to find out if there is a way to change biomes. In part 2, fredley said that it is possible to move terrain from one world to another, but the biomes wouldn...[More]


What build order should I use for Zerg in StarCraft 2? What build order should I use for Zerg in StarCraft 2?

Posted On: March 14, 2013
I'm familiar with the general mechanics of the game, but what's the best build order for the beginning of the game? Question from user McKay at gaming.stackexchange.com. Answer: An op...[More]


Which frigate in Eve has the fastest sub-warp speed after fittings and skills? Which frigate in Eve has the fastest sub-warp speed after fittings and skills?

Posted On: March 9, 2023
In Eve, one can easily look up the base stats for various ships by checking their info pages from the market. The interceptors are probably the fastest ship class in the game, but it's hard to ...[More]


Be honest: did any parts in BG3 make you cry? Be honest: did any parts in BG3 make you cry?

Posted On: July 14, 2024
Anything from misty eyes and sniffles to bawling your eyes out will count! ?.I can think of a few (and mind you, I get really attached to the sympathetic NPC's in the games I play!):.Astarion's defea...[More]


Can I split the walls? Can I split the walls?

Posted On: July 11, 2023
Within the Builder base, there are of course, walls. These walls though come in groups of 5 or 10 and seem to be inseparable. Also, when buying new walls, there are in inseparable sets of 5 walls atta...[More]


Does how the ghost look like can give you the answer as to what it is? Does how the ghost look like can give you the answer as to what it is?

Posted On: October 15, 2023
When you can see the ghost, is the model used a good way to know what ghost you are dealing with, or are the models unrelated to the current ghost? Question from user Fredy31 at stackexchange. A...[More]


Why is killing Mongrels any different than what the poachers do? Why is killing Mongrels any different than what the poachers do?

Posted On: July 24, 2023
I just find it completely hypocritical to hate the poachers for kidnapping animals, and from our player's POV, we don't even know if they kill them or not. Sorry not everyone has the opportuni...[More]


Going to play Hogwarts Legacy for the first time! Going to play Hogwarts Legacy for the first time!

Posted On: June 22, 2023
I've had the game since it came out, but have been unable to play it because it was Summer, and my xbox would overheat and crash within 45 seconds of the launching the game.(this happened with oth...[More]


What is the difference between story mode and campaign? What is the difference between story mode and campaign?

Posted On: January 15, 2023
In Blood Bowl, legendary edition, what is the difference between starting a story mode vs starting a campaign? Question from user l I at gaming.stackexchange.com. Answer: In that game, the tw...[More]


How do I transfer wares for a mission in X4 Foundations? How do I transfer wares for a mission in X4 Foundations?

Posted On: September 1, 2023
How do I transfer wares to finish a mission? I'm docked at the correct ship, but transfer wares is disabled in the menu. I'm at the correct ship:. And I have the antimatter cells in m...[More]