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]

Where can I find the Legend of Korra save files? Where can I find the Legend of Korra save files?

Posted On: January 18, 2023
I'm referring to this game. I've looked everywhere, and can't seem to find the save file. Google was no much help either, with various resources about games and save files, but with this g...[More]


Hey guys! I really need help with Hogwarts Legacy Hey guys! I really need help with Hogwarts Legacy

Posted On: March 11, 2023
Hey guys! I really need help, I have the game on PC but am not very tech savvy, so don’t really understand them. My laptop normally runs games really well, sims 4, Skyrim (on high I think) but t...[More]


Are any of the quests in Horizon: Zero Dawn time sensitive? Are any of the quests in Horizon: Zero Dawn time sensitive?

Posted On: April 4, 2023
I started playing Horizon: Zero Dawn a few weeks ago and have been focusing mainly on sidequests and exploring the world. I advanced the game just enough so I got to Meridian, but as I collected more ...[More]


If I have fewer than 6 Pokemon in my party, does each gain more EXP? If I have fewer than 6 Pokemon in my party, does each gain more EXP?

Posted On: March 24, 2024
I have a few weak Pokemon that I'm trying to level quickly. I'm wondering if it helps to keep less than 6 Pokemon in my party.Does that divide the total EXP gained by fewer Pokemon? Or does each Pokem...[More]


What happens if the guards begin a search while you have the VIP Pass on Rock the Cradle? What happens if the guards begin a search while you have the VIP Pass on Rock the Cradle?

Posted On: October 24, 2023
If you have the VIP Pass on Rock the Cradle, all private areas of the heist essentially become public areas. Cameras and guards do not detect you in casing mode in the VIP area of the nightclub, or in...[More]


Is it necessary to play Crysis Warhead in order to enjoy the full game experience? Is it necessary to play Crysis Warhead in order to enjoy the full game experience?

Posted On: March 27, 2023
I want to buy Crysis, but I see there are Crysis, Crysis Warhead, and Crysis Max Edition. The thing here is that Crysis Warhead has a multiplayer component, but does it add anything extra to the story...[More]


How to create a free items server in Terraria? How to create a free items server in Terraria?

Posted On: March 7, 2024
I mean like those servers that have chests full of items that never become empty.I am not a game programmer but I think it shouldn't be that hard and I can try it myself.I think they use the TShock se...[More]


Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function? Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function?

Posted On: April 3, 2023
SR latches and T-flip-flops are trivial circuitry in Minecraft redstone, but it appears that there is little to be found for a circuit that combines both, allowing for both SR and T functionality. ...[More]


How do I make mobs slowly respawn up to a certain cap? How do I make mobs slowly respawn up to a certain cap?

Posted On: January 27, 2023
I am currently making a Legend of Zelda themed adventure map. I am struggling to make it, so enemies spawn every few minutes but not spawn large amounts over time. I have tried using things like hoppe...[More]


How can I recognize wanted criminals in Godlike Burger? How can I recognize wanted criminals in Godlike Burger?

Posted On: October 17, 2023
There's this event in Godlike Burger where your restaurant may sometimes be visited by wanted criminals that you can kill for a money reward. Problem is, I don't see any distinguishable marks ...[More]