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]

How to learn the duration of spells in Baldurs Gate 3? How to learn the duration of spells in Baldurs Gate 3?

Posted On: August 14, 2023
One thing that continues to annoy me is that a whole lot of spells (and potions) have no information of how long the spell will last. Neither in the spell description nor once actually cast. For ex...[More]


What game is this music featured in Garrys Mod Idiot Box from? What game is this music featured in Garrys Mod Idiot Box from?

Posted On: September 3, 2023
I was watching some funny Garry's Mod Idiot Box episodes on YouTube. In episode 3 at 5:41 is a scene that has some music being played in the background. What game is from? It sounds so familiar to...[More]


How do monsters in NetHack attack? How do monsters in NetHack attack?

Posted On: April 25, 2024
There is much information about how the player attacks (or attempts to attack) in the weapon spoiler. But there is no information on how monsters attack.How is the monsters value of to-Hit* calculated...[More]


i CANNOT beat this fight ? i CANNOT beat this fight ?

Posted On: December 5, 2024
This lorroakan fight seems impossible, i’ve tried ‘hold person’, ‘dominate person’, ‘silence’ and he just gets saved from them all and absolutely whoops my ass. i’ve tried going for th...[More]


Can you romance anyone in Hogwarts Legacy? Can you romance anyone in Hogwarts Legacy?

Posted On: July 20, 2023
I'm wondering if I'm able to get my flirt on with someone from Hogwarts. Is it possible to have a romantic relationship with anyone in Hogwarts Legacy? Question from user Shaun Roselt at...[More]


Ancient Magic Theory relating to Harry Potter Ancient Magic Theory relating to Harry Potter

Posted On: July 31, 2023
So we know that the Keepers became Keepers because they wanted to keep the truth of the ancient magic from others because it could turn them evil, as we see with Isidora. It turned her dark. What i...[More]


Can you cast a Patronus Charm in Hogwarts Legacy? Can you cast a Patronus Charm in Hogwarts Legacy?

Posted On: July 19, 2023
Is it possible to use the Patronus Charm in Hogwarts Legacy? If yes, then where and how? Question from user Shaun Roselt at stackexchange. Answer: No. According to an article on videogamer...[More]


Damn, Minthara. Just pop off I guess. Damn, Minthara. Just pop off I guess.

Posted On: October 30, 2024
Question from user AcidicJester at BaldursGate3 at reddit.com.Answer:As long as we have spell slots, we win the game.Answer from user Parking_Put_1701 at BaldursGate3 at reddit.com....[More]


Multiclass for fighter? Multiclass for fighter?

Posted On: October 7, 2023
Im asking cuz im still in act 1 but since i learned about multi-classing, i was wondering on what is the best class and subclaas combo fo multiclass with fighter? Or if i should stay pure fighter ....[More]


Is this Moaning Myrtle in Hogwarts Legacy? Is this Moaning Myrtle in Hogwarts Legacy?

Posted On: June 23, 2023
My fiance was playing Hogwarts Legacy and this girl walked by that looks like Moaning Myrtle. Idk if its supposed to be her or just look like her but either way it's funny. Question from user F...[More]