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]

What is the use item in Sam and Max What is the use item in Sam and Max

Posted On: June 23, 2023
This question bothers me since I was a kid. In Sam and Max - Hit the Road, what is the green thing in the "use" icon? Is it a duck? Is it a toy? Question from user Keeper at stackex...[More]


Gear Slot Trauma in Hogwarts Legacy Gear Slot Trauma in Hogwarts Legacy

Posted On: April 11, 2023
I've been playing the story mode, and it seems that my Gear Slot is filled, as a result of which I am unable to open any chests or acquire anything. Can you please advise me what to do? It's r...[More]


What does food satisfies a random group member mean? What does food satisfies a random group member mean?

Posted On: November 5, 2023
On the Witch's Hut event map, the trick card for Foggy Food says:. Food satisfies a random group member. What does that description mean? What does Foggy Food actually do? Question from u...[More]


What does it mean to have sacred - ancestral aspects? What does it mean to have sacred - ancestral aspects?

Posted On: August 15, 2023
As my level increases, I'm starting to find some sacred/ancestral versions of aspects. However, for the vast majority of aspects, it seems to make no difference what version it is. (in fact, th...[More]


How do I check where to go next? How do I check where to go next?

Posted On: June 15, 2023
I've just started playing FF7 again after a near 1-year hiatus. That said, my save file contains a fair bit amount of playthrough already, so I have no desire to restart, but I can't figure ou...[More]


Is it possible to play Battlefront 2 with private servers? Is it possible to play Battlefront 2 with private servers?

Posted On: April 15, 2024
I recently purchased Star Wars: Battlefront 2 (2017, Celebration Edition), and I really enjoy playing online. However, I have encountered several hackers. Is there a way for me to setup a server I can...[More]


What is the music in the Dazed and Confused mission in Far Cry 4? What is the music in the Dazed and Confused mission in Far Cry 4?

Posted On: January 24, 2023
I've just been playing the Dazed and Confused level and was wondering what the music was. It's a mission with Yogi and Reggie done under the influence of drugs. I was curious if it was a no...[More]


Who exactly is Fake Crash? Who exactly is Fake Crash?

Posted On: April 8, 2024
In Crash Bandicoot: Warped and also in N. Sane Trilogy you can see this weird (and fake) version of Crash dancing outside of some levels. He even became a playable character then in Crash Team Racing....[More]


Is there a way to increase the number of potions I can carry in Final Fantasy 16? Is there a way to increase the number of potions I can carry in Final Fantasy 16?

Posted On: July 25, 2023
I'm still in the early parts of Final Fantasy 16, and Clive can only carry 4 potions and 3 high potions. During certain boss fights, I found myself using them all early on in the fights and not ha...[More]


How do Steam Workshop mods and Nexus mods interact? How do Steam Workshop mods and Nexus mods interact?

Posted On: February 9, 2023
All of my mods so far are on the Steam Workshop, but there are a few on Nexus that look to be quite useful. My question before I dive in is are there any potential problems that I need to be aware of...[More]