Giter Site home page Giter Site logo

allfivestarsmod's Introduction

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

allfivestarsmod's People

Contributors

yuko1101 avatar

Stargazers

碧翠斯卡洛儿 avatar

Watchers

 avatar

Forkers

799353918

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.