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]

Anyone know what this is in Hogwarts? Anyone know what this is in Hogwarts?

Posted On: July 4, 2023
Question from user wessel3050 at HogwartsLegacyGaming at reddit. Answer: Woah! This is a rare one. Count the legs (as they are different per occurrence) and then return to deek, 1 to 1200 intera...[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]


What does a checkmark in the Monster List mean? What does a checkmark in the Monster List mean?

Posted On: November 27, 2023
When looking at the Monster List, what does it mean when a monster has a green checkmark next to them? Question from user Stevoisiak at stackexchange. Answer: A green checkmark means you have...[More]


Should I get Hogwarts Legacy for Console or PC? Should I get Hogwarts Legacy for Console or PC?

Posted On: May 1, 2023
Looking to buy this game but debating between Pc or Xbox. (Don’t have a steam deck) but leaning toward Xbox so I can play on the couch. Thoughts? Question from user mattgm1995 at HogwartsLega...[More]


I dont want NPCs to get killed by Vampire Attacks in Dawnguard I dont want NPCs to get killed by Vampire Attacks in Dawnguard

Posted On: July 24, 2023
I bought Dawnguard before ending a questline from Skyrim. Because of that, I often visit main cities to do some quests. Every time I visit a city, I find dead bodies of NPCs that I talked to earlier. ...[More]


Do you guys use potions? Do you guys use potions?

Posted On: August 10, 2023
Dear Witches and wizards. Do you guys use potions, and if you do. Which ones do you use the most? Question from user ItsSolomon at HogwartsLegacyGaming at reddit. Answer: Yeah, I use them in ...[More]


How do I find my follower if and when they leave me? How do I find my follower if and when they leave me?

Posted On: August 25, 2022
I had parked my follower at an inn with a bunch of valuable items that I didn't want to carry. I guess I have been out a bit too long as this message appears: . Your follower tires of waiting and lea...[More]


AC Revelations How can I check how long I need to wait for the next bank deposit? AC Revelations How can I check how long I need to wait for the next bank deposit?

Posted On: May 3, 2023
I never know how long I have to wait until the next bank deposit. I know it's meant to be every 20 minutes and that there are events that annoyingly reset the timer without telling you, so I was w...[More]


How does Skyrim determine if a dungeon is cleared? How does Skyrim determine if a dungeon is cleared?

Posted On: July 19, 2022
Skyrim adds an awesome feature, that lets you know if you have cleared a dungeon or not. This saves a lot of time and effort, because you do not have to revisit every dungeon you have been through lik...[More]


Why is the firmware of the Xbox Wireless Controller not updated automatically? Why is the firmware of the Xbox Wireless Controller not updated automatically?

Posted On: January 19, 2024
I have now updated all Xbox Wireless Controllers (the first time since years). I didn't know that I had to do this regularly. Is there a reason why this is not done automatically? Updates to games...[More]