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]

What would the purpose of a 0 tick pulse redstone design be? What would the purpose of a 0 tick pulse redstone design be?

Posted On: February 9, 2023
Situation.I accidentally made a redstone design that generates 0 tick pulses.Here is my setup:.It is a very interesting build, but what can I do with it?How does it work?It seems to generate redstone ...[More]


How To Spawn after a specific amount of time How To Spawn after a specific amount of time

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]


Is there an easy way to distinguish suspicious blocks? Is there an easy way to distinguish suspicious blocks?

Posted On: June 14, 2023
Minecraft 1.20 version introduced two new blocks called Suspicious Sand and Suspicious Gravel, which can be brushed to discover items. Those blocks are very fragile, because you lose their loot when b...[More]


Are there any special rewards for completing Adventure Mode multiple times? Are there any special rewards for completing Adventure Mode multiple times?

Posted On: August 2, 2023
I recently completed Adventure Mode in Plants vs. Zombies for the iPhone. Are there any special rewards for completing it multiple times? I noticed that when I started Adventure Mode again I had to...[More]


Sheathe wand Sheathe wand

Posted On: September 15, 2023
If there are going to be any dlc or a second game , i beg you game developers to make a button to sheathe the wand or to have it in your hand until you manually put it back . It is a nice little detai...[More]


How does a heavy build work? How does a heavy build work?

Posted On: April 10, 2024
The first time I started the game I picked Wretch. I knew nothing about the game. I quickly started collecting the heaviest equipment available, thinking it must be best. I started grinding the Godric...[More]


Does Echo Form stack with itself? Does Echo Form stack with itself?

Posted On: January 4, 2024
The description for the Power card Echo Form states. The first card you play each turn is played twice. What happens if you play Echo Form multiple times in a battle? Does the first card played ...[More]


What is this white rhombus icon on the mini map in Enter the Gungeon? What is this white rhombus icon on the mini map in Enter the Gungeon?

Posted On: February 5, 2023
In Enter the Gungeon, this white distorted rectangle icon appeared after I cleared a room in floor 1:.The room looks empty and the icon on the mini map seems to correspond to the walls in the center:....[More]


How To Make Custom Welcome Messages In Vanilla Minecraft? How To Make Custom Welcome Messages In Vanilla Minecraft?

Posted On: February 3, 2023
I was wondering how to make your own custom welcome messages in Minecraft using command blocks. I want it to replace the regular welcome message to make it look more professional. I am really looking ...[More]


How did you guys enjoy Durge? How did you guys enjoy Durge?

Posted On: February 11, 2026
Finished my normal campaign adventure a while ago and am starting off as durge, I was pretty excited so far I was playing as a hero holding back on their urges but as I played I began to become bored,...[More]