Can someone help me with this? From the Update 1.1 page, I read that it has something to do with the /replaceitem command, but I can't figure it out. How do I put these tags on items?
Can someone help me with this? From the Update 1.1 page, I read that it has something to do with the /replaceitem command, but I can't figure it out. How do I put these tags on items?
I know the command for /give so you can have a tool/block that can destroy or be placed on. For my examples, I am going to use a diamond pickaxe and a stone block, but you can use whatever you want. Destroy: /give @p diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["stone"]}} Place on: /give @p stone 1 0 {"minecraft:can_place_on":{"blocks":["stone"]}}
I will try that. Thank you!
I tried using this command and still, nothing. I am making an adventure map on 1.13 and can't get it to work, no matter what I try. Please help.
Omg Thank you ApplezForLife. Your code works perfectly!
I know I may be a little late, but if you're on minecraft bedrock edition, try /give @p iron_axe 1 0 {"can_destroy":{"blocks":["log"]}}
Of course, you can replace iron axe into the item you use the destroy and log into the block being destroyed. Also, if you want the can place on version, replace can_destroy with can_place_on.
(Just realizing that I literally copied the other person's comment without realizing lol)
How do you use can_destroy if you want a tool that can break objects of a certain color?
Mjhenry83 Try adding a number next to the block, whatever number represents the color you want like what you normally do on other simpler commands
Also help me please I knew this command ages ago but ever since the villager update my command blocks say minecraft:can_break cannot be updated someone please help I am making an adventure map
Destroy: /give @p diamond_pickaxe 1 0 {"minecraft:can_destroy":{"blocks":["stone"]}} Place on: /give @p stone 1 0 {"minecraft:can_place_on":{"blocks":["stone"]}}
Is this also able to do in Bedrock Edition because I only use Bedrock Edition.
Oh wait, I did this as an experiment today and it really works..
nvm then