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 exactly did nocturne become a woman? how exactly did nocturne become a woman?

Posted On: December 11, 2024
Not to be rude but im a divinity player interested in baulders gate so how exactly did it happen is it kinda like elder scrolls where a necromancer goes into a thingy becomes immoble eventually and th...[More]


Are the Poker Night games rigged? Are the Poker Night games rigged?

Posted On: February 7, 2023
I've played poker in real life and I've played Poker Night at the Inventory (but not Poker Night 2). I have the feeling that the Poker Night engine manipulates the deck to give players a mo...[More]


How do I solve level 7 category normal on Lineum? How do I solve level 7 category normal on Lineum?

Posted On: April 14, 2023
All the stone going around the green and the blue has uneven amount. Plus I keep getting bored trying to figure it out but keep getting the same thing over and over. Question from user Hunter Jason...[More]


Command to say player coords in chat? Command to say player coords in chat?

Posted On: January 28, 2023
Trying to get a command that tells a player's coords in chat. I have a working command: /data get entity @s Pos, but I assume I would need to combine this with /tellraw?Question from user Aceplante at...[More]


Is it possible to get a Diamond Shovel from a Toolsmith villager in Minecraft Java Edition? Is it possible to get a Diamond Shovel from a Toolsmith villager in Minecraft Java Edition?

Posted On: March 3, 2023
According to the Wiki and some forums, an Expert-level Toolsmith villager can offer three types of trades. Diamond -> Emerald. Emeralds -> Enchanted Diamond Axe. Emeralds -> Enchante...[More]


What weapon talent tree combination provides the highest dps with the flail and shield? What weapon talent tree combination provides the highest dps with the flail and shield?

Posted On: October 14, 2023
New World has a new expansion, and with it, a new weapon. I've been having a lot of fun with it and am still playing around with combinations. With most of the other weapons in the game, I'...[More]


Is there any point in discovering more than one branch for each of the in-game truck brands? Is there any point in discovering more than one branch for each of the in-game truck brands?

Posted On: May 31, 2023
Suppose that I already discovered only one branch for each truck brand. What do I gain from discovering other branches/locations? Question from user user231589 at gaming.stackexchange.com. Answe...[More]


Tell me why I should like Minsc Tell me why I should like Minsc

Posted On: September 27, 2023
Because he’s the first person at camp that I don’t like (well except Mizora). I don’t like his character and at this point I don’t really. Red a ranger. Question from user B...[More]


Hogwarts Legacy, What the hell was that? Hogwarts Legacy, What the hell was that?

Posted On: June 9, 2023
Okay.. I was just running around doing some easy side quests (or so I thought) and saw a cute little house elf selling a shop. Fast forward a few minutes and I suddenly end up in a literal HORROR G...[More]


Can you control what ore a drill harvests when its placed over multiple ores? Can you control what ore a drill harvests when its placed over multiple ores?

Posted On: January 5, 2024
I'm trying to harvest the maximum amount of uranium possible from a small patch. Unfortunately, there is a bordering coal patch nearby as well, and two of my electric mining drills are within rang...[More]