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 Lore Bard get good at later levels? Does Lore Bard get good at later levels?

Posted On: September 25, 2023
Hey all, I know basically all straight classes end up good enough, but I am trying to decide between a pure sorcerer or pure bard. I have a paladin/warlock sitting at the start of ACT 3 and just got b...[More]


Can't get a diamond to be given to entity after taming a cat Can't get a diamond to be given to entity after taming a cat

Posted On: January 26, 2023
((never mind I have found a way)).I am trying to make a "script" to stop people from killing cats in my Minecraft server (please don't ask why). My idea is that I want when you tame a cat, a diamond i...[More]


Is hacking spectres in the game mode Attrition recommended? Is hacking spectres in the game mode Attrition recommended?

Posted On: May 17, 2023
When hacking a spectre in the game mode 'Attrition', you'll get points (about 4) for that and nearby spectres change sides and start following you. But they now can be killed by the enemy ...[More]


Maximum number of survivors in team Walking Dead Maximum number of survivors in team Walking Dead

Posted On: March 25, 2023
In The Walking Dead - No Man's Land, on iOS platform, what is the maximum number of survivors that one can team up in one level? I've unlocked one slot more from those available since the b...[More]


Which stat does Eldritch Blast use when grabbing it from the Spell Sniper feat? Which stat does Eldritch Blast use when grabbing it from the Spell Sniper feat?

Posted On: September 2, 2023
Eldritch Blast is a Warlock cantrip, and Warlocks use their Charisma for their spells, even when you multiclass. If I have Gale the Wizard (whose spellcasting stat is Intelligence) learn the Spell ...[More]


Why am I unable to ascend as Astarion? Why am I unable to ascend as Astarion?

Posted On: September 12, 2023
I've just defeated Cazador, but am missing the dialogue option to ascend in his place. All I can do is stab him. What did I miss and is there any way to fix this other than reloading back? Ques...[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]


What happened to old high scores on the updated Imagine Dragons maps? What happened to old high scores on the updated Imagine Dragons maps?

Posted On: October 19, 2023
Beat Saber v1.28.0 updated the Imagine Dragons Song Pack to change the layouts of existing songs. Surprisingly, it looks like old high scores from the previous versions weren't wiped from the lead...[More]


Why isnt Diep.io loading? Why isnt Diep.io loading?

Posted On: February 2, 2023
I have just got on to diep.io, and it is stuck on the "Connecting" screen. The tab also keeps refreshing. I see many errors on my developer tools when I press the F12 key.I am using a Windows 10 Surfa...[More]


Doable using non-default weapons in Resident Evil 4? Doable using non-default weapons in Resident Evil 4?

Posted On: April 22, 2023
There is an achievement called "Minimalist", which is achievable when you: Complete the main story using only knives and handguns. (Excluding specific battles.). This does not specifies w...[More]