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 to execute a specific item in minecraft How to execute a specific item in minecraft

Posted On: April 26, 2024
I want to make a command executing a tripwire hook when it is thrown in the ground you summon a lighting bolt but it seems you can't add NBT tags in an execute command so how to specify the item I wan...[More]


How to pick up the walkie talkie in Walking Dead Season 2: Episode 3? How to pick up the walkie talkie in Walking Dead Season 2: Episode 3?

Posted On: March 25, 2023
I am stuck at the quick time event where Clem has to pick up the walkie talkie. I see two brackets moving towards each other, yet I forgot what to do for those quick time events. How to pick up the...[More]


Is there anything for you if you return to spawn island in PUBG? Is there anything for you if you return to spawn island in PUBG?

Posted On: May 1, 2023
Watching the PUBG invitational, I realise that the island where the lobby is (the minute before you get in the plane) is still on the map. While in the match, can you return to that lobby island, a...[More]


Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function? Can a redstone latch in Minecraft Bedrock Edition be supplemented with a toggle function?

Posted On: April 3, 2023
SR latches and T-flip-flops are trivial circuitry in Minecraft redstone, but it appears that there is little to be found for a circuit that combines both, allowing for both SR and T functionality. ...[More]


How do you hire a Hacker in Game Dev Story? How do you hire a Hacker in Game Dev Story?

Posted On: April 13, 2024
I'm on my second playthrough of Game Dev Story, choosing the Hire option at least twice per game year and varying between "Word of Mouth", "Magazine Ad", and "Online Ad" — never seen a Hacker availa...[More]


What is the max amount of rupees you can get in BoTW? What is the max amount of rupees you can get in BoTW?

Posted On: May 17, 2023
In BotW, they did away with the wallet sizes. You can always take in more and more rupees. But at some point, can you max the number of rupees you can get? Question from user Fredy31 at gaming.s...[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]


How do I lick a plane? How do I lick a plane?

Posted On: November 21, 2014
A friend of mine told me that I would get an Achievement if I managed to lick the plane that's flying around in the world but, he won't tell me how to get close to it.I tried many different things. Ju...[More]


What are the benefits of playing with original game CDs? What are the benefits of playing with original game CDs?

Posted On: June 10, 2023
Please don't take me in the wrong sense. I am not advocating for piracy. In fact I want to know about the advantages of playing with original game CDs so that I can attract gamers in my region, in...[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]