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 can I copy part of a Minecraft world into another Minecraft world? How can I copy part of a Minecraft world into another Minecraft world?

Posted On: January 11, 2023
Backstory.The places that have been built on in my world aren't that big. It's a ~100x~100 square, a ~150x~50 rectangle in the Nether, and another ~100x~100 square accessed by portals.The world is cu...[More]


What does World Age do in Civilization 5? What does World Age do in Civilization 5?

Posted On: March 5, 2023
In advanced game setup, what does the "World Age" option do? The choices for the option are:. 3 Billion Years. 4 Billion Years. 5 Billion Years. Random. Question from user ...[More]


PS5 controller doesnt charge PS5 controller doesnt charge

Posted On: July 5, 2023
I have bought controller to use on PC. But when I connect it to USB to charge, orange light glows once and stops. If I connect it to Mac, it glows solid orange with white middle light. It should...[More]


My Arabella cosplay My Arabella cosplay

Posted On: July 24, 2024
Question from user FridaAih at BaldursGate3 at reddit.com.Answer:Don’t go stealing any idols, or your mom will feed you to a gnoll.Answer from user Tavminater at BaldursGate3 at reddit.com....[More]


Rifle in Vault 15 Rifle in Vault 15

Posted On: April 29, 2024
I am reliving old RPG glory in Fallout 1. I am currently in Vault 15 and I remember that you can find the hunting rifle somewhere in the bathroom on the 2nd level. I check all the bathrooms but can't ...[More]


Can I change my house later in the game? Can I change my house later in the game?

Posted On: July 19, 2023
Once I've chosen my house, is it possible to change my house to a different house later in the game or do I need to start a new game? Like let's say I've chosen Slytherin as my starting...[More]


Why dont I have permission to use WorldEdit? Why dont I have permission to use WorldEdit?

Posted On: February 13, 2023
I'm trying to install WorldEdit, and I've done the following:. Gotten the craftbukkit JAR, run it, stopped it, replaced world with my save from single, run again, stopped again, ...[More]


Should I get Hogwarts Legacy for Console or PC? Should I get Hogwarts Legacy for Console or PC?

Posted On: May 1, 2023
Looking to buy this game but debating between Pc or Xbox. (Don’t have a steam deck) but leaning toward Xbox so I can play on the couch. Thoughts? Question from user mattgm1995 at HogwartsLega...[More]


Avoiding detection while hacking the computer in one step ahead Avoiding detection while hacking the computer in one step ahead

Posted On: October 22, 2023
I'm on New Game Plus x2 (NG+2) in Starfield (PC). On my first run, I completed the "One Step Ahead" Ryujin quest by going to CeltCorp, waiting until the security officer left the office ...[More]


What does saying X mean in the faction chat in Albion Online? What does saying X mean in the faction chat in Albion Online?

Posted On: May 16, 2023
I see many people "x" in the chat, but I cannot find a clear answer to what it means. Asking in the chat also does not give me any answers. Question from user TheBird956 at gaming.stackex...[More]