tutorial:tags
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:tags [2022/05/24 11:41] – use <yarn(code)> expect for TagKey, for which is doesn't work, and Tag, which will be removed in 1.19 juuz | tutorial:tags [2022/12/16 02:39] – solidblock | ||
---|---|---|---|
Line 20: | Line 20: | ||
Vanilla tag objects can be found in class ''< | Vanilla tag objects can be found in class ''< | ||
- | === 1.18.2 and above === | + | === 1.19.3 and above === |
< | < | ||
public class ModBlockTags { | public class ModBlockTags { | ||
- | public static final TagKey< | + | public static final TagKey< |
} | } | ||
</ | </ | ||
+ | === 1.19.2 and below === | ||
+ | < | ||
+ | public class ModBlockTags { | ||
+ | public static final TagKey< | ||
+ | } | ||
+ | </ | ||
==== 1.18.1 and below (Requires Fabric API) ==== | ==== 1.18.1 and below (Requires Fabric API) ==== | ||
Line 35: | Line 41: | ||
</ | </ | ||
- | ==== 1.16.5 and below (Requires Fabric API) ==== | + | ==== 1.17 and below, not including 1.17.1 |
< | < | ||
public class ModBlockTags { | public class ModBlockTags { | ||
Line 42: | Line 48: | ||
</ | </ | ||
+ | Note that '' | ||
===== Common Tags vs Mod Tags ===== | ===== Common Tags vs Mod Tags ===== | ||
If your tag applies ONLY to items in your mod, and no other mod is likely to have similar items, or you specifically want to only include your mod's items in that tag, then use '' | If your tag applies ONLY to items in your mod, and no other mod is likely to have similar items, or you specifically want to only include your mod's items in that tag, then use '' | ||
Line 50: | Line 57: | ||
====== Existing Common Tags ====== | ====== Existing Common Tags ====== | ||
This section was [[https:// | This section was [[https:// | ||
- | |||
===== Item Tags ===== | ===== Item Tags ===== |
tutorial/tags.txt · Last modified: 2024/01/05 13:53 by cph101