This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
tutorial:tags [2022/05/25 08:11] solidblock [1.16.5 and below (Requires Fabric API)] 1.17 uses TagRegistry |
tutorial:tags [2022/06/22 07:40] (current) solidblock [1.17 and below, not including 1.17.1 (Requires Fabric API)] |
||
---|---|---|---|
Line 42: | Line 42: | ||
</yarncode> | </yarncode> | ||
+ | Note that `TagRegistry` is deprecated since Fabric API 0.46.0 where `TagFactory` is added, and which does not support 1.17. | ||
===== 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 ''yourmodid:yourtaghere'', with the example above. However, if your mod adds items which other mods also add, you can: | 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 ''yourmodid:yourtaghere'', with the example above. However, if your mod adds items which other mods also add, you can: |