Visit this post to see my proposal on MCBE NBT question split.
Here is a list of the changes that should be done if we approve of it:
New questions
If a question about BE NBT is possible using one of these, this should be its duplicate target. This includes all questions that would use NBT in Java Edition, even if the Bedrock Edition solution is different/doesn't involve commands.
- How do I use commands to give myself a certain potion/tipped arrow from the Creative Inventory? If the asker wants to give themself (or another player) a potion or tipped arrow obtainable from the Creative Inventory.
Answer: Data values - How do I use
CanPlaceOn
/CanDestroy
in Minecraft commands?
Answer:{"minecraft:can_place_on":{"blocks":["stone"]}}
- How do I detect whether a player has an item in their inventory?
Answer:/clear @p stone 0
and detect whether it succeeds. - How do I use commands to give a player an item with custom name/enchantments/other properties? For potions obtainable in the Creative Inventory, use the above bullet point.
Answer: My handy give trick. - How do I summon a charged creeper?
Answer: Use spawn eventminecraft:become_charged
. Note only one spawn event can be used. - How do I summon a named mob?
Answer:/summon chicken MrCluckCluck 1 2 3
or/summon creeper 1 2 3 minecraft:become_charged MrBoomBoom
- How do I get a block with data to place myself? Applies to chests with items, signs with text, command blocks
Answer: Use CTRL + "pick block" on computer.(default middle mouse button). Impossible using touch controls, but this should still be the duplicate target. - How do I set a block with data to a certain position? Applies to chests with items, signs with text, command blocks
Answer: Place block with data in template location. Use/clone
to copy it to new position. - How do I summon a baby mob?
Answer: Use spawn eventminecraft:as_baby
for drowned/zombies andminecraft:entity_born
for all other mobs. Note only one spawn event can be used. - How do I summon a villager with a certain profession? Answer: Spawn events, see full list on Minecraft Wiki and find villager ones.
Existing questions
Use these questions as duplicate targets, not duplicate pointers.
Problems that can't be solved and should be duplicates of the main question
- How do I give myself potions with custom effects? If the asker explicitly states that they want their own custom effects of the potion and not one available from the Creative Inventory
- How do I give myself an item with a custom lore?
- How do I give myself a skull with custom owner?
- How do I detect items in a certain item slot?
- How do I add attribute modifiers to items?
- How do I reference NBT in the
/clear
command? - How do I set the
Unbreakable:1b
tag on my items?
Express your approval/disapproval of these changes by upvoting/downvoting this post and upvoting/downvoting the original discussion visitable using the link at the top of my post. The proposed changes will be started on August 12, 2020 at 00:00 UTC if there is no direct opposition.
Suggestions for more items? Comment below.
Important question: Do you think that questions that use different scenarios but the same workaround should be part of one question? Comment below.