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]

Which explosive guns can cause critical hits? Which explosive guns can cause critical hits?

Posted On: January 24, 2023
When I wrote How do I use elemental effects in Borderlands 2? to the best of my knowledge Explosive guns couldn't critical; I've tested this with "grenade" Assault Rifles, Gyrojet Tourge Assault Rifle...[More]


Hiring a builder in X4 Foundations Hiring a builder in X4 Foundations

Posted On: April 9, 2023
I have gotten to the part in the questline where. the player unlocks the station in Grand Exchange 1. and I can't find a builder on any main station, wharf, or shipyard, I haven't spotte...[More]


Whats the difference between DirectX 10 and DirectX 9? Whats the difference between DirectX 10 and DirectX 9?

Posted On: May 29, 2023
In Civilization V, when starting the game, it offers me the option of using DirectX 10 or DirectX 9. Are there any graphics quality or performance gains present when using the DirectX 10 version? I kn...[More]


Is this Moaning Myrtle in Hogwarts Legacy? Is this Moaning Myrtle in Hogwarts Legacy?

Posted On: June 23, 2023
My fiance was playing Hogwarts Legacy and this girl walked by that looks like Moaning Myrtle. Idk if its supposed to be her or just look like her but either way it's funny. Question from user F...[More]


How do I befriend Undyne? How do I befriend Undyne?

Posted On: April 17, 2024
So, I just beat undertale, and I got the neutral ending. At the end, . Flowey told me that I wasn't a good enough friend to Papyrus and Undyne. Then I talked to Papyrus, and he said Undyne wants to b...[More]


This guy is worse than I thought This guy is worse than I thought

Posted On: January 14, 2025
I finally managed to finish a honor mode, and I made a choice I never made before. .This time I actually agreed to sign Raphael's contract for the Orphic Hammer because I really wanted to beat the gam...[More]


What are useful or fun times to use Speak With Dead? What are useful or fun times to use Speak With Dead?

Posted On: November 8, 2023
This is something I feel like I'm missing out on. Does it work on Undead? I always have characters that have the ability but never use it. I'm on my second playthrough. Every time I've tri...[More]


How do you pet Bubba with a controller? How do you pet Bubba with a controller?

Posted On: August 30, 2023
When playing Holocure on keyboard you can pet Amelia's dog Bubba by pressing P while standing next to him. However, I'm playing on Steam Deck. Is there a way to pet Bubba when playing with a c...[More]


Stuck in Marathon 1 level 5 Stuck in Marathon 1 level 5

Posted On: March 4, 2024
I have gotten to level 5 (Couch Fishing) in Marathon, where you have to flip 3 switches to prevent Durandal's access to that area. In the beginning Leela tells you where the switches are, but doesn't ...[More]


How do I unlock the 6th world in EscapeVektor? How do I unlock the 6th world in EscapeVektor?

Posted On: June 26, 2023
In EscapeVektor (Wii), I've gotten a star in every level and all 5 worlds, but I am unable to unlock the path to the 6th world, which I believe is grayed out and directly above the first world. ...[More]