Git Product home page Git Product logo

1.8.9-forge-kotlin-mixin-oneconfig's Introduction

1.8.9 Forge Kotlin Template

Architectury Loom based template for 1.8.9 kotlin forge mods including OneConfig

Getting Started

Use this repo as a template using the button "Use this template" on the top right of the page.

Once you've cloned this repository, make sure to set the proper JDK version in IntelliJ.

  • Gradle JVM (set this to version 17): Ctrl + Alt + S -> Build, Execution, Deployment -> Build Tools -> Gradle -> Gradle JVM
  • Project SDK (set this to version 1.8): Ctrl + Alt + Shift + S -> Project -> Project SDK

Writing Your Mod

Make sure to replace the package names with your own package across all files, and you can start writing your mod.

If you don't want mixins (which allow for modifying vanilla code), then you can remove the references to mixins from the build.gradle.kts, delete the mixins.examplemod.json and the dev.spaghett.mixin package.

Note that Mixins should be kept in their own package, and should exclusively be written in Java, since older versions of Mixin don't play well with Kotlin.

Building Your Mod

To export your project, run the gradle build task, and give other people the file build/libs/<modid>-<version>-all.jar

Including Dependencies

If your mod has any dependencies that need to be included in the final JAR file, simply use the shadowImpl configuration in the build.gradle.kts file.

Credit

This template is slightly adapted from GitHub/romangraef's template. The changes I've made simply include the following:

  • Don't shade the Kotlin standard library into the final JAR
  • Don't shade the Mixins library into the final JAR
  • Added OneConfig as a dependency

If you don't want to use OneConfig, you might consider using their template instead, as it offers both a Kotlin and Java template (Java also for version 1.12).


This template is licensed under the Unlicense (license copy present in this repository), or alternatively under Creative Commons 1.0 Universal (CC0 1.0), and all contributions and PR to this template are expected to follow this. This means your mod, based on this template can be licensed whatever way you want, and does not need to reference back to this template in any way.

1.8.9-forge-kotlin-mixin-oneconfig's People

Contributors

humanduck23 avatar

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.