User Tools

Site Tools


tutorial:armor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
tutorial:armor [2022/12/11 21:27] – Remove item group haykamtutorial:armor [2022/12/16 00:26] – should use tutorial namespace solidblock
Line 114: Line 114:
 <yarncode java [enable_line_numbers="true"]> <yarncode java [enable_line_numbers="true"]>
 public static void register() { public static void register() {
-    class_2378.method_10230(class_7923.field_41178, new class_2960("examplemod", "custom_material"), CUSTOM_MATERIAL); +    class_2378.method_10230(class_7923.field_41178, new class_2960("tutorial", "custom_material"), CUSTOM_MATERIAL); 
-    class_2378.method_10230(class_7923.field_41178, new class_2960("examplemod", "custom_material_helmet"), CUSTOM_MATERIAL_HELMET); +    class_2378.method_10230(class_7923.field_41178, new class_2960("tutorial", "custom_material_helmet"), CUSTOM_MATERIAL_HELMET); 
-    class_2378.method_10230(class_7923.field_41178, new class_2960("examplemod", "custom_material_chestplate"), CUSTOM_MATERIAL_CHESTPLATE); +    class_2378.method_10230(class_7923.field_41178, new class_2960("tutorial", "custom_material_chestplate"), CUSTOM_MATERIAL_CHESTPLATE); 
-    class_2378.method_10230(class_7923.field_41178, new class_2960("examplemod", "custom_material_leggings"), CUSTOM_MATERIAL_LEGGINGS); +    class_2378.method_10230(class_7923.field_41178, new class_2960("tutorial", "custom_material_leggings"), CUSTOM_MATERIAL_LEGGINGS); 
-    class_2378.method_10230(class_7923.field_41178, new class_2960("examplemod", "custom_material_boots"), CUSTOM_MATERIAL_BOOTS);+    class_2378.method_10230(class_7923.field_41178, new class_2960("tutorial", "custom_material_boots"), CUSTOM_MATERIAL_BOOTS);
 } }
 </yarncode> </yarncode>
Line 126: Line 126:
 <yarncode java [enable_line_numbers="true"]> <yarncode java [enable_line_numbers="true"]>
 public static final class_1761 EXAMPLE_MOD_GROUP = FabricItemGroupBuilder.create( public static final class_1761 EXAMPLE_MOD_GROUP = FabricItemGroupBuilder.create(
-    new class_2960("examplemod", "example_mod_group"))+    new class_2960("tutorial", "example_mod_group"))
     .icon(() -> new class_1799(RegisterItems.CUSTOM_MATERIAL)) // This uses the model of the new material you created as an icon, but you can reference to whatever you like     .icon(() -> new class_1799(RegisterItems.CUSTOM_MATERIAL)) // This uses the model of the new material you created as an icon, but you can reference to whatever you like
     .build();     .build();
Line 152: Line 152:
 The following should be the same with all armor items, only changing which part are we using. We'll use helmet for our example. The following should be the same with all armor items, only changing which part are we using. We'll use helmet for our example.
  
-<code JSON resources/assets/examplemod/models/item/custom_material_helmet.json>+<code JSON resources/assets/tutorial/models/item/custom_material_helmet.json>
 { {
  "parent": "item/generated",  "parent": "item/generated",
  "textures": {  "textures": {
- "layer0": "examplemod:item/custom_material_helmet"+ "layer0": "tutorial:item/custom_material_helmet"
  }  }
 } }
tutorial/armor.txt · Last modified: 2023/08/20 10:19 by wjz_p