This question was recently 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}
Best Answer
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:
Can be used to obtain enchantments that exceed their maximum enchantment level.
Here are some examples of things that are currently impossible in Bedrock Edition:
/clear
(note that you can still use data values)