Arqade Asked on February 3, 2021
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}
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:
Here are some examples of things that are currently impossible in Bedrock Edition:
/clear
(note that you can still use data values)Answered by cherryblossom on February 3, 2021
This is only possible for giving potions, using CanPlaceOn
and CanDestroy
, and the {powered:1}
section of the creeper, although the syntax is slightly different. Based on other answers here, we know that it is impossible to add NBT tags in Bedrock Edition. However, there are loopholes for the items above.
For the potion, we'll use the data integer of 5, meaning Night Vision for 3 minutes. Link here: https://www.digminecraft.com/generators/give_potion_pe.php
/give @p potion 1 5
Here is a table of the possible values:
For the stone, we can use JSON components for the abilities to place on certain items. This only works in adventure mode.
/give @s minecraft:stone 1 0 {"minecraft:can_place_on":{"blocks":["minecraft:grass","minecraft:dirt"]}}
Finally, for the powered creeper, we can utilize spawn events to make this possible in Bedrock Edition.
/summon creeper ~ ~ ~ minecraft:become_charged
I hope this helps!
Answered by villager1 on February 3, 2021
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP