tutorial:datagen_tags
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorial:datagen_tags [2023/06/05 18:13] – Update to new constructor mcrafterzz | tutorial:datagen_tags [2023/06/05 18:22] (current) – [Adding stuff to the builder] mcrafterzz | ||
---|---|---|---|
Line 14: | Line 14: | ||
| | ||
- | | + | |
+ | | ||
} | } | ||
} | } | ||
Line 33: | Line 33: | ||
===== Adding a tag ===== | ===== Adding a tag ===== | ||
- | To add a tag, simply call the '' | + | To add a tag, simply call the '' |
<code java> | <code java> | ||
- | private static final TagKey< | + | private static final TagKey< |
@Override | @Override | ||
- | protected void generateTags() { | + | protected void configure(WrapperLookup arg) { |
// This creates a tag builder, where we add slime balls, rotten flesh and everything in the minecraft: | // This creates a tag builder, where we add slime balls, rotten flesh and everything in the minecraft: | ||
| | ||
Line 80: | Line 80: | ||
<code java> | <code java> | ||
- | private static final TagKey< | + | private static final TagKey< |
@Override | @Override | ||
- | protected void generateTags() { | + | protected void configure(WrapperLookup arg) { |
| | ||
.add(Items.SLIME_BALL) | .add(Items.SLIME_BALL) |
tutorial/datagen_tags.1685988798.txt.gz · Last modified: 2023/06/05 18:13 by mcrafterzz