rename stuff
This commit is contained in:
parent
1c6e3a2abf
commit
1695fac71e
6 changed files with 27 additions and 28 deletions
|
@ -5,6 +5,6 @@ org.gradle.parallel = true
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
version = 1.0.0
|
version = 1.0.0
|
||||||
maven_group = minecommune.xyz
|
maven_group = minecommune.xyz
|
||||||
archives_base_name = mico-mc
|
archives_base_name = micomc
|
||||||
|
|
||||||
# Dependencies are managed at gradle/libs.versions.toml
|
# Dependencies are managed at gradle/libs.versions.toml
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
package com.example.example_mod;
|
package xyz.minecommune.micomc;
|
||||||
|
|
||||||
import org.quiltmc.loader.api.ModContainer;
|
import org.quiltmc.loader.api.ModContainer;
|
||||||
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
import org.quiltmc.qsl.base.api.entrypoint.ModInitializer;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
public class ExampleMod implements ModInitializer {
|
public class MicoMc implements ModInitializer {
|
||||||
|
|
||||||
// This logger is used to write text to the console and the log file.
|
// This logger is used to write text to the console and the log file.
|
||||||
// It is considered best practice to use your mod name as the logger's name.
|
// It is considered best practice to use your mod name as the logger's name.
|
||||||
// That way, it's clear which mod wrote info, warnings, and errors.
|
// That way, it's clear which mod wrote info, warnings, and errors.
|
|
@ -1,16 +1,17 @@
|
||||||
package com.example.example_mod.mixin;
|
package xyz.minecommune.micomc.mixin;
|
||||||
|
|
||||||
import com.example.example_mod.ExampleMod;
|
|
||||||
import net.minecraft.client.gui.screen.TitleScreen;
|
import net.minecraft.client.gui.screen.TitleScreen;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
import xyz.minecommune.micomc.MicoMc;
|
||||||
|
|
||||||
@Mixin(TitleScreen.class)
|
@Mixin(TitleScreen.class)
|
||||||
public class TitleScreenMixin {
|
public class TitleScreenMixin {
|
||||||
|
|
||||||
@Inject(method = "init", at = @At("TAIL"))
|
@Inject(method = "init", at = @At("TAIL"))
|
||||||
public void onInit(CallbackInfo ci) {
|
public void onInit(CallbackInfo ci) {
|
||||||
ExampleMod.LOGGER.info("This line is printed by an example mod mixin!");
|
MicoMc.LOGGER.info("This line is printed by an example mod mixin!");
|
||||||
}
|
}
|
||||||
}
|
}
|
Binary file not shown.
Before Width: | Height: | Size: 180 B |
|
@ -1,13 +1,11 @@
|
||||||
{
|
{
|
||||||
"required": true,
|
"required": true,
|
||||||
"minVersion": "0.8",
|
"minVersion": "0.8",
|
||||||
"package": "com.example.example_mod.mixin",
|
"package": "xyz.minecommune.micomc.mixin",
|
||||||
"compatibilityLevel": "JAVA_17",
|
"compatibilityLevel": "JAVA_17",
|
||||||
"mixins": [],
|
"mixins": [],
|
||||||
"client": [
|
"client": ["TitleScreenMixin"],
|
||||||
"TitleScreenMixin"
|
"injectors": {
|
||||||
],
|
"defaultRequire": 1
|
||||||
"injectors": {
|
}
|
||||||
"defaultRequire": 1
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,24 +2,23 @@
|
||||||
"schema_version": 1,
|
"schema_version": 1,
|
||||||
"quilt_loader": {
|
"quilt_loader": {
|
||||||
"group": "${group}",
|
"group": "${group}",
|
||||||
"id": "example_mod",
|
"id": "micomc",
|
||||||
"version": "${version}",
|
"version": "${version}",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "Mod Name",
|
"name": "MiCo MC",
|
||||||
"description": "A short description of your mod.",
|
"description": "General Purpouse mod hand made for the MineCommune Server",
|
||||||
"contributors": {
|
"contributors": {
|
||||||
"Your name here": "Owner"
|
"Your name here": "Morrigan"
|
||||||
},
|
},
|
||||||
"contact": {
|
"contact": {
|
||||||
"homepage": "https://example.com/",
|
"homepage": "https://minecommune.xyz/",
|
||||||
"issues": "https://github.com/QuiltMC/quilt-template-mod/issues",
|
"issues": "https://thighs.faith/morrigan/mico-mc/issues",
|
||||||
"sources": "https://github.com/QuiltMC/quilt-template-mod"
|
"sources": "https://thighs.faith/morrigan/mico-mc"
|
||||||
},
|
}
|
||||||
"icon": "assets/example_mod/icon.png"
|
|
||||||
},
|
},
|
||||||
"intermediate_mappings": "net.fabricmc:intermediary",
|
"intermediate_mappings": "net.fabricmc:intermediary",
|
||||||
"entrypoints": {
|
"entrypoints": {
|
||||||
"init": "com.example.example_mod.ExampleMod"
|
"init": "xyz.minecommune.micomc.MicoMc"
|
||||||
},
|
},
|
||||||
"depends": [
|
"depends": [
|
||||||
{
|
{
|
||||||
|
@ -36,5 +35,5 @@
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"mixin": "example_mod.mixins.json"
|
"mixin": "mico-mod.mixins.json"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue