I want to give myself a lever that can only be placed on red terracotta. I have this command: /give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["stained_hardened_clay:14"]}, but it tells me "missingno" for the block to be placed on. I know this works: /give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["stained_hardened_clay"]}, but then I can put it on all clay blocks and I only want it placeable on red. I am using 1.12.2 if anyone can help. Also, if it's possible, I would rather the lever be a trade from a villager, but I cannot figure out how to use the "CanPlaceOn" tag with a villager summon. Thanks.
I understand blockstate now. I read up on it. I do not, however, understand how to put it into the command. I tried a few things and they did not work, this one being the most promising: /give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["stained_hardened_clay","color:red"]}. It gives me a lever that can be placed on stained terracotta but the next value is missingno again. Not sure what I am doing wrong. Thanks.
the blockstate is used as part of the block name - also, you should get in the habit of prefixing the name with "minecraft:" - so the correct block ID is "minecraft:stained_hardened_clay[color=red]" IIRC
[color=#000000]Thanks for your help. I used this command: "/give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["minecraft:stained_hardened_clay[color=red]"]}".[/color]
[color=#000000]It still does not work; still shows up with missingno, but it's okay. I will use glazed terracotta instead. I don't need blockstates for those. Not sure why that will not work, tho. Thanks for help. I at least understand blockstates a little more.[/color]
I want to give myself a lever that can only be placed on red terracotta. I have this command: /give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["stained_hardened_clay:14"]}, but it tells me "missingno" for the block to be placed on. I know this works: /give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["stained_hardened_clay"]}, but then I can put it on all clay blocks and I only want it placeable on red. I am using 1.12.2 if anyone can help. Also, if it's possible, I would rather the lever be a trade from a villager, but I cannot figure out how to use the "CanPlaceOn" tag with a villager summon. Thanks.
you need to use the blockstate, not meta which was used pre-1.8 and was even completely removed in 1.13
Creator of Metroid Cubed 3, a Metroid-themed mod! Become a donator today!
Thanks for the reply. How do I do that? Not sure what you mean by blockstate; do you mean damage values? I am using 1.12.2 java edition.
I understand blockstate now. I read up on it. I do not, however, understand how to put it into the command. I tried a few things and they did not work, this one being the most promising: /give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["stained_hardened_clay","color:red"]}. It gives me a lever that can be placed on stained terracotta but the next value is missingno again. Not sure what I am doing wrong. Thanks.
the blockstate is used as part of the block name - also, you should get in the habit of prefixing the name with "minecraft:" - so the correct block ID is "minecraft:stained_hardened_clay[color=red]" IIRC
Creator of Metroid Cubed 3, a Metroid-themed mod! Become a donator today!
[color=#000000]Thanks for your help. I used this command: "/give @p lever 1 0 {display:{Name:"Red Key"},CanPlaceOn:["minecraft:stained_hardened_clay[color=red]"]}".[/color]
[color=#000000]It still does not work; still shows up with missingno, but it's okay. I will use glazed terracotta instead. I don't need blockstates for those. Not sure why that will not work, tho. Thanks for help. I at least understand blockstates a little more.[/color]