tutorial:mining_levels
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:mining_levels [2022/03/26 01:29] – updated the mining levels main page to 1.18 cascadecollapse | tutorial:mining_levels [2022/09/29 05:07] (current) – solidblock | ||
---|---|---|---|
Line 2: | Line 2: | ||
==== Introduction ==== | ==== Introduction ==== | ||
- | The way mining levels and preferred tools are assigned has changed significantly in 1.18. Making your tools and blocks interact properly | + | The way mining levels and preferred tools are assigned has changed significantly in 1.17. Making your tools and blocks interact properly |
==== Setting the preferred tool for your block ==== | ==== Setting the preferred tool for your block ==== | ||
- | To define what tool is used to harvest your block, you need to add the block' | + | To define what tool is used to harvest your block, you need to add the block' |
- | <code JavaScript tags/ | + | <code JavaScript |
{ | { | ||
" | " | ||
" | " | ||
- | "examplemod: | + | "tutorial: |
- | "examplemod: | + | "tutorial: |
] | ] | ||
} | } | ||
</ | </ | ||
- | Fabric API also provides two additional tags '' | + | Fabric API also provides two additional tags '' |
==== Setting the block' | ==== Setting the block' | ||
Line 29: | Line 29: | ||
Here we make our late-game ore variants require a diamond tool to harvest: | Here we make our late-game ore variants require a diamond tool to harvest: | ||
- | <code JavaScript minecraft/ | + | <code JavaScript |
{ | { | ||
" | " | ||
" | " | ||
- | "examplemod: | + | "tutorial: |
- | "examplemod: | + | "tutorial: |
] | ] | ||
} | } | ||
Line 40: | Line 40: | ||
Fabric API provides dynamic tags for mining levels above diamond, as well as for wood (mining level 0). Dynamic mining level tags are in the format '' | Fabric API provides dynamic tags for mining levels above diamond, as well as for wood (mining level 0). Dynamic mining level tags are in the format '' | ||
- | <code JavaScript resources/ | + | <code JavaScript |
{ | { | ||
" | " | ||
" | " | ||
- | "examplemod: | + | "tutorial: |
- | "examplemod: | + | "tutorial: |
] | ] | ||
} | } | ||
Line 57: | Line 57: | ||
Example of adding a pickaxe to the '' | Example of adding a pickaxe to the '' | ||
- | File Location: | + | <code javascript |
- | <code javascript> | + | |
{ | { | ||
" | " | ||
" | " | ||
- | "examplemod: | + | "tutorial: |
] | ] | ||
} | } | ||
</ | </ |
tutorial/mining_levels.1648258151.txt.gz · Last modified: 2022/03/26 01:29 by cascadecollapse