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 does the name Yiga come from? Where does the name Yiga come from?

Posted On: June 15, 2023
I've been told that the Sheikah race in the Legend of Zelda series were originally named the "Seekers"; when adapted to Japanese phonology that becomes Shiikaa which was transcribed back...[More]


Use armor stand location on bedrock Use armor stand location on bedrock

Posted On: March 19, 2024
As you know, you can teleport to an armor stand with /tp @s [type=armor_stand] (or something along the lines of that.).But, I'm trying to use the armor stand location in a /fill command where I use it...[More]


Export a Minecraft Realms world to a locally hosted bedrock server Export a Minecraft Realms world to a locally hosted bedrock server

Posted On: July 12, 2023
I’ve been paying for a Minecraft realm for a while now but now have a static ip and a half decent internet connection so have recently been self hosting a bedrock server myself. Is it possibl...[More]


In Zelda TOTK, What materials do you need to repair the Champion Weapons? In Zelda TOTK, What materials do you need to repair the Champion Weapons?

Posted On: May 23, 2023
After constructing the Boulder Breaker, the goron smith informed me that he would be able to repair it if it breaks, given the materials. What materials do you need to repair the Boulder Breaker? I...[More]


Is Porofessor a cheat in League Of Legends? Is Porofessor a cheat in League Of Legends?

Posted On: February 23, 2023
I've been using a legitimate app called Porofessor that provides a lot of helpful info when playing league of legends. Such as displaying objective / jungle camp timers when things will respa...[More]


Whats the Best Way to Grind XP in Dynasty Warriors 6 Whats the Best Way to Grind XP in Dynasty Warriors 6

Posted On: March 25, 2023
I'm trying to max out the level of all Heroes to get the Achievement: Completist. I'm not sure if I have to only max out heroes I can play in story mode, or all heroes. Does this affect the...[More]


In Hogwarts is it possible to change audio language? In Hogwarts is it possible to change audio language?

Posted On: February 10, 2023
I am playing the Japanese version of Hogwarts Legacy on PC (Steam). The store page says that Hogwarts Legacy has Full Audio support for 8 languages, including Japanese. But, for immersion, I want t...[More]


Did any of Metagaming Concepts board games make it to the PC? Did any of Metagaming Concepts board games make it to the PC?

Posted On: June 11, 2023
I loved Metagaming Concepts' board games like Ogre and WarpWar and always thought that they could have been made into PC games. Did any of Metagaming Concepts' board games make it to the PC...[More]


Is there a Minecraft command for changing biomes? Is there a Minecraft command for changing biomes?

Posted On: August 1, 2023
Is there a command in vanilla Minecraft to change the biome of an area? Question from user Kimatuy at stackexchange. Answer: No, there isn't, and I don't think any mod can do this. ...[More]


Collectors Edition Collectors Edition

Posted On: July 1, 2023
For the Collectors Edition trophy, does it require ALL pages? Or just Revelio pages? Currently stuck on 54/55 in Hogsmeade and can't for the life of me find the missing page, I have all the Rev...[More]