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 do you role play anything but nice characters? How do you role play anything but nice characters?

Posted On: October 27, 2023
I'm someone who feels bad in any video game if I am mean to some NPC. I'm also someone who tries to get everything in a single playthrough and try to pick the right dialogue option for that, r...[More]


Whats bacon good for in PVZ? Whats bacon good for in PVZ?

Posted On: September 22, 2023
In Plants vs. Zombies, Crazy Dave has bacon for sale. Its description is "Mmmmmmm. Delicious!". I've bought one or two slices of bacon, but I've never noticed a benefit. What's t...[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]


Can you play the entire game solo? Can you play the entire game solo?

Posted On: May 28, 2024
Just curious. It seems like it would be impossible with some of the fights but I wonder if it can be done. Like you just use tav and leave all your companions at camp every day?Question from user glit...[More]


How do I open the Supply Drop in Firewatch? How do I open the Supply Drop in Firewatch?

Posted On: March 27, 2023
On Day 33 of Firewatch I was asked to retrieve a supply drop from the northern part of the park. I found the supply drop, but it's locked with a 4 digit passcode. How do I open the supply drop? Sh...[More]


What should I do when I run out of potions in Final Fantasy 16? What should I do when I run out of potions in Final Fantasy 16?

Posted On: June 30, 2023
I am a short way into the game, just reached Martha's Rest in Rosaria, and there is a large open map at this point. I have taken the opportunity to grind some AP. However I only have a stock of...[More]


How do redstone torches (circuits) work in Minecraft? How do redstone torches (circuits) work in Minecraft?

Posted On: September 19, 2023
I tried reading the minecraftwiki page on the subject, but without an understanding of precisely how the torches work, none of it makes sense. I have a lot of questions, so even an article explaining ...[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]


New player here - does shadowheart suck early game? New player here - does shadowheart suck early game?

Posted On: November 15, 2024
I’m playing on Tactician. I thought healing would be nice to have but because it’s limited by having to long rest (and I’m trying to save camp supplies) I am very conservative with it. I feel li...[More]


Can players spawn on glass blocks in Minecraft? Can players spawn on glass blocks in Minecraft?

Posted On: July 18, 2023
I know that mobs can't spawn on glass blocks as can be seen from this question and answer. But what about players? If I have my spawn area covered in glass blocks, will I be able to spawn on th...[More]