diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/dev/asbyth/template/ForgeTemplate.java | 15 | ||||
-rw-r--r-- | src/main/resources/mcmod.info | 18 |
2 files changed, 33 insertions, 0 deletions
diff --git a/src/main/java/dev/asbyth/template/ForgeTemplate.java b/src/main/java/dev/asbyth/template/ForgeTemplate.java new file mode 100644 index 0000000..959cdbc --- /dev/null +++ b/src/main/java/dev/asbyth/template/ForgeTemplate.java @@ -0,0 +1,15 @@ +package dev.asbyth.template; + +import net.minecraft.client.Minecraft; +import net.minecraftforge.fml.common.Mod; +import net.minecraftforge.fml.common.event.FMLInitializationEvent; + +@Mod(modid = "forgetemplate", name = "Forge Template", version = "1.0") +public class ForgeTemplate { + @Mod.EventHandler + public void onFMLInitialization(FMLInitializationEvent event) { + // $USER = The username of the currently logged in user. + // Simply prints out Hello, $USER. + System.out.println("Hello, " + Minecraft.getMinecraft().getSession().getUsername() + "!"); + } +} diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info new file mode 100644 index 0000000..b6aabfc --- /dev/null +++ b/src/main/resources/mcmod.info @@ -0,0 +1,18 @@ +[ + { + "modid": "forgetemplate", + "name": "ForgeTemplate", + "description": "An example template", + "version": "${version}", + "mcversion": "${mcversion}", + "url": "", + "updateUrl": "", + "authorList": [ + "" + ], + "credits": "", + "logoFile": "", + "screenshots": [], + "dependencies": [] + } +] |