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 Did My Terraria Silver Pickaxe Got Damaged? How Did My Terraria Silver Pickaxe Got Damaged?

Posted On: May 12, 2023
I crafted my first silver pickaxe in Terraria 1.1. I did not examine its stats until some time later. The name color is grey with -14% damage. I have no problem mining with it but killing monsters ...[More]


How do I disable radiant quests in Skyrim? How do I disable radiant quests in Skyrim?

Posted On: April 27, 2024
I'm a completist. I like to finish EVERYTHING. Skyrim creates a problem for me; it never ends.Is there a way to disable radiant quests, perhaps in the console?Is there a downside to disabling radiant ...[More]


How do I forcefully duplicate a nether portal in Minecraft? How do I forcefully duplicate a nether portal in Minecraft?

Posted On: May 23, 2023
I've seen nether portals being duplicated due to linking problems before, but I can't seem to replicate that on purpose. I'm trying to create a sort of manual obsidian farm that doesn'...[More]


What happens if you dont found a religion? What happens if you dont found a religion?

Posted On: March 18, 2024
Suppose the other civilizations have founded all the religions that could be founded in that map (that never happened to me, but I'm curious, but not curious enough to spend a night doing an experimen...[More]


How to connect storage items with stills? How to connect storage items with stills?

Posted On: January 17, 2023
I'm pretty new to dwarf fortress, so sorry if this question doesn't make sense. I've been trying to use a still, but most of the options are unavailable because it needs an empty storage i...[More]


Will unplucked pikmin be left behind at the end of a day? Will unplucked pikmin be left behind at the end of a day?

Posted On: March 31, 2024
In Pikmin 1, if I have Pikmin sprouts I haven't plucked yet, what happens to the unplucked Pikmin when a day ends? Will they be left behind?Question from user Stevoisiak at gaming.stackexchange.com.An...[More]


How do I stop a mother from breastfeeding? How do I stop a mother from breastfeeding?

Posted On: March 13, 2024
My colony recently welcomed a dirtmole hybrid into its community. The lil' tyke has -4 metabolism, which means a x200% food requirement, and had not reached one quadrum in age before coming down with ...[More]


Crucio Crucio

Posted On: August 7, 2023
So I'm on the brink of level 18 and I've just talked to sebastian about crucio and he told me to wait for his owl post, how long do I have to wait for him to reach out to start the quest? Q...[More]


Why are Fallouts computers so backwards? Why are Fallouts computers so backwards?

Posted On: April 16, 2024
The games are set in the future right? Circa 2077. But the terminals look like the computers back in the 1950's. When we actually had to type commands to get things done. Why is this? Im assuming it h...[More]


Dungeons and Dragons Online, Good for Groups? Dungeons and Dragons Online, Good for Groups?

Posted On: June 11, 2023
I see that Dungeons and Dragons Online is now free to play. How is that game structured?. Do you create parties and travel?. Or is it more free world-ish?. I ask because I am looking for g...[More]