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 [2021/02/27 17:56] – shnupbups | tutorial:tags [2021/08/16 19:09] – [Item Tags] added c:books tag and added arcanus:fillable_bookshelf to c:bookshelves tag cammie | ||
---|---|---|---|
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 ===== | ||
Line 165: | Line 177: | ||
| c: | | c: | ||
| c:bones| minecraft: | | c:bones| minecraft: | ||
- | | c: | + | | c:books| minecraft: |
+ | | :::| minecraft: | ||
+ | | :::| minecraft: | ||
+ | | :::| minecraft: | ||
+ | | :::| minecraft: | ||
+ | | :::| patchouli: | ||
+ | | c: | ||
+ | | :::| byg: | ||
| :::| byg: | | :::| byg: | ||
| :::| byg: | | :::| byg: |
tutorial/tags.txt · Last modified: 2024/01/05 13:53 by cph101