tutorial:mining_levels
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
tutorial:mining_levels [2022/03/26 01:30] – [Introduction] slight change in wording: only -> now cascadecollapse | tutorial:mining_levels [2022/04/29 09:39] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
==== 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.txt · Last modified: 2022/09/29 05:07 by solidblock