mirror of
https://github.com/JonasunderscoreJones/NotEnoughCursedness.git
synced 2025-10-23 12:39:19 +02:00
initial project structure
This commit is contained in:
parent
248f74057c
commit
664a6f9b67
15 changed files with 740 additions and 0 deletions
21
src/main/java/me/jonasjones/nec/NotEnoughCursedness.java
Normal file
21
src/main/java/me/jonasjones/nec/NotEnoughCursedness.java
Normal file
|
@ -0,0 +1,21 @@
|
|||
package me.jonasjones.nec;
|
||||
|
||||
import net.fabricmc.api.ModInitializer;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
public class NotEnoughCursedness 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("nec");
|
||||
|
||||
@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("Your game is now cursed!");
|
||||
}
|
||||
}
|
16
src/main/java/me/jonasjones/nec/mixin/ExampleMixin.java
Normal file
16
src/main/java/me/jonasjones/nec/mixin/ExampleMixin.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
package me.jonasjones.nec.mixin;
|
||||
|
||||
import me.jonasjones.nec.NotEnoughCursedness;
|
||||
import net.minecraft.client.gui.screen.TitleScreen;
|
||||
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(TitleScreen.class)
|
||||
public class ExampleMixin {
|
||||
@Inject(at = @At("HEAD"), method = "init()V")
|
||||
private void init(CallbackInfo info) {
|
||||
NotEnoughCursedness.LOGGER.info("This line is printed by an example mod mixin!");
|
||||
}
|
||||
}
|
BIN
src/main/resources/assets/nec/icon.png
Normal file
BIN
src/main/resources/assets/nec/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 453 B |
39
src/main/resources/fabric.mod.json
Normal file
39
src/main/resources/fabric.mod.json
Normal file
|
@ -0,0 +1,39 @@
|
|||
{
|
||||
"schemaVersion": 1,
|
||||
"id": "nec",
|
||||
"version": "${version}",
|
||||
|
||||
"name": "Not Enough Cursedness",
|
||||
"description": "A Minecraft mode introducing every little bit of cursed items/behavior into the game!",
|
||||
"authors": [
|
||||
"Jonas_Jones"
|
||||
],
|
||||
"contact": {
|
||||
"homepage": "https://jonasjones.me/projects/nec",
|
||||
"sources": "https://github.com/J-onasJones/NotEnoughCursedness",
|
||||
"issues": "https://github.com/J-onasJones/NotEnoughCursedness/issues"
|
||||
},
|
||||
|
||||
"license": "CC0-1.0",
|
||||
"icon": "assets/nec/icon.png",
|
||||
|
||||
"environment": "*",
|
||||
"entrypoints": {
|
||||
"main": [
|
||||
"me.jonasjones.nec.NotEnoughCursedness"
|
||||
]
|
||||
},
|
||||
"mixins": [
|
||||
"nec.mixins.json"
|
||||
],
|
||||
|
||||
"depends": {
|
||||
"fabricloader": ">=0.14.17",
|
||||
"fabric-api": "*",
|
||||
"minecraft": "~1.19.4",
|
||||
"java": ">=17"
|
||||
},
|
||||
"suggests": {
|
||||
"another-mod": "*"
|
||||
}
|
||||
}
|
14
src/main/resources/nec.mixins.json
Normal file
14
src/main/resources/nec.mixins.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"required": true,
|
||||
"minVersion": "0.8",
|
||||
"package": "me.jonasjones.nec.mixin",
|
||||
"compatibilityLevel": "JAVA_17",
|
||||
"mixins": [
|
||||
],
|
||||
"client": [
|
||||
"ExampleMixin"
|
||||
],
|
||||
"injectors": {
|
||||
"defaultRequire": 1
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue