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]

Downloading windows version of steam games on a mac to copy over to a pc Downloading windows version of steam games on a mac to copy over to a pc

Posted On: June 9, 2023
I am sharing an internet connection with a few roommates and have a data cap. I would love to be able to use my MacBook to download games onto it, create Steam backups and install them on Windows. ...[More]


How do I get keys in where is my water? How do I get keys in where is my water?

Posted On: March 2, 2023
I'm playing where is my water on windows phone. I completed my missions under "soap factory", and four more missions under "beach". It wants me buy 3 keys or take from my frien...[More]


Is it dangerous to go extreme pig riding in a thunderstorm? Is it dangerous to go extreme pig riding in a thunderstorm?

Posted On: January 6, 2015
I like to saddle up my piggy for a ride into thunderstorms. But what happens to my piggy if we get hit by lightning? Question from user Sadly Not at gaming.stackexchange.com. Answer: If a pig...[More]


What does a checkmarked item mean in Somnium? What does a checkmarked item mean in Somnium?

Posted On: May 9, 2023
When I replay a Somnium section sometimes some of the items will have a checkmark next to them. This can appear even if I haven't performed every possible action with that item. What does a che...[More]


How to enable redstone wiring with a flick of a lever? How to enable redstone wiring with a flick of a lever?

Posted On: March 30, 2024
I'm looking for a solution to enable redstone wiring (completing a circuit) by flicking a lever. If you don't know what I'm asking for, imagine that sticky pistons could push redstone dust, and flicki...[More]


How do you get past the four levers and gate in Harmugstahl? How do you get past the four levers and gate in Harmugstahl?

Posted On: June 28, 2023
I tried to do one lever at a time but that didn't work. Then I tried many different patterns and nothing is working. It is one of the Trouble in Skyrim quests. Question from user doger at stack...[More]


Can’t use - get rid of these. Can’t use - get rid of these.

Posted On: December 9, 2024
Playing on ps5. Can’t hit X or square to move/examine. They have been stuck in my inventory since act 1. .Am I supposed to keep hold of them for an interaction or is something bugged out?(Clean play...[More]


Professor Layton: are there multiple solutions to Alchemists Lair 08? Professor Layton: are there multiple solutions to Alchemists Lair 08?

Posted On: March 12, 2023
In Professor Layton and the Miracle Mask, are there multiple solutions to the Alchemist's Lair 08 downloadable puzzle? I find that the four flasks in the bottom right corner should be able to b...[More]


Hogwarts Legacy 2 how to keep Hogwarts Castle fresh? Hogwarts Legacy 2 how to keep Hogwarts Castle fresh?

Posted On: August 11, 2023
Just finished Hogwarts Legacy and loved it. As we're a 5th-year, it makes sense that a trilogy of games could be planned with us being 6th and 7th-year students. For HL 2, how do you think they...[More]


What is this hole for in the controller? What is this hole for in the controller?

Posted On: November 28, 2023
So I was changing the trigger springs in my controller this evening and I noticed a small hole in the back of the controller, which I can only assume to be a reset perhaps? What is this hole actual...[More]