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 do I quickly exit a stage? How do I quickly exit a stage?

Posted On: April 24, 2024
Is there a way to quickly exit a stage in Shantae: Half-Genie Hero? When I revisit stages to complete an objective or get collectibles, it's annoying to have to re-complete the entire stage.Question f...[More]


How to find the Dishonored combination of the underwater safe? How to find the Dishonored combination of the underwater safe?

Posted On: May 12, 2023
In Central Rudshore of the Flooded District before entering the Daud's base there is a safe in the flooded basement of a nearby building. Where am I supposed to find the combination of it in-game?...[More]


Can I turn off this Necromancer visual effect? Can I turn off this Necromancer visual effect?

Posted On: June 16, 2023
I was in a team with a Necromancer and one the skills was to create a patch of black smoke. However this skill seems to just obscure everything! My character, my loot, enemies and even chests. This...[More]


Can you get duplicate standees from the Poplin Shop? Can you get duplicate standees from the Poplin Shop?

Posted On: November 5, 2023
When I buy a Standee Surprise from the Poplin Shop it gives me a random Standee. Is it possible to get a duplicate Standee I already have? Question from user Stevoisiak at stackexchange. Answer:...[More]


What feats do you use the most? What feats do you use the most?

Posted On: April 19, 2024
For me the staples are every melee attacker has to have savage striker, every spell caster has spell sniper, and usually everyone gets a tough thrown in there as well. What are your go to feats and wh...[More]


Is Hogwarts Legacy Worth Buying? Is Hogwarts Legacy Worth Buying?

Posted On: April 7, 2023
Calling all Muggles, Wizards, Witches and magical creatures with Classifaction XXXX!. A month on, what are peoples opinions on the game as I'm considering buying it? This can be related to g...[More]


Ehhhhh... I need help... Ehhhhh... I need help...

Posted On: April 24, 2024
I play on the highest difficulty so i have only one save. For a magic reason the game decide to auto save at this exact moment. Is there any way for me to not need to restart a new game? .https://prev...[More]


Does XBox gamepad emulator software exist for the PC? Does XBox gamepad emulator software exist for the PC?

Posted On: March 21, 2023
What I'm hoping to do is use a second keyboard and/or mouse in the place of a gamepad for games that require a gamepad to enable multiplayer gaming. I've noticed a few games that are XBox port...[More]


What is the name of this shader pack? What is the name of this shader pack?

Posted On: March 22, 2024
I have always seen this shader pack throughout the internet, but I could never find any info about what it was called. (The main differences are the clouds and the water reflections.).Screenshot.Quest...[More]


How is vehicle respawn time calculated in Battlefield 1? How is vehicle respawn time calculated in Battlefield 1?

Posted On: March 11, 2023
I was wondering if anyone knew anything about the formula for vehicle respawn time is calculated. For example, the vehicle respawn time could be as simple as 2 minutes after the last vehicle of the sa...[More]