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]

Change skin in cloned minecraft Change skin in cloned minecraft

Posted On: April 5, 2024
I have not really cloned my Minecraft, but kinda. On my laptop I run my Minecraft with command file (.bat) instead of the usual launcher, and on my gaming computer I run it as usual. This is so I can ...[More]


Is there any point in discovering more than one branch for each of the in-game truck brands? Is there any point in discovering more than one branch for each of the in-game truck brands?

Posted On: May 31, 2023
Suppose that I already discovered only one branch for each truck brand. What do I gain from discovering other branches/locations? Question from user user231589 at gaming.stackexchange.com. Answe...[More]


Broom races vs. type of broom Broom races vs. type of broom

Posted On: September 7, 2023
I got annoyed in previous playthroughs that I would miss the winning time by 10+ seconds or multiple hoops. This playthrough I picked a different broom from Albie Weeks, the one that mentions 'sta...[More]


Baldur's Gate 2 workout! Baldur's Gate 2 workout!

Posted On: April 28, 2025
This was made from the feedback I got earlier! I hope y'all enjoy!.Question from user VieEphemere at BaldursGate3 at reddit.com.Answer:15 squats per critical .Level 12 champion fighter, using deadshot...[More]


What does World Age do in Civilization 5? What does World Age do in Civilization 5?

Posted On: March 5, 2023
In advanced game setup, what does the "World Age" option do? The choices for the option are:. 3 Billion Years. 4 Billion Years. 5 Billion Years. Random. Question from user ...[More]


Export a Minecraft Realms world to a locally hosted bedrock server Export a Minecraft Realms world to a locally hosted bedrock server

Posted On: July 12, 2023
I’ve been paying for a Minecraft realm for a while now but now have a static ip and a half decent internet connection so have recently been self hosting a bedrock server myself. Is it possibl...[More]


How to set Steam to always choose the same launch option for a game? How to set Steam to always choose the same launch option for a game?

Posted On: February 5, 2023
Sometimes when you launch a game you have to choose between different launch options:.Is it possible to configure Steam so the startup window is skipped and a specific options is chosen?I my case I wa...[More]


Why do I have the dark arts pack even though I never bought the dark arts pack Why do I have the dark arts pack even though I never bought the dark arts pack

Posted On: July 20, 2023
I don't know how this happened, I pre ordered the base version of the game i never saw a email saying that I have bought the pack. (and yes I can play the dungeon thingy). Question from user bi...[More]


Is it a problem if the wall portion of a bedroom overlaps with another one in Dwarf Fortress? Is it a problem if the wall portion of a bedroom overlaps with another one in Dwarf Fortress?

Posted On: December 26, 2023
I've just recently learned that a bedroom should contain the walls too, but I only have a 1 tile wide wall between my bedrooms. Is it a problem if these room designations overlap? Question f...[More]


Where does this blue cube-shaped object belong in Unpacking? Where does this blue cube-shaped object belong in Unpacking?

Posted On: July 25, 2023
I cannot understand what this blue cube-shaped object is. I cannot find where it belongs. Every place I put it in shows it's wrong. Where should I place this object? Question from user sdo at s...[More]