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]

Diablo IV: Is the Elementalist glyph triggered by +X elemental damage affixes? Diablo IV: Is the Elementalist glyph triggered by +X elemental damage affixes?

Posted On: August 21, 2023
The Elementalist Glyph says:. Dealing Fire, Cold, or Lightning damage to an enemy increases all damage you deal to them by 5%[x] for 10 seconds, stacking once per element. I have an item with th...[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]


How to enable the lift to Engineering in Executive in System Shock? How to enable the lift to Engineering in Executive in System Shock?

Posted On: June 3, 2023
I'm in Executive trying to take the lift to Engineering but it is disabled and the PA says: "Elevator disabled. Biohazard emergency." I already went to the three groves and disabled t...[More]


Fortnite Screen Wont Resize PC Fortnite Screen Wont Resize PC

Posted On: February 24, 2023
This might be a bug, but I really can't be sure. I'm probably doing something wrong, so I'm here to ask you guys!. So I have been playing Fortnite Battle Royale recently, and this is ne...[More]


Dynamic Lighting in (vanilla) Minecraft Dynamic Lighting in (vanilla) Minecraft

Posted On: August 25, 2023
I have already seen tutorials on Minecraft regarding dynamic lighting, but none of them seem fancy enough. What I'm thinking of is a way to make dynamic lighting that is clean and not destructi...[More]


Making Money in Pokemon First Generation Making Money in Pokemon First Generation

Posted On: July 14, 2023
In the first generation of pokemon games, you can't do a rematch on trainers you have beat during the course of the game. Since you only get money by fighting trainers, how are you supposed to ...[More]


Was enjoying Hogwarts but had to get refund due to crashing Was enjoying Hogwarts but had to get refund due to crashing

Posted On: July 27, 2023
On PC. Game was running like a dream. Then after I kill the first troll in Hogsmeade or after I talk to the clothier the game crashes. No error message or anything.  Bummed out.  Anyon...[More]


How can I find out the rarest Steam achievement? How can I find out the rarest Steam achievement?

Posted On: March 6, 2023
Having completed the most difficult achievements for a couple of games, I started wondering how difficult the worst achievements can be. One well-defined measure for difficulty of an achievement is it...[More]


BG3 Community, things just got out hand BG3 Community, things just got out hand

Posted On: May 20, 2024
So the BG3 twitter is in the middle of a drama because you should not get the Astarion scars as a tattoo as it is considered disrespectful and/or downright racist towards the black community because t...[More]


Any useful strategies for finding a Nether Fortress in Minecraft? Any useful strategies for finding a Nether Fortress in Minecraft?

Posted On: June 20, 2023
Anyone have useful strategies for finding a Nether Fortress in Minecraft's Nether? I got into the nether and wandered around for quite a while, but didn't find anything. I'm not sure if...[More]