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]

Was enjoying Hogwarts but had to get refund due to crashing Was enjoying Hogwarts but had to get refund due to crashing

Posted On: July 27, 2023
On PC. Game was running like a dream. Then after I kill the first troll in Hogsmeade or after I talk to the clothier the game crashes. No error message or anything.  Bummed out.  Anyon...[More]


The female voice actor is infinitely better than the male. The female voice actor is infinitely better than the male.

Posted On: August 28, 2023
I've been playing Hogwarts Legacy for around 30 hours, and while I love the game, the male voice actor grates on me. His over-pronounciation and "oh golly!" manner of speaking genuinely ...[More]


Does Hogwarts Legacy have a PS4 Version? Does Hogwarts Legacy have a PS4 Version?

Posted On: March 30, 2023
I read an article months ago that said April 4th was the release date for PS4 but I looked and I have to wait till May 5th??? Omg I’m so f’ing angry. Has it always been May 5th? I asked of...[More]


How to get the Steam Workshop to work with Civilization V for a Mac? How to get the Steam Workshop to work with Civilization V for a Mac?

Posted On: June 12, 2023
I currently own Civilization V, (not the Gods & Kings expansion,) and have the latest version of it and have subscribed to several items on the Steam Workshop, but when I start-up the game, none o...[More]


How can I get more ancient arrows in Breath Of The Wild? How can I get more ancient arrows in Breath Of The Wild?

Posted On: August 11, 2023
I've finished the Divine Beast quests and heaps of side quests, but I've never received any more than a handful of ancient arrows. How can I buy or farm more? Question from user l0b0 at sta...[More]


Why am I unable to equip the Drakefire Pistols in Warhammer Vermintide 2? Why am I unable to equip the Drakefire Pistols in Warhammer Vermintide 2?

Posted On: May 29, 2023
I just received a pair of the Drakefire Pistols, but they are obscured by a red cancel icon and I can't equip them. I'm sure that the dwarf was able to equip them in the first Vermintide, and ...[More]


Why would I change my realm layout in Genshin Impact? Why would I change my realm layout in Genshin Impact?

Posted On: October 15, 2023
I recently unlocked the Silken Courtyard realm layout. However I cannot see why I would change to a new layout. None of my furnishings go with me, so I would have to rebuild everything. I tried bef...[More]


Do maps fill out while exploring underground? Do maps fill out while exploring underground?

Posted On: April 26, 2024
When a craftable map is held, exploring the world will fill out areas of the map with an image of the world surface. Will said map be updated the same way if held while exploring underground? Or will ...[More]


How do I replay the credits mini game? How do I replay the credits mini game?

Posted On: December 1, 2023
Is there a way to replay the credits minigame in Super Mario Bros Wonder? I want to aim for a new high score, but I'd like to avoid replaying the final stage for every attempt. Question from us...[More]


Does Terraria on Nintendo Switch support 4 player split-screen multiplayer? Does Terraria on Nintendo Switch support 4 player split-screen multiplayer?

Posted On: November 10, 2023
I've looked at the Terraria official site, wiki, and many forums and see that XBox and Playstation support 4 player split-screen, but it is unclear if the Nintendo Switch supports 2 or 4 player sp...[More]