mojira.dev
MCPE-22666

Can't use 'CanPlaceOn' and 'CanDestroy' commands

I try to use the command for few day and it didn't work. It's always said 'Invalid Commands Syntax'

Comments 7

It does work the syntax on mcpe is different than on PC and you must not use capital letters

I did it, but it not work. Maybe the command has a different form from PC version? If not then I'm sure it's a bug

What is the command you used?

The command
/give <player name> <item> <amount> <data> {"canplaceon":["block"]}.
Example: /give @p redstone_torch 1 0 {"canplaceon":["diamond_block"]}
Is there anything wrong? Just let me know if I do something wrong.

{"minecraft:can_place_on":{"blocks":["minecraft:diamond_block"]}}


PC's NBT is not the same as BC's components.

Edit: blocks, not block

Okay. Thank you for your support. No one tell me about that so... I don't know but thanks

/give @p concretepowder 3 10 {"minecraft:can_place_on":

{"blocks":["minecraft:concrete 5"]}
}

/give @p concretepowder 3 10 {"minecraft:can_place_on":{"blocks":["minecraft:concrete 5"]}}

WaddaKei

(Unassigned)

Unconfirmed

Phone - Android - Samsung Galaxy S5 Mini

Android 6.0.1

1.1.1.0

Retrieved