mojira.dev
MC-50795

CanDestroy and CanPlaceOn can be used with item ID's instead of the names

If I type in for example

/give @p command_block 1 0 {CanPlaceOn:["137"]}

(like in one of the pictures), the tooltip says "Can place on: Command Block"
Also when I type in

/give @p diamond_pickaxe 1 0 {CanDestroy:["137"]}

the tooltip says "Can destroy: Command Block"

This is not a major bug, I don't even know if anyone else have noticed this (I didn't see that anyone have reported it yet...), I was just curious and tested it... This somewhat similar to MC-45114 in that it uses the block ID's instead of the names.

Attachments

Comments 5

Confirmed for 14w19a, maybe intended though.

Still works in version 1.8.1pre-3. Screenshots has been added.

Also works in 15w33c

Fixed in 1.13; most likely 17w47a.

Ruben

(Unassigned)

Confirmed

Minecraft 14w10c, Minecraft 14w18b, Minecraft 14w19a, Minecraft 1.8.1-pre3, Minecraft 15w33c, Minecraft 15w34a, Minecraft 1.11.2, Minecraft 17w13b

Minecraft 18w03b

Retrieved