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]

Can you import a save from Walking Dead Season 1 to Season 2? Can you import a save from Walking Dead Season 1 to Season 2?

Posted On: March 25, 2023
I recently bought Walking Dead Season 2. I remember hearing that Season 2 might import your decisions from Season 1. Is this true and if so is there anything I need to do to make it work? Question ...[More]


What’s you favorite spell in Hogwarts Legacy? What’s you favorite spell in Hogwarts Legacy?

Posted On: March 23, 2023
I really like depulso it’s really cool that you can slam enemies into each other with it. Also revelio used to be my favorite spell but after hearing it over 10,000 times in one hour it’s ...[More]


When do enemies get added to to the Piklopedia? When do enemies get added to to the Piklopedia?

Posted On: April 6, 2024
What are the conditions to unlock an enemy's Piklopedia entry in Pikmin 2? Do entries show up if an enemy is encountered for the first time? Do they have to be defeated first? Does a sample of the ene...[More]


Can I abandon my Kerbonaut in space in Kerbal Space Program? Can I abandon my Kerbonaut in space in Kerbal Space Program?

Posted On: February 20, 2023
My little Kerbonaut is currently circling the planet in a stable orbit, and seems to be having a grand ol' time with it. You should see the smile on his face. He's been circling now for what l...[More]


Can you change your crew name? Can you change your crew name?

Posted On: April 28, 2024
Near the start of the campaign of Need for Speed Carbon on PS3, you are asked to pick a crew logo and name. Is it possible to change the crew name later on?Question from user Stevoisiak at gaming.stac...[More]


Stuck with the conjuration curse Stuck with the conjuration curse

Posted On: August 22, 2023
I have got 139/140 conjurations and I am missing the medium constructed decorations. All my collection chests are completed across the maps, I have checked the butterfly missions more than 5 times,...[More]


Is Hogwarts Legacy worth buying? Is Hogwarts Legacy worth buying?

Posted On: March 15, 2023
I’m not a big gamer, but I consider myself a big Harry Potter fan. The thing is, I’m very confused about this game. It looks amazing, but I’m afraid that I’ll be spending my mo...[More]


What does food satisfies a random group member mean? What does food satisfies a random group member mean?

Posted On: November 5, 2023
On the Witch's Hut event map, the trick card for Foggy Food says:. Food satisfies a random group member. What does that description mean? What does Foggy Food actually do? Question from u...[More]


How does Steam Input measure time? How does Steam Input measure time?

Posted On: March 18, 2023
How are units of time measured in the Steam Input menus? For example, if I set an action's Fire Start Delay to to 100, how long will the delay be? Question from user Stevoisiak at gaming.stacke...[More]


How do I check if the HD textures are correctly loaded? How do I check if the HD textures are correctly loaded?

Posted On: February 15, 2023
Is there a way to check if the HD textures of Skyrim are correctly loaded in the game? I installed them without an error, but I'm not quite sure whether they are actually active, as I can't re...[More]