tutorial:items
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
tutorial:items [2022/10/22 11:52] – solidblock | tutorial:items [2022/12/11 21:24] – Remove item group haykam | ||
---|---|---|---|
Line 13: | Line 13: | ||
// an instance of our new item | // an instance of our new item | ||
- | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings().method_7892(class_1761.field_7932)); | + | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings()); |
[...] | [...] | ||
} | } | ||
Line 24: | Line 24: | ||
// an instance of our new item | // an instance of our new item | ||
- | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings().method_7892(class_1761.field_7932)); | + | public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings()); |
@Override | @Override | ||
public void onInitialize() { | public void onInitialize() { | ||
- | class_2378.method_10230(class_2378.field_11142, new class_2960(" | + | class_2378.method_10230(class_7923.field_41178, new class_2960(" |
} | } | ||
} | } | ||
Line 42: | Line 42: | ||
// an instance of our new item | // an instance of our new item | ||
public static final class_1792 CUSTOM_ITEM = | public static final class_1792 CUSTOM_ITEM = | ||
- | class_2378.method_10230(class_2378.field_11142, new class_2960(" | + | class_2378.method_10230(class_7923.field_41178, new class_2960(" |
- | new class_1792(new FabricItemSettings().method_7892(class_1761.field_7932))); | + | new class_1792(new FabricItemSettings())); |
@Override | @Override | ||
Line 113: | Line 113: | ||
// an instance of our new item | // an instance of our new item | ||
- | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings().method_7892(class_1761.field_7932)); | + | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings()); |
[...] | [...] | ||
} | } | ||
Line 126: | Line 126: | ||
// An instance of our new item, where the maximum stack size is 16 | // An instance of our new item, where the maximum stack size is 16 | ||
- | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings().method_7892(class_1761.field_7932).method_7889(16)); | + | public static final CustomItem CUSTOM_ITEM = new CustomItem(new FabricItemSettings().method_7889(16)); |
[...] | [...] | ||
} | } |
tutorial/items.txt · Last modified: 2024/04/20 08:05 by ryhon