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]

In A Dark Room, Is there a a reputation system for me among villagers? In A Dark Room, Is there a a reputation system for me among villagers?

Posted On: May 19, 2023
I was wondering if there was a reputation system that makes my villagers love/hate me with things such as choosing whether or not to hang the thief, cure plagues, give to beggars, etc. impacting it. ...[More]


How do you pet Bubba with a controller? How do you pet Bubba with a controller?

Posted On: August 30, 2023
When playing Holocure on keyboard you can pet Amelia's dog Bubba by pressing P while standing next to him. However, I'm playing on Steam Deck. Is there a way to pet Bubba when playing with a c...[More]


Just Happened to Capture this in Hogwarts Legacy Just Happened to Capture this in Hogwarts Legacy

Posted On: June 10, 2023
Question from user BurnDownBabe at HogwartsLegacyGaming at reddit.com. Answer: I dont know if it was my second or third time around in that game, I tried to attack the dugbog. Obviously didnt wo...[More]


TF2 Why did someone in my server find a ton of drops all at once? TF2 Why did someone in my server find a ton of drops all at once?

Posted On: May 5, 2023
I was playing TF2 and all of a sudden someone found a lot of drops all at once:. How did he get these all at once? Question from user Jon at gaming.stackexchange.com. Answer: The person in...[More]


Why do I need at least 30 Splatoon3 wins to earn the relative special weapon badge? Why do I need at least 30 Splatoon3 wins to earn the relative special weapon badge?

Posted On: April 16, 2023
According to Splatoon wiki:. If a player wins a match with a special weapon a certain number of times, they obtain normal, silver and gold badges. The number of required wins are 30, 180 and 120...[More]


Has anyone done an absolutist run? Has anyone done an absolutist run?

Posted On: March 12, 2025
Not killing the mind flayer in the very beginning. Having compassion for it lol. Siding with Minthara. Pick all absolute dialogue options. Let Marcus take Isobel. Get branded. Lol.I was just wondering...[More]


How do I make mobs slowly respawn up to a certain cap? How do I make mobs slowly respawn up to a certain cap?

Posted On: January 27, 2023
I am currently making a Legend of Zelda themed adventure map. I am struggling to make it, so enemies spawn every few minutes but not spawn large amounts over time. I have tried using things like hoppe...[More]


How do I get SCUBA gear in GTA 5? How do I get SCUBA gear in GTA 5?

Posted On: April 25, 2023
I am looking for a way to equip Scuba gear outside of a mission. I know that you are automatically equipped with scuba gear when you exit the Submersible while in water. Can anyone other than th...[More]


Empty slot wont accept order in Xcom2 Empty slot wont accept order in Xcom2

Posted On: July 11, 2023
When I try to drag those available orders to the empty slot (red arrows) they won't move and make a bip sound like "can't do it". There is no explanation why it won't accept. ...[More]


How do I keep my animals from eating my people food in Rimworld? How do I keep my animals from eating my people food in Rimworld?

Posted On: May 22, 2023
I've got a reasonably flourishing village with decent population and all the amenities. However, lately I've been having severe issues because my tame animals keep breaking into the food wareh...[More]