2

Please Help!!

Stealth_Gamer •7/11/18 7:09 am
•
441
•
7/14/2018 4:01 pm
I want to now how to make certain items placeble and how to make tools able to break certain blocks, its my first ever map and im still learning a bit
Posted by
Stealth_Gamer
Level 15 : Journeyman Architect
7

  Have something to say?

Join • Sign in

10

Mooselag
• 07/14/2018 4:01 pm
• Level 4 : Apprentice Network
/give @p minecraft:dirt 1 0 {CanPlaceOn:["stone"']}
1
Mooselag
• 07/14/2018 4:00 pm
• Level 4 : Apprentice Network
/give @p minecraft:diamond_pickaxe 1 0 {CanDestroy:["stone"]}
1
Stealth_Gamer
• 07/11/2018 11:07 am
• Level 15 : Journeyman Architect
it just says missingno
1
Stealth_Gamer
• 07/11/2018 11:07 am
• Level 15 : Journeyman Architect
also it doesnt seem to work for black terracotta
1
SUPERIONtheKnight
• 07/14/2018 3:02 pm
• Level 30 : Artisan System
The id for black terracotta in 1.12.2 is stained_hardened_clay. There isn't a way to specify the data value in the CanDestroy/CanPlaceOn tags. As a result, You will be able to break/place all of the terracotta colors. There isn't a way around this in 1.12, but 1.13 fixes this problem as data values will be removed and all blocks will have a unique id.

You can see the correct id's to use if you hover your mouse over the item you want to use with advanced tooltips enabled(F3 + H).

So the command for 1.12 in this case is as follows:
/give @s diamond_pickaxe 1 0 {"CanDestroy":["minecraft:stained_hardened_clay"]}
~SUPERIONtheKnight
1
Stealth_Gamer
• 07/11/2018 10:44 am
• Level 15 : Journeyman Architect
thanks! :)
1
AgentShieldjj
• 07/11/2018 9:42 am
• Level 35 : Artisan Creeper Hugger
If you're in 1.12.2, this command will work.


give @p minecraft:diamond_pickaxe 1 0 {CanDestroy:["wood","stone"]}

if you want a different item or block just change out the diamond pickaxe to something else, the wood and stone is what you can destroy, you can change that to. if you want it to be placed on something change the CanDestroy to CanPlaceOn (caps do matter).
2
SUPERIONtheKnight
• 07/14/2018 2:44 pm
• Level 30 : Artisan System
"wood" isn't a valid id, perhaps you meant "planks" or "log"?

~SUPERIONtheKnight
2
Stealth_Gamer
• 07/11/2018 11:31 am
• Level 15 : Journeyman Architect
It didnt work for everything, some things just said missingo
2
AgentShieldjj
• 07/11/2018 12:24 pm
• Level 35 : Artisan Creeper Hugger
paste the command so I can edit it for you
1

Welcome