tutorial:tools
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
tutorial:tools [2020/06/09 03:36] – Add line numbers boogiemonster1o1 | tutorial:tools [2020/07/20 08:53] – shedaniel | ||
---|---|---|---|
Line 12: | Line 12: | ||
<code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
- | public enum CustomToolMaterial implements | + | public enum CustomToolMaterial implements |
CustomToolMaterial(int miningLevel, | CustomToolMaterial(int miningLevel, | ||
Line 29: | Line 29: | ||
To make these values accessible from outside the constructor, | To make these values accessible from outside the constructor, | ||
<code java [enable_line_numbers=true]> | <code java [enable_line_numbers=true]> | ||
- | public enum CustomToolMaterial implements | + | public enum CustomToolMaterial implements |
private final int miningLevel; | private final int miningLevel; | ||
private final int itemDurability; | private final int itemDurability; | ||
Line 154: | Line 154: | ||
</ | </ | ||
+ | ==== Making your tool work with non-vanilla blocks ==== | ||
+ | |||
+ | Visit the last section of https:// |
tutorial/tools.txt · Last modified: 2023/09/07 05:32 by drakonkinst