From 593ff01e3b40154041722db6614118fd21e5db65 Mon Sep 17 00:00:00 2001 From: Chip <65827213+ChipmunkMC@users.noreply.github.com> Date: Thu, 26 Jan 2023 21:15:48 -0500 Subject: [PATCH] Rename and other things --- gradle.properties | 4 ++-- .../chipmunk/chipmunkmod/ChipmunkMod.java | 21 +++++++++++++++++++ .../chipmunkmod}/mixin/ExampleMixin.java | 12 +++++------ .../java/net/fabricmc/example/ExampleMod.java | 21 ------------------- src/main/resources/fabric.mod.json | 12 +++++------ src/main/resources/modid.mixins.json | 2 +- 6 files changed, 36 insertions(+), 36 deletions(-) create mode 100644 src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java rename src/main/java/{net/fabricmc/example => land/chipmunk/chipmunkmod}/mixin/ExampleMixin.java (55%) delete mode 100644 src/main/java/net/fabricmc/example/ExampleMod.java diff --git a/gradle.properties b/gradle.properties index 4f48cd6..855dfe8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,8 +10,8 @@ org.gradle.parallel=true # Mod Properties mod_version = 1.0.0 - maven_group = com.example - archives_base_name = fabric-example-mod + maven_group = land.chipmunk.chipmunkmod + archives_base_name = chipmunkmod # Dependencies fabric_version=0.68.1+1.19.3 diff --git a/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java b/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java new file mode 100644 index 0000000..805889a --- /dev/null +++ b/src/main/java/land/chipmunk/chipmunkmod/ChipmunkMod.java @@ -0,0 +1,21 @@ +package land.chipmunk.chipmunkmod; + +import net.fabricmc.api.ModInitializer; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class ChipmunkMod implements ModInitializer { + // This logger is used to write text to the console and the log file. + // It is considered best practice to use your mod id as the logger's name. + // That way, it's clear which mod wrote info, warnings, and errors. + public static final Logger LOGGER = LoggerFactory.getLogger("modid"); + + @Override + public void onInitialize () { + // This code runs as soon as Minecraft is in a mod-load-ready state. + // However, some things (like resources) may still be uninitialized. + // Proceed with mild caution. + + LOGGER.info("Hello Fabric world!"); + } +} diff --git a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java b/src/main/java/land/chipmunk/chipmunkmod/mixin/ExampleMixin.java similarity index 55% rename from src/main/java/net/fabricmc/example/mixin/ExampleMixin.java rename to src/main/java/land/chipmunk/chipmunkmod/mixin/ExampleMixin.java index 356cb38..8b49e76 100644 --- a/src/main/java/net/fabricmc/example/mixin/ExampleMixin.java +++ b/src/main/java/land/chipmunk/chipmunkmod/mixin/ExampleMixin.java @@ -1,6 +1,6 @@ -package net.fabricmc.example.mixin; +package land.chipmunk.chipmunkmod.mixin; -import net.fabricmc.example.ExampleMod; +import land.chipmunk.chipmunkmod.ChipmunkMod; import net.minecraft.client.gui.screen.TitleScreen; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; @@ -9,8 +9,8 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(TitleScreen.class) public class ExampleMixin { - @Inject(at = @At("HEAD"), method = "init()V") - private void init(CallbackInfo info) { - ExampleMod.LOGGER.info("This line is printed by an example mod mixin!"); - } + @Inject(at = @At("HEAD"), method = "init()V") + private void init(CallbackInfo info) { + ChipmunkMod.LOGGER.info("This line is printed by an example mod mixin!"); + } } diff --git a/src/main/java/net/fabricmc/example/ExampleMod.java b/src/main/java/net/fabricmc/example/ExampleMod.java deleted file mode 100644 index a964189..0000000 --- a/src/main/java/net/fabricmc/example/ExampleMod.java +++ /dev/null @@ -1,21 +0,0 @@ -package net.fabricmc.example; - -import net.fabricmc.api.ModInitializer; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class ExampleMod implements ModInitializer { - // This logger is used to write text to the console and the log file. - // It is considered best practice to use your mod id as the logger's name. - // That way, it's clear which mod wrote info, warnings, and errors. - public static final Logger LOGGER = LoggerFactory.getLogger("modid"); - - @Override - public void onInitialize() { - // This code runs as soon as Minecraft is in a mod-load-ready state. - // However, some things (like resources) may still be uninitialized. - // Proceed with mild caution. - - LOGGER.info("Hello Fabric world!"); - } -} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 2ca73ad..1e47df8 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -3,14 +3,14 @@ "id": "modid", "version": "${version}", - "name": "Example Mod", - "description": "This is an example description! Tell everyone what your mod is about!", + "name": "Chipmunk Mod", + "description": "A utility mod created for free-op servers with minimal or no restrictions", "authors": [ - "Me!" + "_ChipMC_" ], "contact": { - "homepage": "https://fabricmc.net/", - "sources": "https://github.com/FabricMC/fabric-example-mod" + "homepage": "https://chipmunk.land/", + "sources": "https://code.chipmunk.land/ChipmunkMC/fabric-mod-mabe" }, "license": "CC0-1.0", @@ -19,7 +19,7 @@ "environment": "*", "entrypoints": { "main": [ - "net.fabricmc.example.ExampleMod" + "land.chipmunk.chipmunkmod.ChipmunkMod" ] }, "mixins": [ diff --git a/src/main/resources/modid.mixins.json b/src/main/resources/modid.mixins.json index 7c42cb4..c01fc62 100644 --- a/src/main/resources/modid.mixins.json +++ b/src/main/resources/modid.mixins.json @@ -1,7 +1,7 @@ { "required": true, "minVersion": "0.8", - "package": "net.fabricmc.example.mixin", + "package": "land.chipmunk.chipmunkmod.mixin", "compatibilityLevel": "JAVA_17", "mixins": [ ],