https://github.com/nahkd123/nahara-modkit
Like Nahara's Toolkit, but for Fabric mods
https://github.com/nahkd123/nahara-modkit
fabric java library modding
Last synced: 2 months ago
JSON representation
Like Nahara's Toolkit, but for Fabric mods
- Host: GitHub
- URL: https://github.com/nahkd123/nahara-modkit
- Owner: nahkd123
- Created: 2023-08-01T18:03:27.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-23T17:04:00.000Z (almost 3 years ago)
- Last Synced: 2025-08-23T23:28:34.028Z (11 months ago)
- Topics: fabric, java, library, modding
- Language: Java
- Homepage:
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nahara's Modkit
_Like [Nahara's Toolkit](https://github.com/nahkd123/nahara-toolkit), but for Fabric mods._
## Project overview
### Annotations (v1)
Use annotations to generate ``fabric.mod.json`` and ``.mixins.json`` instead of typing it out manually:
```java
@Mod(modid = "my-mod", version = "1.0.0")
@EntryPoint
public class MyModMain implements ModInitializer {
@Override
public void onInitialize() {
}
}
@AutoMixin(isClient = false)
@Mixin(MinecraftServer.class)
public abstract class MinecraftServerMixin {
}
```
Using ``nahara-modkit-annotations-v1``
```groovy
dependencies {
// Yes, we don't use modImplementation
implementation annotationProcessor("me.nahkd:nahara-modkit-annotations-v1:1.0.0-SNAPSHOT")
}
// Include this if you want to use "${version}" in your annotation
// Like this: @Mod(modid = "my-mod", version = "${version}")
compileJava {
options.compilerArgs << "-Anahara.modkit.expand=version:${project.version}"
}
```
### Scheduler (v1)
Schedule tasks that's synchronized with server thread.
See ``example-mod``.