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]

Whats the software used in Mega Man X speedruns? Whats the software used in Mega Man X speedruns?

Posted On: April 25, 2024
I'm starting out with my personal journey toward a 100% speedrun of Mega Man X, and I noticed that pretty much every speedrunner on YouTube is using a software that keeps track of time for each level:...[More]


How does durability work in Breath of the Wild? How does durability work in Breath of the Wild?

Posted On: January 15, 2023
In the tool tips, the game always says to "keep an eye on your durability" or that certain actions might "knock off some durability", but so far I have only seen 3 stages of durabi...[More]


How can I recognize wanted criminals in Godlike Burger? How can I recognize wanted criminals in Godlike Burger?

Posted On: October 17, 2023
There's this event in Godlike Burger where your restaurant may sometimes be visited by wanted criminals that you can kill for a money reward. Problem is, I don't see any distinguishable marks ...[More]


How do Zonaite and Zonai-based materials work together? How do Zonaite and Zonai-based materials work together?

Posted On: June 15, 2023
I am very confused about Zonai-based materials and how they work together to produce bigger/larger things. Specifically:. Zonaite. Zonai Charges. Energy Cells. Zonai Devices. Autobuild ...[More]


Where should I sell exploration data for the most benefit? Where should I sell exploration data for the most benefit?

Posted On: June 15, 2023
I spend a LOT of time outside the bubble. (Both the Solar bubble and Colonia area.) Sometimes, I'll be out for months at a stretch and come back with tens of millions of CR worth of exploration da...[More]


Are there any Koroks in the depths? Are there any Koroks in the depths?

Posted On: May 20, 2023
Are there any Koroks or Koroks Seeds to find in the underground depths? I've found them in the Sky and on the Surface, but I haven't spotted any in the Depths yet. Question from user Stevoi...[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]


Am I doing this Durge thing right? About to hit act 2 Am I doing this Durge thing right? About to hit act 2

Posted On: June 24, 2025
Question from user Smiley_707 at BaldursGate3 at reddit.com.Answer:Umm… I think you may have an IRL dark urge.Answer from user TheMediumEagle at BaldursGate3 at reddit.com....[More]


How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)? How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)?

Posted On: March 31, 2024
I am currently using an Apple M1 Ventura machine with a VirtualBoyAdvance.How do I get all 3 starters (Bulbasaur, Charmander and Squirtle) with Original Trainer (OT) status on a game without using che...[More]


What are the benefits and disadvantages of the Global Trust and Eden Initiative factions? What are the benefits and disadvantages of the Global Trust and Eden Initiative factions?

Posted On: March 26, 2024
I always play as the Eden Initiative. Am I missing out on anything by not playing Global Trust?Question from user victoriah at gaming.stackexchange.com.Answer:The Global Trust tends to use much more e...[More]