So I created an account just so I could post this cause I’m out of options. I’m on Nintendo Switch’s Bedrock Edition and it uses stupid data values like diorite being “stone 1 3” instead of “diorite” etc. I have figured out commands like giving me them but can’t get them to work in complex commands like “give @p stone_pickaxe 1 0 {“minecraft:can_destroy”:{“blocks”:[“minecraft:stone 1 3”]}}.” What’s wrong with that command? I’ve tried changing the last part a million different ways and nothing seems to be working. What am I missing?
I have been able to use candestroy/canplaceon tags in general but not with the weird data values. Things like cobblestone or grass blocks that don’t use data values work with no problem but the data values don’t.
You don't use the data tags with those components. You want
give @p stone_pickaxe 1 0 {"can_destroy":{"blocks":["stone"]}}
It'll be able to destroy any stone variety. You can't specify only diorite.
Also note that only one of those numbers is the stone data value, the other is the number of them you are given. Give @s stone 1 3 gives you 1 block of stone type 3 (diorite). Give @s stone 64 3 gives you a full stack of diorite.
Also worth noting that grass and cobblestone do have a data value, it's just 0. If you get into more complex commands later you'll need to include that to avoid syntax errors. For example, the following command will replace all diorite within 2 blocks with cobblestone. fill ~-2 ~-2 ~-2 ~2 ~2 ~2 cobblestone 0 replace stone 3. Without the 0 you get a syntax error because "replace" is not a valid data value.
So I created an account just so I could post this cause I’m out of options. I’m on Nintendo Switch’s Bedrock Edition and it uses stupid data values like diorite being “stone 1 3” instead of “diorite” etc. I have figured out commands like giving me them but can’t get them to work in complex commands like “give @p stone_pickaxe 1 0 {“minecraft:can_destroy”:{“blocks”:[“minecraft:stone 1 3”]}}.” What’s wrong with that command? I’ve tried changing the last part a million different ways and nothing seems to be working. What am I missing?
You should be able to get CanDestroy running but that is considered an NBT tag and most NBT tags do not work in Bedrock
I have been able to use candestroy/canplaceon tags in general but not with the weird data values. Things like cobblestone or grass blocks that don’t use data values work with no problem but the data values don’t.
You don't use the data tags with those components. You want
give @p stone_pickaxe 1 0 {"can_destroy":{"blocks":["stone"]}}
It'll be able to destroy any stone variety. You can't specify only diorite.
Also note that only one of those numbers is the stone data value, the other is the number of them you are given. Give @s stone 1 3 gives you 1 block of stone type 3 (diorite). Give @s stone 64 3 gives you a full stack of diorite.
Also worth noting that grass and cobblestone do have a data value, it's just 0. If you get into more complex commands later you'll need to include that to avoid syntax errors. For example, the following command will replace all diorite within 2 blocks with cobblestone. fill ~-2 ~-2 ~-2 ~2 ~2 ~2 cobblestone 0 replace stone 3. Without the 0 you get a syntax error because "replace" is not a valid data value.