Broken code (test)
This commit is contained in:
15
src/main/java/chickenmanfy/scify/mixin/ExampleMixin.java
Normal file
15
src/main/java/chickenmanfy/scify/mixin/ExampleMixin.java
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
8
src/main/kotlin/chickenmanfy/scify/SciFy.kt
Normal file
8
src/main/kotlin/chickenmanfy/scify/SciFy.kt
Normal file
@@ -0,0 +1,8 @@
|
||||
package chickenmanfy.scify
|
||||
|
||||
import net.fabricmc.api.ModInitializer
|
||||
|
||||
object SciFy : ModInitializer {
|
||||
override fun onInitialize() {
|
||||
}
|
||||
}
|
||||
BIN
src/main/resources/assets/scify/icon.png
Normal file
BIN
src/main/resources/assets/scify/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.4 KiB |
58
src/main/resources/fabric.mod.json
Normal file
58
src/main/resources/fabric.mod.json
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "scify",
|
||||
"version": "${version}",
|
||||
"name": "SciFy",
|
||||
"description": "The best (and only) client side Dungeonfy mod.",
|
||||
"authors": [
|
||||
"Main Developer: Chickenmanfy",
|
||||
"Server Owner: Enook",
|
||||
"BearCat865 (Just told me to do it)"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://modrinth.com",
|
||||
"sources": "https://github.com/chickenmanfy/scify/",
|
||||
"issues": "https://github.com/chickenmanfy/scify/issues"
|
||||
},
|
||||
"license": "MPL-2.0",
|
||||
"icon": "assets/scify/icon.png",
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
{
|
||||
"value": "chickenmanfy.scify.SciFy",
|
||||
"adapter": "kotlin"
|
||||
}
|
||||
],
|
||||
"client": [
|
||||
{
|
||||
"value": "chickenmanfy.scify.SciFyClient",
|
||||
"adapter": "kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"scify.mixins.json",
|
||||
{
|
||||
"config": "scify.client.mixins.json",
|
||||
"environment": "client"
|
||||
}
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.15.6",
|
||||
"minecraft": "~1.19.4",
|
||||
"java": ">=17",
|
||||
"fabric-api": "*",
|
||||
"fabric-language-kotlin": ">=1.9.22"
|
||||
},
|
||||
"suggests": {
|
||||
"Dungeonfy+": "*"
|
||||
},
|
||||
"custom": {
|
||||
"modmenu": {
|
||||
"links": {
|
||||
"Discord": "https://discord.gg/yhw4ajkCu8"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
src/main/resources/scify.mixins.json
Normal file
11
src/main/resources/scify.mixins.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"required": true,
|
||||
"package": "chickenmanfy.scify.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
"ExampleMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user