mojira.dev
MCPE-20760

Invalid command syntax when adding CanPlaceOn in replaceitem command

I don't know if this is a bug or I'd mistakenly type the components. I read the changelog in 1.1 and CanPlaceOn and CanBreak are available in replaceitem command. I've tried them but invalid command syntax. I've tried {CanPlaceOn:["obsidian"]}. If this is not a bug and I've only mistakenly type it, please comment the correct component and mark this as invalid.

Attachments

Comments 8

command_blocks don't required slash

and why is it invalid without explanation?

Sorry, my bad, was thinking too much about MCPE-20615.

I see the problem. There's a +1 in the tildas. That + is causing it to be invalid.

I think you need to research more about commands in minecraft. That tilda means current position. With +1 on it, it means current tile position +1 tile.

Bruh he's talking about CanPlaceOn... +1 is just normal

its FiXEd as of 1.1.0.3 the correct components are {"minecraft:can_place_on":{"blocks":["blockname"]}}

Mark Aranzanso

(Unassigned)

Unconfirmed

Phone - Android - Samsung Other (Specify in description)

5.1

1.1.0.0

1.1.0.3

Retrieved