New answers tagged

1

The cleanest method would be to check if m.toString() contains the "_AXE" string in it. Same with swords ("_SWORD"), and every tool.


0

I ended up using this if ( //Axe m == Material.DIAMOND_AXE || m == Material.GOLD_AXE || m == Material.IRON_AXE || m == Material.STONE_AXE || m == Material.WOOD_AXE //Pickaxe || m == ...



Top 50 recent answers are included