tutorial:tags
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:tags [2021/02/27 17:56] – shnupbups | tutorial:tags [2021/07/27 06:42] – justinhuprime | ||
---|---|---|---|
Line 13: | Line 13: | ||
</ | </ | ||
The ''" | The ''" | ||
+ | |||
+ | To register this tag and use it in your code, you will need to do the following (using the Fabric API): | ||
+ | <code java> | ||
+ | import net.fabricmc.fabric.api.tag.TagRegistry; | ||
+ | import net.minecraft.block.Block; | ||
+ | import net.minecraft.tag.Tag; | ||
+ | import net.minecraft.util.Identifier; | ||
+ | |||
+ | public class BlockTags { | ||
+ | public static final Tag< | ||
+ | } | ||
+ | </ | ||
===== Common Tags vs Mod Tags ===== | ===== Common Tags vs Mod Tags ===== |
tutorial/tags.txt · Last modified: 2024/01/05 13:53 by cph101