tutorial:armor_trim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:armor_trim [2024/05/12 12:44] – made title BIG herr_chaos | tutorial:armor_trim [2024/05/12 15:11] – used yarn code correctly herr_chaos | ||
---|---|---|---|
Line 5: | Line 5: | ||
=== Registering the Item === | === Registering the Item === | ||
In theory we don't need to add a new item since this is more data packed than it is modded, but if you would do this using only a data pack we would be missing the nice tooltip in the description of the Armor Trim item.\\ | In theory we don't need to add a new item since this is more data packed than it is modded, but if you would do this using only a data pack we would be missing the nice tooltip in the description of the Armor Trim item.\\ | ||
- | To register this item we need to register it as a new <file>SmithingTemplateItem.of(new Identifier(MOD_ID, TRIM_ID))</file> The TrimId can be separate from the actual item name, but for ease of making we will use the same for both.\\ | + | To register this item we need to register it as a new |
+ | <yarncode java [enable_line_numbers=" | ||
+ | The TrimId can be separate from the actual item name, but for ease of making we will use the same for both.\\ | ||
For the rest we will just need the basic thingamajig of item registration: | For the rest we will just need the basic thingamajig of item registration: | ||
< | < | ||
// adding a new SmithingTemplateItem named " | // adding a new SmithingTemplateItem named " | ||
- | public static final Item TUTORIAL_ARMOR_TRIM = SmithingTemplateItem.of(new Identifier(" | + | public static final class_1792 |
// registering said Item with MODID " | // registering said Item with MODID " | ||
public static void registerModItems() { | public static void registerModItems() { | ||
- | | + | |
} | } | ||
</ | </ |
tutorial/armor_trim.txt · Last modified: 2024/08/26 01:26 by solidblock