summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLance5057 <lance5057@gmail.com>2018-02-10 09:28:54 -0600
committerLance5057 <lance5057@gmail.com>2018-02-10 09:28:54 -0600
commit870fd36d28dc8160a36e49dff173ba2b000618b9 (patch)
tree22aad1962e9e387bc902f2908d7c41e58f70132c /src
parent058852c525b310ff902baac2af516b71a64a39da (diff)
Did some clean up.
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/example/examplemod/ExampleMod.java31
-rw-r--r--src/main/resources/mcmod.info22
-rw-r--r--src/main/resources/pack.mcmeta11
3 files changed, 49 insertions, 15 deletions
diff --git a/src/main/java/com/example/examplemod/ExampleMod.java b/src/main/java/com/example/examplemod/ExampleMod.java
new file mode 100644
index 0000000..42a155b
--- /dev/null
+++ b/src/main/java/com/example/examplemod/ExampleMod.java
@@ -0,0 +1,31 @@
+package com.example.examplemod;
+
+import net.minecraft.init.Blocks;
+import net.minecraftforge.fml.common.Mod;
+import net.minecraftforge.fml.common.Mod.EventHandler;
+import net.minecraftforge.fml.common.event.FMLInitializationEvent;
+import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
+import org.apache.logging.log4j.Logger;
+
+@Mod(modid = ExampleMod.MODID, name = ExampleMod.NAME, version = ExampleMod.VERSION)
+public class ExampleMod
+{
+ public static final String MODID = "examplemod";
+ public static final String NAME = "Example Mod";
+ public static final String VERSION = "1.0";
+
+ private static Logger logger;
+
+ @EventHandler
+ public void preInit(FMLPreInitializationEvent event)
+ {
+ logger = event.getModLog();
+ }
+
+ @EventHandler
+ public void init(FMLInitializationEvent event)
+ {
+ // some example code
+ logger.info("DIRT BLOCK >> {}", Blocks.DIRT.getRegistryName());
+ }
+}
diff --git a/src/main/resources/mcmod.info b/src/main/resources/mcmod.info
index a32062b..f480667 100644
--- a/src/main/resources/mcmod.info
+++ b/src/main/resources/mcmod.info
@@ -1,14 +1,16 @@
[
{
- "modid": "tinkersdefense",
- "name": "Tinkers' Defense",
- "description": "A defense related expansion for TConstruct",
- "version": "1.4.2.7a",
- "mcversion": "1.12.2",
- "url": "",
- "authorList": ["Sir Lance"],
- "requiredMods": [ "forge", "tconstruct","baubles"],
- "dependencies": ["tconstruct","baubles"],
- "useDependencyInformation": "true"
+ "modid": "examplemod",
+ "name": "Example Mod",
+ "description": "Example placeholder mod.",
+ "version": "${version}",
+ "mcversion": "${mcversion}",
+ "url": "",
+ "updateUrl": "",
+ "authorList": ["ExampleDude"],
+ "credits": "The Forge and FML guys, for making this example",
+ "logoFile": "",
+ "screenshots": [],
+ "dependencies": []
}
]
diff --git a/src/main/resources/pack.mcmeta b/src/main/resources/pack.mcmeta
index fd6f688..4018267 100644
--- a/src/main/resources/pack.mcmeta
+++ b/src/main/resources/pack.mcmeta
@@ -1,6 +1,7 @@
{
- "pack": {
- "pack_format": 1,
- "description": "Resources used for Tinkers Defense"
- }
-} \ No newline at end of file
+ "pack": {
+ "description": "examplemod resources",
+ "pack_format": 3,
+ "_comment": "A pack_format of 3 should be used starting with Minecraft 1.11. All resources, including language files, should be lowercase (eg: en_us.lang). A pack_format of 2 will load your mod resources with LegacyV2Adapter, which requires language files to have uppercase letters (eg: en_US.lang)."
+ }
+}