Hi I am trying to make a custom tool for my mod. I'm trying to make a new tool not any vanilla tool so not a pickaxe, sword, axe, hoe, or shovel. I'm new to modding so posting the code would be very helpful. Thanks in advance.
P.S. Already posted this somewhere else but it was in the wrong place sorry.
To make a custom tool, extend ItemTool and call Item#setHarvestLevel with a custom tool class string (i.e. anything that's not "pickaxe", "axe" or "shovel"). To make a Block require that tool to harvest, call Block#setHarvestLevel with the same tool class string.
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.