All Projects → thedarkcolour → KotlinForForge

thedarkcolour / KotlinForForge

Licence: LGPL-2.1 license
Makes Kotlin forge-friendly.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to KotlinForForge

ElevatorMod
Port of the elevator from OpenBlocks for Minecraft 1.8+
Stars: ✭ 21 (-68.66%)
Mutual labels:  minecraft-forge
Waddles
Waddles adds cute Adélie penguins that waddle
Stars: ✭ 22 (-67.16%)
Mutual labels:  minecraft-forge
Iodine
A Minecraft mod - server plugin pair that adds custom GUIs and overlays. No more inventory and chat menus!
Stars: ✭ 23 (-65.67%)
Mutual labels:  minecraft-forge
Techarium
A futuristic 1.16 Minecraft Tech Mod.
Stars: ✭ 62 (-7.46%)
Mutual labels:  minecraft-forge
youtube-chat-for-minecraft
A plugin for Minecraft Forge that provides an API for YouTube live chat services
Stars: ✭ 53 (-20.9%)
Mutual labels:  minecraft-forge
ShoulderSurfing
Custom 3rd person perspective for Minecraft
Stars: ✭ 28 (-58.21%)
Mutual labels:  minecraft-forge
ForgeWurst
Wurst Client for Minecraft Forge.
Stars: ✭ 37 (-44.78%)
Mutual labels:  minecraft-forge
ForgeTutorial
Has all of the code for the modding tutorial
Stars: ✭ 26 (-61.19%)
Mutual labels:  minecraft-forge
Atum2
Atum 2: Return to the Sands - Adds an entirely new Egyptian-themed dimension to Minecraft
Stars: ✭ 98 (+46.27%)
Mutual labels:  minecraft-forge
ForgeModdingSkeleton
Skeletons for building Forge mods
Stars: ✭ 21 (-68.66%)
Mutual labels:  minecraft-forge
minecraft-forge-kotlin-template
Minecraft 1.12.2 Mod template using Forge and Kotlin
Stars: ✭ 38 (-43.28%)
Mutual labels:  minecraft-forge
Velocity
The modern, next-generation Minecraft server proxy.
Stars: ✭ 1,153 (+1620.9%)
Mutual labels:  minecraft-forge
Totemic
A Minecraft mod that allows you to control the world through the power of Totem Poles
Stars: ✭ 26 (-61.19%)
Mutual labels:  minecraft-forge
Generator-Forge-1.12.2
MCreator generator plugin for Minecraft Forge 1.12.2
Stars: ✭ 20 (-70.15%)
Mutual labels:  minecraft-forge
ICBM-Classic
Classic 1.6.4 version of ICBM remastered for newer MC versions
Stars: ✭ 34 (-49.25%)
Mutual labels:  minecraft-forge
OpenSectors
Powerful and easy to use sector system for Minecraft *OUTDATED*
Stars: ✭ 27 (-59.7%)
Mutual labels:  minecraft-api
metal-chests
Better alternative to IronChests
Stars: ✭ 13 (-80.6%)
Mutual labels:  minecraft-forge
NaturesCompass
A Minecraft mod that allows you to search for a biome's location anywhere in the world and view information about it.
Stars: ✭ 42 (-37.31%)
Mutual labels:  minecraft-forge
no-tree-punching
A Minecraft mod which adds a bit of realism to the early game.
Stars: ✭ 28 (-58.21%)
Mutual labels:  minecraft-forge
JoJo-s-Bizarre-Survival
A mod that adds Stands from JoJo's Bizarre Adventure to Minecraft.
Stars: ✭ 20 (-70.15%)
Mutual labels:  minecraft-forge

KotlinForForge

**These instructions are for 1.18.1. To see instructions for 1.14-1.16, click here.

Makes Kotlin Forge-friendly by doing the following:

  • Provides Kotlin stdlib, reflection, JSON serialization, and coroutines libraries.
  • Provides KotlinLanguageProvider to allow usage of object declarations as @Mod targets.
  • Provides AutoKotlinEventBusSubscriber to allow usage of object declarations as @Mod.EventBusSubscriber targets.
  • Provides useful utility functions and constants
  • Provides sided property delegates and object holder property delegates

An example mod is provided at the KotlinModdingSkeleton repository.

If you aren't sure where to start, make a fork of the KotlinModdingSkeleton repository.

git clone --branch 1.18.x https://github.com/thedarkcolour/KotlinModdingSkeleton.git

To implement in an existing project, paste the following into your build.gradle:

// Adds the Kotlin Gradle plugin
buildscript {
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
        // OPTIONAL Kotlin Serialization plugin
        classpath 'org.jetbrains.kotlin:kotlin-serialization:1.6.10'
    }
}
apply plugin: 'kotlin'
// OPTIONAL Kotlin Serialization plugin
apply plugin: 'kotlinx-serialization'

// Adds KFF as dependency and Kotlin libs to the runtime classpath
// If you already know how to add the Kotlin plugin to Gradle, this is the only line you need for KFF
apply from: 'https://raw.githubusercontent.com/thedarkcolour/KotlinForForge/site/thedarkcolour/kotlinforforge/gradle/kff-3.1.0.gradle'

Then, change the following to your mods.toml file:

modLoader="kotlinforforge"
# Change this if you require a certain version of KotlinForForge
loaderVersion="[3,)"

Use thedarkcolour.kotlinforforge.forge.MOD_CONTEXT
instead of net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].