diff options
| author | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-07-25 17:08:31 +0000 |
|---|---|---|
| committer | anhgelus <anhgelus.morhtuuzh@proton.me> | 2024-07-25 17:08:31 +0000 |
| commit | aef1027f24ad8d871fe11b88a9e4b4f51af620cf (patch) | |
| tree | d7830af9b911f0f8caf876a7e6a4dd8101da11d9 /src | |
Initial commit
Diffstat (limited to 'src')
| -rw-r--r-- | src/main/java/world/anhgelus/manhunt/Manhunt.java | 19 | ||||
| -rw-r--r-- | src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java | 15 | ||||
| -rw-r--r-- | src/main/resources/assets/manhunt/icon.png | bin | 0 -> 2794 bytes | |||
| -rw-r--r-- | src/main/resources/fabric.mod.json | 34 | ||||
| -rw-r--r-- | src/main/resources/manhunt.mixins.json | 11 |
5 files changed, 79 insertions, 0 deletions
diff --git a/src/main/java/world/anhgelus/manhunt/Manhunt.java b/src/main/java/world/anhgelus/manhunt/Manhunt.java new file mode 100644 index 0000000..f7037b9 --- /dev/null +++ b/src/main/java/world/anhgelus/manhunt/Manhunt.java @@ -0,0 +1,19 @@ +package world.anhgelus.manhunt; + +import net.fabricmc.api.ModInitializer; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +public class Manhunt 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 = LogManager.getLogger("manhunt"); + public static final String MOD_ID = "manhunt"; + + @Override + public void onInitialize() { + + } +}
\ No newline at end of file diff --git a/src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java b/src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java new file mode 100644 index 0000000..f3263af --- /dev/null +++ b/src/main/java/world/anhgelus/manhunt/mixin/ExampleMixin.java @@ -0,0 +1,15 @@ +package world.anhgelus.manhunt.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 diff --git a/src/main/resources/assets/manhunt/icon.png b/src/main/resources/assets/manhunt/icon.png Binary files differnew file mode 100644 index 0000000..8a6dc10 --- /dev/null +++ b/src/main/resources/assets/manhunt/icon.png diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json new file mode 100644 index 0000000..ce79883 --- /dev/null +++ b/src/main/resources/fabric.mod.json @@ -0,0 +1,34 @@ +{ + "schemaVersion": 1, + "id": "manhunt", + "version": "${version}", + "name": "Manhunt", + "description": "This is an example description! Tell everyone what your mod is about!", + "authors": [ + "Me!" + ], + "contact": { + "homepage": "https://fabricmc.net/", + "sources": "https://github.com/FabricMC/fabric-example-mod" + }, + "license": "CC0-1.0", + "icon": "assets/manhunt/icon.png", + "environment": "*", + "entrypoints": { + "main": [ + "world.anhgelus.manhunt.Manhunt" + ] + }, + "mixins": [ + "manhunt.mixins.json" + ], + "depends": { + "fabricloader": ">=0.15.11", + "minecraft": "~1.16.1", + "java": ">=8", + "fabric": "*" + }, + "suggests": { + "another-mod": "*" + } +}
\ No newline at end of file diff --git a/src/main/resources/manhunt.mixins.json b/src/main/resources/manhunt.mixins.json new file mode 100644 index 0000000..d1c0666 --- /dev/null +++ b/src/main/resources/manhunt.mixins.json @@ -0,0 +1,11 @@ +{ + "required": true, + "package": "world.anhgelus.manhunt.mixin", + "compatibilityLevel": "JAVA_8", + "mixins": [ + "ExampleMixin" + ], + "injectors": { + "defaultRequire": 1 + } +}
\ No newline at end of file |
