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 is the last red coin in Motos Factory? Where is the last red coin in Motos Factory?

Posted On: March 29, 2024
I am trying to collect the 8 red coins for Motos Factory in B3313 v1.0, but I have only been able to find 7. I've found the following red coins:.At the start of the level behind where you spawn.In the...[More]


Which explosive guns can cause critical hits? Which explosive guns can cause critical hits?

Posted On: January 24, 2023
When I wrote How do I use elemental effects in Borderlands 2? to the best of my knowledge Explosive guns couldn't critical; I've tested this with "grenade" Assault Rifles, Gyrojet Tourge Assault Rifle...[More]


Shantae And The Seven Sirens solving the block puzzle in the Coral Mines? Shantae And The Seven Sirens solving the block puzzle in the Coral Mines?

Posted On: May 2, 2023
There is a block puzzle near the entrance of the Coral Mines with a key-shaped container. The blocks can be rearranged to form a path to the container, but I can’t figure out what do next. Ho...[More]


Tips and tricks for finding Scriptures and Grimoires Tips and tricks for finding Scriptures and Grimoires

Posted On: January 24, 2023
Last week and this week my weekly contracts included collecting Grimoires and Scriptures.However the missions which include them seem sparse, so I am keen to try and locate them where possible.In all ...[More]


Using in game mod manager locks you out of achievements Using in game mod manager locks you out of achievements

Posted On: September 15, 2024
This is a major PSA for anyone thinking about using mods: If you still want to earn achievements, do not turn those mods on! Even if it's just for some hair or clothing. .As someone who has never used...[More]


Why do I have the dark arts pack even though I never bought the dark arts pack Why do I have the dark arts pack even though I never bought the dark arts pack

Posted On: July 20, 2023
I don't know how this happened, I pre ordered the base version of the game i never saw a email saying that I have bought the pack. (and yes I can play the dungeon thingy). Question from user bi...[More]


Polyamory with Astarion shouldn’t be a thing. Polyamory with Astarion shouldn’t be a thing.

Posted On: July 18, 2024
POSSIBLE NSFW? And before you call me a slur or get mad, here’s why I think this: .- He is unsure when you ask him for a poly relationship with (Character), and he even asks if it’s because you ha...[More]


Easy money in Kerbal Space Program Easy money in Kerbal Space Program

Posted On: March 23, 2023
Ships cost money now a days, but I'm unwilling to make any changes to construction style (TWR >5 all the way!). I've had some trouble making fat stacks of ker-cash. What is the easiest way ...[More]


Miraak is stealing all my dragon souls Miraak is stealing all my dragon souls

Posted On: January 15, 2023
After reading the book Waking Dreams and seeing Miraak, I couldn't absorb a dragon's soul. I killed more than 10 dragons and Miraak took all the souls. Is this supposed to happen? Question ...[More]


Why isnt Diep.io loading? Why isnt Diep.io loading?

Posted On: February 2, 2023
I have just got on to diep.io, and it is stuck on the "Connecting" screen. The tab also keeps refreshing. I see many errors on my developer tools when I press the F12 key.I am using a Windows 10 Surfa...[More]