[MCPE-23119] Can't make items with CanPlaceOn and CanBreak tags Created: 02/Jul/17  Updated: 04/Jul/17  Resolved: 03/Jul/17

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

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

Confirmation Status: Unconfirmed
Platform: Android

 Description   

I try to make CanPlaceOn and CanBreak tagged items but it doesn't work
I don't think my command is correct or wrong or it's not already implemented..

Tested on MyPhone 27



 Comments   
Comment by PTRN23 [ 04/Jul/17 ]

Thank you ZeReaper! I know it know

Comment by ZeReaper [ 03/Jul/17 ]

Hi Paul Timothy Necasio, I can help you here because these commands actually work on Minecraft Pocket Edition 1.1.2. It's not the same as the Java version, on Pocket and Windows 10 Editions they have the form of "components" and not "data".
For the CanPlaceOn : /give @... block count data {“can_place_on”:{“blocks”:[“blocks here”]}}
For the CanDestroy : /give @... item count data {“can_destroy”:{“blocks”:[“blocks here”]}}
because the base of the command is now /give <target> <item/block name> <count> <data> <components>

I hope I helped you.

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