I'm making a lumber tycoon in minecraft, and I have a command by the press of a button to take money from the player and give the product with the "privilege" to break logs, but it seems to only break oak logs.

The command I am using is: /give @p wooden_axe 1 0 ("minecraft:can_destroy":{"blocks":["log"]}}

How can I make it break all other types of log too?


1 Answer 1


You'll need to pick all of the other wood types: "log" defaults to "oak_log", since oak was the first tree type in the game.

/give @p wooden_axe 1 0 {"minecraft:can_destroy":{"blocks":["oak_log","spruce_log","birch_log","jungle_log","acacia_log","dark_oak_log"]}} should work.

  • Can you make sure you typed it correctly? Commented Nov 19, 2020 at 3:07
  • @zerealsendy4 Does it break all blocks instead of just logs?
    – Corsaka
    Commented Nov 19, 2020 at 13:28
  • No the code just straight up doesn't work Commented Nov 19, 2020 at 17:44
  • @zerealsendy4 I made a typo. Whoops. Should work now.
    – Corsaka
    Commented Nov 20, 2020 at 9:06
  • So whats the new command? Commented Nov 20, 2020 at 16:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .