[MCPE-22666] Can't use 'CanPlaceOn' and 'CanDestroy' commands Created: 15/Jun/17  Updated: 23/May/19  Resolved: 15/Jun/17

Status: Resolved
Project: Minecraft (Bedrock codebase)
Component/s: None
Affects Version/s: 1.1.1.0
Fix Version/s: None

Type: Bug
Reporter: WaddaKei
Resolution: Invalid Votes: 0
Labels: None

Confirmation Status: Unconfirmed
Platform: Phone - Android - Samsung Galaxy S5 Mini

 Description   

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



 Comments   
Comment by Kornel Gy [ 23/May/19 ]
/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"]}

}

Comment by WaddaKei [ 15/Jun/17 ]

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

Comment by user-f2760 (Inactive) [ 15/Jun/17 ]
{"minecraft:can_place_on":{"blocks":["minecraft:diamond_block"]}}

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

Edit: blocks, not block

Comment by WaddaKei [ 15/Jun/17 ]

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.

Comment by user-f2760 (Inactive) [ 15/Jun/17 ]

What is the command you used?

Comment by WaddaKei [ 15/Jun/17 ]

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

Comment by Joel Abhishek [ 15/Jun/17 ]

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

Generated at Sat Jan 11 15:35:48 UTC 2025 using Jira 9.12.2#9120002-sha1:301bf498dd45d800842af0b84230f1bb58606c13.