yuko1101 / AllFiveStarsMod

A LunarCore mod makes all your pulls 5 stars.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LunarCoreModTemplate

A mod template for LunarCore with Fabric Loader.

Features

  • Source code injection with Mixin (and MixinExtras)
  • Run/Debug your mod with a single task

Get Started

Requires JDK 17

  1. Click on the Use this template to create a new repo starting from this template.
  2. Clone your repo and open it in your IDE (IntelliJ IDEA is recommended).
  3. Run the gradle task named runServer to generate server files to run dir. (You can stop the task after LunarCore has been started.)
  4. Put LunarCore resources into the run dir.
  5. Just write some code.
  6. Run runServer to test your mod.

Running in Production Environment

You can just run the server in run dir by java @args.txt but with this steps you can run the server without setting up development environment.

Requires JDK 17

  1. Create a empty folder.
  2. Put LunarCore.jar, GameProvider.jar and libraries for it. (GameProvider.jar and its libraries can be downloaded from uploaded artifacts on LunarCoreGameProvider GitHub Actions.)
  3. Put resources for LunarCore into the same dir.
  4. Run java @args.txt.

What is Fabric Loader?

Fabric Loader is a lightweight mod loader usually used for Minecraft which provide much useful features for creating mods. Fabric Loader recognizes a jar in the mods folder with a fabric.mod.json as a mod and loads it at startup.

References

And what is Mixin?

Mixin is a framework for Java which makes it easy to inject/hook into the runtime classloading with ASM. Mixin's config is usually named *.mixins.json (examplemod.mixins.json for this template) and specified by fabric.mod.json with Fabric Loader.

MixinExtras is a plugin of Mixin which provides many useful injectors, and got bundled in Fabric Loader 0.15 or later.

References

About

A LunarCore mod makes all your pulls 5 stars.

License:MIT License


Languages

Language:Java 100.0%