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 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]


Damp wall ignored in Dwarf Fortress why? Damp wall ignored in Dwarf Fortress why?

Posted On: April 26, 2023
I took as granted that Miners always detected damp walls and stopped mining in these cases. But a miner did not detect, or just decided to ignore, an obvious damp wall, and created a leak that led ...[More]


How can I train dexteriy for a heavy weapon user? How can I train dexteriy for a heavy weapon user?

Posted On: November 7, 2023
Dexterity is trained by using light weapons however I have one medium guy focued on using sabers. Is there any way to train dexterity other than switching to a light weapon for a while? This is a r...[More]


Whats the best strategy to keep the chaos low in Dishonored? Whats the best strategy to keep the chaos low in Dishonored?

Posted On: May 6, 2023
I know that having a high chaos would cause the game to be more difficult. So I'm wondering how could I keep it low and avoid killing methods that would raise the chaos. Question from user Warf...[More]


How can I make Skip98 work on a laptop with Windows 7? How can I make Skip98 work on a laptop with Windows 7?

Posted On: June 10, 2023
My Mother in law was playing to an old freeware Skip-bo game on her Windows XP computer, it's called Skip98. You could still find it by goggling it, but the original site is down. She bought a ...[More]


How to unlock all tracks and cars? How to unlock all tracks and cars?

Posted On: April 23, 2024
The majority of cars (practically only 4WD vehicles are available) and more than half of the tracks are locked when starting a new game. Sadly unlocking content (campaign modes are "championship" and...[More]


Donkey Kong 64 - What do the Chimpy Cam options do? Donkey Kong 64 - What do the Chimpy Cam options do?

Posted On: March 17, 2023
In the options for Donkey Kong 64 I can set Chimpy Cam to either Free or Follow. What's the difference between Free and Follow? Question from user Stevoisiak at gaming.stackexchange.com. Ans...[More]


Why can't I like BG3? Why can't I like BG3?

Posted On: June 1, 2024
I have heard a lot about BG3, and never played it, for many reasons.Yet because it is so popular, I just can’t let it go. “It’s not for me” doesn’t work so well when the game apparently is f...[More]


Do maps fill out while exploring underground? Do maps fill out while exploring underground?

Posted On: April 26, 2024
When a craftable map is held, exploring the world will fill out areas of the map with an image of the world surface. Will said map be updated the same way if held while exploring underground? Or will ...[More]


New player here - does shadowheart suck early game? New player here - does shadowheart suck early game?

Posted On: November 15, 2024
I’m playing on Tactician. I thought healing would be nice to have but because it’s limited by having to long rest (and I’m trying to save camp supplies) I am very conservative with it. I feel li...[More]