diff --git a/build.gradle b/build.gradle index e9f9bec..9002690 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { - id 'fabric-loom' version '1.6-SNAPSHOT' + id 'fabric-loom' version '1.7-SNAPSHOT' id 'maven-publish' id "org.jetbrains.kotlin.jvm" version "2.0.0" } diff --git a/gradle.properties b/gradle.properties index 26156f5..7bdef9f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,10 +14,10 @@ loader_version=0.15.11 fabric_kotlin_version=1.11.0+kotlin.2.0.0 # Mod Properties -mod_version=1.0.0 +mod_version=b1.0.0 maven_group=chickenmanfy.scify archives_base_name=scify # Dependencies fabric_version=0.97.1+1.20.4 -modmenu_version=9.0.0 \ No newline at end of file +modmenu_version=9.2.0 \ No newline at end of file diff --git a/remappedSrc/chickenmanfy/scify/mixin/ExampleMixin.java b/remappedSrc/chickenmanfy/scify/mixin/ExampleMixin.java new file mode 100644 index 0000000..f3d267e --- /dev/null +++ b/remappedSrc/chickenmanfy/scify/mixin/ExampleMixin.java @@ -0,0 +1,15 @@ +package chickenmanfy.scify.mixin; + +import net.minecraft.server.MinecraftServer; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +@Mixin(MinecraftServer.class) +public class ExampleMixin { + @Inject(at = @At("HEAD"), method = "loadWorld") + private void init(CallbackInfo info) { + // This code is injected into the start of MinecraftServer.loadWorld()V + } +} \ No newline at end of file