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]

Does boss difficulty change depending on the floor? Does boss difficulty change depending on the floor?

Posted On: February 27, 2024
In Splatoon 3 Side Order, because of the randomization of the tower, there are three bosses that can be fought on either floor 10 or 20 (Asynchronous Rondo, Pinging Marciale, and Parallel Canon).Does ...[More]


What does a plus cells and gems icon on the Dead Cells world map mean? What does a plus cells and gems icon on the Dead Cells world map mean?

Posted On: April 18, 2023
During a run with 2 Boss Stem Cells enabled, I noticed something odd on the World Map screen. The box for the Ossuary biome had icons of cells, gems, and a plus sign over it. When I died and started a...[More]


Can I tell if an enemy is out of range in Elden Ring? Can I tell if an enemy is out of range in Elden Ring?

Posted On: August 10, 2023
I'm playing as an Astrologer, so my main means of attack is to cast spells from a distance, as I barely do any physical damage. However, I noticed that my spells have a certain range, and firin...[More]


Attempting my first honor mode run Attempting my first honor mode run

Posted On: September 10, 2024
I've beat the game twice on balanced with different party combos and classes to familiarize myself with as much as the game as possible. .My plan for my HM run is:.Spores Druid Tav, OH Monk Karlach (m...[More]


Does Hogwarts Legacy have a PS4 Version? Does Hogwarts Legacy have a PS4 Version?

Posted On: March 30, 2023
I read an article months ago that said April 4th was the release date for PS4 but I looked and I have to wait till May 5th??? Omg I’m so f’ing angry. Has it always been May 5th? I asked of...[More]


How to pick up the walkie talkie in Walking Dead Season 2: Episode 3? How to pick up the walkie talkie in Walking Dead Season 2: Episode 3?

Posted On: March 25, 2023
I am stuck at the quick time event where Clem has to pick up the walkie talkie. I see two brackets moving towards each other, yet I forgot what to do for those quick time events. How to pick up the...[More]


I’m completely stuck I’m completely stuck

Posted On: November 4, 2023
I think I’m on act 2, but sorry if I’m not for the tags, but anyway, I’ve been trying all day to complete this bit where you have to kill the Inquisitor person, I went into the porta...[More]


How do I fix pink Hearthstone screen (android)? How do I fix pink Hearthstone screen (android)?

Posted On: January 18, 2023
Since the last update (16 March 2016) my Hearthstone screen is not as it used to be. I like pink, but not this much. How do I fix this? Question from user Mathias711 at gaming.stackexchange.com. ...[More]


Will the Cursed Swords one-hit death effect apply in Dead Cells? Will the Cursed Swords one-hit death effect apply in Dead Cells?

Posted On: April 18, 2023
The description of the Cursed Sword says "One hit and you're dead", presumably meaning you will die in one hit while it is equipped. However, there's a mutation called Porcupack that...[More]


I keep having to reload and it’s getting annoying I keep having to reload and it’s getting annoying

Posted On: October 28, 2023
I keep forgetting to do things before entering nightsongs prison and having to reload. I thought I had got it, finally, but I looked up a checklist and I just straight up never found the one who was g...[More]