Rename and other things

This commit is contained in:
chipmunk 2023-01-26 21:15:48 -05:00
parent 9cfe28c5ea
commit 593ff01e3b
6 changed files with 36 additions and 36 deletions

View file

@ -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

View file

@ -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!");
}
}

View file

@ -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!");
}
}

View file

@ -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!");
}
}

View file

@ -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": [

View file

@ -1,7 +1,7 @@
{
"required": true,
"minVersion": "0.8",
"package": "net.fabricmc.example.mixin",
"package": "land.chipmunk.chipmunkmod.mixin",
"compatibilityLevel": "JAVA_17",
"mixins": [
],