bedrock edition creators wikipedia
LEARN ABOUT NBT DATA
nbt data
There are very little NBT values in the Bedrock version of Minecraft
Each NBT value does something unique..
- CanPlaceOn
- CanDestroy
- KeepOnDeath
- ItemLock.
Each NBT value does something unique..
canplaceon and candestroy
These two NBT valiues are exactly what it's stated. CanPlaceOn can be utilized with blocks, where as though CanDestroy can be used on tools and other things.
The CanDestroy code:
You can replace each of the blocks within the NBT as well as the item given.
Any block and item works for each of the respective NBT values
The CanDestroy code:
- /give @p diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["planks", "skull"]}}
- Place on: /give @p stone 1 0 {"minecraft:can_place_on":{"blocks":["stone"]}}
You can replace each of the blocks within the NBT as well as the item given.
Any block and item works for each of the respective NBT values
itemlock
ItemLock is a versatlie NBT value and has few useful functions within it. Just to name one, for instance, if typed in correctly, you are able to lock whatever item you choose in one specific slot, which means it cannot be dropped or moved. Another useful one could even let you lock the given item in any applicable slot, but you are still able to move it. You just cannot drop it.
Code for ItemLock in ANY slot:
If you find the red/yellow triangle placed ontop of the NBT edited item unfitting, you can simply type this command into chat:
Code for ItemLock in ANY slot:
- /give @a dirt 1 0 {"minecraft:item_lock":{ "mode": "lock_in_inventory" }}
- /give @a oak_log 1 0 {"minecraft:item_lock":{ "mode": "lock_in_slot" }}
If you find the red/yellow triangle placed ontop of the NBT edited item unfitting, you can simply type this command into chat:
- /gamerule showtags false
Keepondeath
This NBT value allows you to make any item remain inside your inventory post death. Not to be confused with /gamerule keepinventory true, this NBT value allows you to choose SPECIFIC items to keep unlike keepinventory in which keeps all items stored in a players inventory.
Code for KeepOnDeath:
Code for KeepOnDeath:
- /give @a 1 stone_sword 1 0 {"minecraft:keep_on_death":{}}
adding data values
You can also change data values for certain blocks such as planks while typing your NBT values. Trying to give yourself or an entity a SPECIFIC block such as "Birch Wood Planks" will result in an error.
CanDestroy with specific block data:
CanDestroy with specific block data:
- /give @a iron_axe 1 0 {"minecraft:can_destroy":{"blocks":["planks:5"]}}
- /give @a dirt 1 0 {"minecraft:can_place_on":{"blocks":["wool:8"]}}
additional things
Changing an items health points is also a thing. By doing /give @a stone_sword 1 60, you are essentially depleting the swords durability and replacing it with a given durablity value. If you do /give @a stone_sword 3 60, you are basically giving yourself 3 swords with a durability value of 60.
Items also do not work with minecraft:can_place_on.
Items also do not work with minecraft:can_place_on.