aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/ExampleMod.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/example/ExampleMod.java')
-rw-r--r--src/main/java/com/example/ExampleMod.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/main/java/com/example/ExampleMod.java b/src/main/java/com/example/ExampleMod.java
new file mode 100644
index 0000000..c18b591
--- /dev/null
+++ b/src/main/java/com/example/ExampleMod.java
@@ -0,0 +1,13 @@
+package com.example;
+
+import net.minecraft.init.Blocks;
+import net.minecraftforge.fml.common.Mod;
+import net.minecraftforge.fml.common.event.FMLInitializationEvent;
+
+@Mod(modid = "examplemod", useMetadata=true)
+public class ExampleMod {
+ @Mod.EventHandler
+ public void init(FMLInitializationEvent event) {
+ System.out.println("Dirt: " + Blocks.dirt.getUnlocalizedName());
+ }
+}