aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/example/ExampleMod.java
diff options
context:
space:
mode:
authorRoman / Linnea Gräf <roman.graef@gmail.com>2023-07-21 12:15:37 +0200
committerGitHub <noreply@github.com>2023-07-21 12:15:37 +0200
commit2c7e371cb8d566875d767dd20c4a1287d5275b2c (patch)
tree593b568f15ac5de7cbced5519f8850a37ea7aba7 /src/main/java/com/example/ExampleMod.java
downloadSkyblockPlayersAnonymous-2c7e371cb8d566875d767dd20c4a1287d5275b2c.tar.gz
SkyblockPlayersAnonymous-2c7e371cb8d566875d767dd20c4a1287d5275b2c.tar.bz2
SkyblockPlayersAnonymous-2c7e371cb8d566875d767dd20c4a1287d5275b2c.zip
Initial commit
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());
+ }
+}