tutorial:tags
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorial:tags [2024/06/12 18:34] – [Existing conventional tags] cph101 | tutorial:tags [2026/02/10 22:24] (current) – cassiancc | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| ==== Defining through JSON ==== | ==== Defining through JSON ==== | ||
| - | File Location: '' | + | File Location: |
| + | * '' | ||
| + | * '' | ||
| <code javascript> | <code javascript> | ||
| Line 26: | Line 28: | ||
| Vanilla tag objects can be found in class ''< | Vanilla tag objects can be found in class ''< | ||
| - | === Minecraft 1.19.3 and above === | + | === Minecraft 1.21.11 and above (Mojang Mappings) |
| + | |||
| + | public class ModBlockTags { | ||
| + | public static final TagKey< | ||
| + | } | ||
| + | |||
| + | === Minecraft 1.21.1 and above (Mojang Mappings) | ||
| + | |||
| + | public class ModBlockTags { | ||
| + | public static final TagKey< | ||
| + | } | ||
| + | |||
| + | === Minecraft 1.21.1 through 1.21.10 (Mojang Mappings) | ||
| + | |||
| + | public class ModBlockTags { | ||
| + | public static final TagKey< | ||
| + | } | ||
| + | |||
| + | === Minecraft 1.21 and above (Yarn Mappings) === | ||
| + | |||
| + | < | ||
| + | public class ModBlockTags { | ||
| + | public static final TagKey< | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | === Minecraft 1.19.3 through 1.20.6 (Yarn Mappings) | ||
| < | < | ||
| Line 34: | Line 62: | ||
| </ | </ | ||
| - | === Minecraft 1.18.2 through 1.19.2 === | + | === Minecraft 1.18.2 through 1.19.2 |
| < | < | ||
| Line 42: | Line 70: | ||
| </ | </ | ||
| - | === Minecraft 1.17.1 through 1.18.1 === | + | === Minecraft 1.17.1 through 1.18.1 |
| In Minecraft 1.17.1 through 1.18.1, Fabric API provides a helper method for creating a tag: | In Minecraft 1.17.1 through 1.18.1, Fabric API provides a helper method for creating a tag: | ||
| Line 52: | Line 80: | ||
| </ | </ | ||
| - | === Minecraft 1.17 and below === | + | === Minecraft 1.17 and below (Yarn Mappings) |
| In Minecraft 1.17 (not including Minecraft 1.17.1) and earlier versions, Fabric API provides a different API for creating a tag: | In Minecraft 1.17 (not including Minecraft 1.17.1) and earlier versions, Fabric API provides a different API for creating a tag: | ||
| Line 78: | Line 106: | ||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| - | A flat structure is used rather than a hierarchal | + | Since 1.21, A hierarchal |
| ==== Existing conventional tags ===== | ==== Existing conventional tags ===== | ||
tutorial/tags.1718217260.txt.gz · Last modified: 2024/06/12 18:34 by cph101