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]

Is there any way into the Abandoned the Zelda Hebra Mine forge tower? Is there any way into the Abandoned the Zelda Hebra Mine forge tower?

Posted On: July 7, 2023
In the Abandoned Hebra Mine, on top of the forge construct tower there is some unusual smoke coming out of the chimney. Is there any way into this tower? Or is there nothing more to it?. I've d...[More]


Is there an in-world explanation why Aloy needs to learn skills again? Is there an in-world explanation why Aloy needs to learn skills again?

Posted On: April 14, 2023
I just finished playing Horizon: Zero Dawn on PC. While waiting for a PC version of Forbidden West, or ability to buy PlayStation 5, I have read the reviews and it looks like in Forbidden West Aloy ne...[More]


What happened to the Minecraft Update feed? What happened to the Minecraft Update feed?

Posted On: September 26, 2023
In the launcher, prior to version 1.8, Minecraft used to have a log of the updates that were implemented in each version. But now, the only thing I have seen since Microsoft bought Minecraft is a p...[More]


I dont want NPCs to get killed by Vampire Attacks in Dawnguard I dont want NPCs to get killed by Vampire Attacks in Dawnguard

Posted On: July 24, 2023
I bought Dawnguard before ending a questline from Skyrim. Because of that, I often visit main cities to do some quests. Every time I visit a city, I find dead bodies of NPCs that I talked to earlier. ...[More]


Can players spawn on glass blocks in Minecraft? Can players spawn on glass blocks in Minecraft?

Posted On: July 18, 2023
I know that mobs can't spawn on glass blocks as can be seen from this question and answer. But what about players? If I have my spawn area covered in glass blocks, will I be able to spawn on th...[More]


How to setup Xbox Series S|X for a family? How to setup Xbox Series S|X for a family?

Posted On: March 7, 2023
I'm new to Xbox and have created an account for me and my children and have linked them to as a family. Will all members of the family be able to play if I login and setup the Xbox with my acco...[More]


If I leave a Minecraft Realm will my signs disappear or still be there? If I leave a Minecraft Realm will my signs disappear or still be there?

Posted On: April 12, 2023
I wrote some notes on sign, if I leave that Minecraft Realm will my signs disappear or still be there? Question from user pickle at gaming.stackexchange.com. Answer: If this one below is the ...[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]


These XP requirements are a very sour note for me These XP requirements are a very sour note for me

Posted On: August 6, 2023
So I’ll just open with this. I hate side quests. I’m a main campaign only kind of person and if I wanna check out some other things on my own I will but I HATE being forced to do them. . ...[More]


Replacing Water Blocks With Lava in Minecraft Replacing Water Blocks With Lava in Minecraft

Posted On: February 20, 2023
In Minecraft (Bedrock), I'm trying to replace water blocks with lava using a /fill command, e.g., on a region already containing water (note: this command covers the entire water region, there'...[More]