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 to get VALORANT on 2021 M1 MacBook Air How to get VALORANT on 2021 M1 MacBook Air

Posted On: March 27, 2024
VALORANT, currently, is not on MacOS. It is also not on Steam. You cannot download VALORANT through the website because. well, there's no button to do so. So how do you get it on Mac?Originally, I tho...[More]


Which visual novels are represented by the animated avatars in the 2023 Steam Visual Novel Fest? Which visual novels are represented by the animated avatars in the 2023 Steam Visual Novel Fest?

Posted On: April 16, 2024
Steam is currently running the 2023 Steam Visual Novel Fest, giving out animated avatars of what I assume to be characters from various visual novel games. Which visual novels are these characters ...[More]


Does Terraria on Nintendo Switch support 4 player split-screen multiplayer? Does Terraria on Nintendo Switch support 4 player split-screen multiplayer?

Posted On: November 10, 2023
I've looked at the Terraria official site, wiki, and many forums and see that XBox and Playstation support 4 player split-screen, but it is unclear if the Nintendo Switch supports 2 or 4 player sp...[More]


What games come with the Nintendo Switch Online Membership? What games come with the Nintendo Switch Online Membership?

Posted On: August 5, 2023
I'm considering purchasing a Nintendo Switch Online Membership, and my primary motivation to do this is the classic game collections. Therefore, I would like to know what games in the Mario, Zelda...[More]


Do you pay a gold tax when beating the final boss in Heroes Of Hammerwatch? Do you pay a gold tax when beating the final boss in Heroes Of Hammerwatch?

Posted On: March 10, 2023
Throughout the game, you can deposit your found gold and ore in elevators to take to the surface, at a tax rate that depends on how much gold you have collected. I decided to be brave, and do an entir...[More]


In what sequence should I play Baldurs Gate? In what sequence should I play Baldurs Gate?

Posted On: February 15, 2023
A friend suggested I should checkout the old school DnD games. Now I want to play through:. Baldur's Gate I + Tales of the Sword Coast. Baldur's Gate II + Throne of Bhaal. Icewind Dal...[More]


Is Hogwarts Legacy worth getting? Is Hogwarts Legacy worth getting?

Posted On: August 16, 2023
I recently got a Steam gift card and I’ve been wanting this game but I read some of the reviews and some people were saying that the game got stale after a while. What do you think about this? ...[More]


In Lucky Luna, how many gems do I lose when I die? In Lucky Luna, how many gems do I lose when I die?

Posted On: March 11, 2023
Whenever I die in Lucky Luna I lose some of my gems. The amount of gems I lose seems to vary. What determines how many gems I lose when I die? Question from user Stevoisiak at gaming.stackexchange....[More]


How does scoring work in Unidentified Falling Objects? How does scoring work in Unidentified Falling Objects?

Posted On: August 21, 2023
In Unidentified Falling Objects there are objectives to earn a certain amount of points in a single combo. The amount of points you earn seems to be affected by how many blocks you break at once and y...[More]


Why does the Pokémon count show one more than the actual Pokémon I have? Why does the Pokémon count show one more than the actual Pokémon I have?

Posted On: June 17, 2023
I have 11 Pokémon, none duplicate. But the count at the top shows 12. Is this a bug, or does it count the Pokémon in the egg, too? Question from user Shaunak D at stackexchange. ...[More]