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]

Consequences of poor performance early in the campaign Consequences of poor performance early in the campaign

Posted On: December 4, 2023
In vanilla DoW2's campaign, does wasting time before the Tyranids show up have any consequences? A friend and I have been playing vanilla DoW 2's coop campaign mode. However, we screwed up ...[More]


how to make dwarves happier in Dwarf Fortress? how to make dwarves happier in Dwarf Fortress?

Posted On: April 28, 2023
Most of my dwarves are not happy, and I don't know how to make them happier in general. So, how can I properly make at least the angrier of them less unhappy/more happy? I really want to pre...[More]


Is there a minecraft command to become immune to damage? Is there a minecraft command to become immune to damage?

Posted On: July 4, 2023
Is there any minecraft command to become completely immune to damage? Question from user Pika Supports Ukraine at stackexchange. Answer: This command will make you invulnerable to most types ...[More]


Why is the firmware of the Xbox Wireless Controller not updated automatically? Why is the firmware of the Xbox Wireless Controller not updated automatically?

Posted On: January 19, 2024
I have now updated all Xbox Wireless Controllers (the first time since years). I didn't know that I had to do this regularly. Is there a reason why this is not done automatically? Updates to games...[More]


What does Johnny say if youve not completed Blistering Love prior to starting Nocturne Op55N1? What does Johnny say if youve not completed Blistering Love prior to starting Nocturne Op55N1?

Posted On: March 15, 2024
This question is about an option near the end of Cyberpunk 2077. There are certain side quests that, if completed, provide extra options to finishing the last quest. What does Johnny say if those side...[More]


What are all the ways to impact your trial grade in Outlast Trials? What are all the ways to impact your trial grade in Outlast Trials?

Posted On: June 22, 2023
In The Outlast Trials, you are given a personal grade (and a team grade) when you complete a trial. It is a letter-grade style score (A+, A, A-, B+ etc.). Performing certain actions can increase your ...[More]


In the Witcher 3, Will I always get the warning that quests may fail? In the Witcher 3, Will I always get the warning that quests may fail?

Posted On: June 8, 2023
Before traveling to the Isle of Mists you get a warning specifying that some quest may fail if you go past this point. The first time I was about to cross this point I double checked that I had comple...[More]


How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)? How to obtain all 3 starters on Pokemon Fire Red - Leaf Green and have them as Original Trainer (OT) (Macbook VBA)?

Posted On: March 31, 2024
I am currently using an Apple M1 Ventura machine with a VirtualBoyAdvance.How do I get all 3 starters (Bulbasaur, Charmander and Squirtle) with Original Trainer (OT) status on a game without using che...[More]


Mass Effect 3 Where is this terminal? Mass Effect 3 Where is this terminal?

Posted On: May 3, 2023
I have to activate the terminal for the Hanar Diplomat quest, but I can't seem to find it? The only terminal I can find in the security checkpoint area (I'm standing next to it on the map) can...[More]


What happens if you transfer a fully EV trained LVL 100 Pokémon from Gen 2 to Pokémon Home? What happens if you transfer a fully EV trained LVL 100 Pokémon from Gen 2 to Pokémon Home?

Posted On: February 16, 2023
Basically, on modern gen Pokémon games, you can only EV train and max up to 2 EV stat at most (255-255 or 252-252-4). But in Pokémon Crystal Gen 2, you could EV train and max all EV stat...[More]