User Tools

Site Tools


tutorial:a_new_page

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
tutorial:a_new_page [2022/08/17 21:43] – removed clomclemtutorial:a_new_page [2022/12/16 06:51] – Checking effects of login on map2fabricyarn daomephsta
Line 1: Line 1:
 +====== Example Page ======
  
 +Hey, you clicked the link!
 +But i’m afraid this is not the correct way to create a page, you need to specify your own page name instead of a_new_page, so go on, do it!
 +
 +===== Test Please Ignore =====
 +<yarncode java [enable_line_numbers="true"]>
 +public class ExampleMod implements ModInitializer {
 +
 +    // an instance of our new item
 +    public static final class_1792 CUSTOM_ITEM = new class_1792(new FabricItemSettings());
 +
 +    @Override
 +    public void onInitialize() {
 +        class_2378000.method_10230000(class_7923000.field_41178000, new class_2960000("tutorial", "custom_item"), CUSTOM_ITEM);
 +    }
 +}
 +</yarncode>
tutorial/a_new_page.txt · Last modified: 2022/12/16 06:55 by daomephsta