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]

Capturing and Transporting Your Villagers Capturing and Transporting Your Villagers

Posted On: June 23, 2021
Do you want your villagers to get eaten by zombies? No? Neither do I. These mindless simpletons may not look the part, but they’re one of the most valuable resources in the vast world of Minecra...[More]


What happens to free games obtained through PlayStation Plus after it expires? What happens to free games obtained through PlayStation Plus after it expires?

Posted On: March 3, 2023
I bought a three months membership for PlayStation Plus some time ago. This membership has already expired. While it was active, I got the classic PSOne Resident Evil titles for free. Will I be able t...[More]


What is the Font Used in Pokemon Conquest? What is the Font Used in Pokemon Conquest?

Posted On: January 26, 2023
What's the font used in Pokemon Conquest's dialogue? More specifically, since I assume it's some proprietary font compiled in the game, where have I seen it before? It looked extremely familiar as soo...[More]


When did you realize you could set camp in the tavern ? When did you realize you could set camp in the tavern ?

Posted On: January 7, 2025
Yesterday. After 230h of playtime.Question from user lauracrdr at BaldursGate3 at reddit.com.Answer:Yea I only figured it out on my second run. And that notice is a lie in Tactician and Honor mode. Th...[More]


In Professor Layton are there multiple solutions to Alchemists Lair 08? In Professor Layton are there multiple solutions to Alchemists Lair 08?

Posted On: March 13, 2023
In Professor Layton and the Miracle Mask, are there multiple solutions to the Alchemist's Lair 08 downloadable puzzle? I find that the four flasks in the bottom right corner should be able to b...[More]


How did you guys enjoy Durge? How did you guys enjoy Durge?

Posted On: February 11, 2026
Finished my normal campaign adventure a while ago and am starting off as durge, I was pretty excited so far I was playing as a hero holding back on their urges but as I played I began to become bored,...[More]


What are the upgrade paths for the academy? What are the upgrade paths for the academy?

Posted On: January 24, 2023
The academy only shows what unit type it upgrades to for existing units already in the army, and only if you've already unlocked the correct race and level upgrades. Can anyone provide or link to a di...[More]


Is there any way to reduce repeated science experiments in KSP? Is there any way to reduce repeated science experiments in KSP?

Posted On: April 10, 2023
There are many science experiments in the game that only give you part of the value whenever you carry them out and retrieve the data. So, even if you rerun the experiment, you only get part of t...[More]


The real reason we don't have Quidditch in Hogwarts Legacy The real reason we don't have Quidditch in Hogwarts Legacy

Posted On: April 18, 2023
Question from user erwin4200 at HogwartsLegacyGaming at reddit.com. Answer: Why adding it to the game as DLC if you can squeeze out money with a separate full triple a release. Answer from us...[More]


What is it and where can I find or take those holopics in Gamedec? What is it and where can I find or take those holopics in Gamedec?

Posted On: February 17, 2023
During the Knight's Code mission, there is a faulty NPC that you have to fix or kill. If you try to expose her, she will give you a job. You have to collect those two holopics. I have sea...[More]