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]

What are the conditions for a Force Bonus skipping a mission requirement? What are the conditions for a Force Bonus skipping a mission requirement?

Posted On: April 17, 2024
Sometimes when completing a quest, I'll get credit for completing an optional mission requirement even if I didn't meet said requirement with the message "Force Bonus". For example, in the video below...[More]


In Yupitergrad 2, How do I defeat the shield drone? In Yupitergrad 2, How do I defeat the shield drone?

Posted On: July 20, 2023
In Yupitergrad 2: the Lost Station, I have just acquired the miniguns, and now I am trying to get past the adjacent room that has a single, button-activated drone that is protected by a glowing shield...[More]


How do I open the Supply Drop in Firewatch? How do I open the Supply Drop in Firewatch?

Posted On: March 27, 2023
On Day 33 of Firewatch I was asked to retrieve a supply drop from the northern part of the park. I found the supply drop, but it's locked with a 4 digit passcode. How do I open the supply drop? Sh...[More]


Does XBox gamepad emulator software exist for the PC? Does XBox gamepad emulator software exist for the PC?

Posted On: March 21, 2023
What I'm hoping to do is use a second keyboard and/or mouse in the place of a gamepad for games that require a gamepad to enable multiplayer gaming. I've noticed a few games that are XBox port...[More]


How can I tell if a corpse is safe to eat? How can I tell if a corpse is safe to eat?

Posted On: July 9, 2020
I am a human wizard, and I just killed a monster, leaving a corpse on the ground. How do I tell whether it is safe to eat the corpse? I left the monster unspecified because I am interested in "...[More]


Should I not have won a culture victory by now in Civilization 6? Should I not have won a culture victory by now in Civilization 6?

Posted On: April 8, 2023
I've been playing Civilization 6 as Tomyris for a while and thought I was comfortably winning a culture victory, but. the game seems to want to keep going without giving me the option to acce...[More]


What are the equivalent PC keyboard keys and mouse buttons of the Xbox 360 game controller buttons shown on the screen? What are the equivalent PC keyboard keys and mouse buttons of the Xbox 360 game controller buttons shown on the screen?

Posted On: January 23, 2023
The PC port of Dark Souls shows Xbox 360 game controller buttons on its in-game messages and the UI. However, I'm playing with a mouse and a keyboard. This makes learning the controls a bit awkwar...[More]


Where does this blue cube-shaped object belong in Unpacking? Where does this blue cube-shaped object belong in Unpacking?

Posted On: July 25, 2023
I cannot understand what this blue cube-shaped object is. I cannot find where it belongs. Every place I put it in shows it's wrong. Where should I place this object? Question from user sdo at s...[More]


Can you cast a Patronus Charm in Hogwarts Legacy? Can you cast a Patronus Charm in Hogwarts Legacy?

Posted On: July 19, 2023
Is it possible to use the Patronus Charm in Hogwarts Legacy? If yes, then where and how? Question from user Shaun Roselt at stackexchange. Answer: No. According to an article on videogamer...[More]


Has anyone done an absolutist run? Has anyone done an absolutist run?

Posted On: March 12, 2025
Not killing the mind flayer in the very beginning. Having compassion for it lol. Siding with Minthara. Pick all absolute dialogue options. Let Marcus take Isobel. Get branded. Lol.I was just wondering...[More]