2
Please Help!!
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
Create an account or sign in to comment.
10
1
/give @p minecraft:dirt 1 0 {CanPlaceOn:["stone"']}
1
/give @p minecraft:diamond_pickaxe 1 0 {CanDestroy:["stone"]}
1
it just says missingno
1
also it doesnt seem to work for black terracotta
1
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:
~SUPERIONtheKnight
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
thanks! :)
2
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).
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
"wood" isn't a valid id, perhaps you meant "planks" or "log"?
~SUPERIONtheKnight
~SUPERIONtheKnight
2
It didnt work for everything, some things just said missingo
1
paste the command so I can edit it for you