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]

OpenTTD: Invading a city to get a rail line through it OpenTTD: Invading a city to get a rail line through it

Posted On: March 18, 2024
How do I keep local authorities off my back long enough to destroy and terraform part of their beautiful city so my megaconglomeration can inject its horrible, pollution-causing railway station right ...[More]


How can two squads of COD friends join the same DMZ instance? How can two squads of COD friends join the same DMZ instance?

Posted On: May 9, 2023
In the Call of Duty DMZ mode, you are in squads of 3 players, however it's possible to create an alliance when in game by inviting other squads to join you. You can invite a squad using the pin...[More]


How to test if The Digital Deluxe Edition is active in Baldurs Gate 3? How to test if The Digital Deluxe Edition is active in Baldurs Gate 3?

Posted On: September 29, 2023
I bought The Digital Deluxe Edition with the game. Then, I refunded the game, but not The Digital Deluxe Edition - it was my silent protest against it not working properly on SteamDeck despite its &qu...[More]


Shiny Unicorn in Hogwarts Legacy Shiny Unicorn in Hogwarts Legacy

Posted On: July 18, 2023
I have a shiny unicorn!! Super proud of myself cuz I’ve never found one before. Not sure what to name him? Question from user oogieboujie at HogwartsLegacyGaming at reddit. Answer: I fo...[More]


Why do my kneazles have the triangle at the top of their box in Hogwarts Legacy? Why do my kneazles have the triangle at the top of their box in Hogwarts Legacy?

Posted On: March 5, 2023
Why do my kneazles have the triangle at the top of their box in Hogwarts Legacy? Question from user elliebeans90 at HogwartsLegacyGaming at reddit.com. Answer: Its the part of thier tail. ...[More]


In the Forestry mod, how do you input seed oil into the carpenter? In the Forestry mod, how do you input seed oil into the carpenter?

Posted On: January 31, 2023
I've started using the mod Forestry, and I want to build a bee hive. But this requires a part made from in a carpenter, using wood and some "seed oil".I've powered the carpenter, but the liquid part r...[More]


How can I turn a rare item into a rare magic item? How can I turn a rare item into a rare magic item?

Posted On: October 23, 2023
I turned a silk vest into a rare, and then later found that I could not change it into a magic item, because it isn't normal. . Is there a way to turn a rare item into a magic item? . It was...[More]


Is Minecraft Turing-Complete? Is Minecraft Turing-Complete?

Posted On: August 8, 2020
Minecraft has the redstone wires mechanism that can be used to build circuits. Is Minecraft Turing-Complete, i.e. can it be used to simulate a Turing Machine (if we ignore the problem of infinite memo...[More]


What do the numbers next to the achievements mean in Overwatch? What do the numbers next to the achievements mean in Overwatch?

Posted On: May 18, 2023
Next to each achievement in Overwatch there's a little number in a circle, what does that mean? Question from user Wrigglenite at gaming.stackexchange.com. Answer: The number signifies th...[More]


Does closing the game reset Blood Moons timer in Breath Of The Wild? Does closing the game reset Blood Moons timer in Breath Of The Wild?

Posted On: July 23, 2023
According to Zelda dungeon, Blood Moon regularly occurs every 2 hours and 48 minutes of gameplay (every unskipped 7 days in-game). Another answer confirms that it's a time-based event. So I&...[More]