A Kotlin Mindustry mod that works on Android and PC

Related tags

App Project-Tvakot
Overview

Mindustry Kotlin Mod Template

A Kotlin Mindustry mod that works on Android and PC. This is equivalent to the Java version, except in Kotlin.

Building for Desktop Testing

  1. Install JDK 14. If you don't know how, look it up. If you already have any version of the JDK >= 8, that works as well.
  2. Run gradlew jar [1].
  3. Your mod jar will be in the build/libs directory. Only use this version for testing on desktop. It will not work with Android. To build an Android-compatible version, you need the Android SDK. You can either let Github Actions handle this, or set it up yourself. See steps below.

Building through Github Actions

This repository is set up with Github Actions CI to automatically build the mod for you every commit. This requires a Github repository, for obvious reasons. To get a jar file that works for every platform, do the following:

  1. Make a Github repository with your mod name, and upload the contents of this repo to it. Perform any modifications necessary, then commit and push.
  2. Check the "Actions" tab on your repository page. Select the most recent commit in the list. If it completed successfully, there should be a download link under the "Artifacts" section.
  3. Click the download link (should be the name of your repo). This will download a zipped jar - not the jar file itself [2]! Unzip this file and import the jar contained within in Mindustry. This version should work both on Android and Desktop.

Building Locally

Building locally takes more time to set up, but shouldn't be a problem if you've done Android development before.

  1. Download the Android SDK, unzip it and set the ANDROID_HOME environment variable to its location.
  2. Make sure you have API level 30 installed, as well as any recent version of build tools (e.g. 30.0.1)
  3. Add a build-tools folder to your PATH. For example, if you have 30.0.1 installed, that would be $ANDROID_HOME/build-tools/30.0.1.
  4. Run gradlew deploy. If you did everything correctlly, this will create a jar file in the build/libs directory that can be run on both Android and desktop.

[1] On Linux/Mac it's ./gradlew, but if you're using Linux I assume you know how to run executables properly anyway.
[2]: Yes, I know this is stupid. It's a Github UI limitation - while the jar itself is uploaded unzipped, there is currently no way to download it as a single file.

You might also like...
Let third-party launcher always get themed icon in MIUI (Maybe also works for other Android based OS).
Let third-party launcher always get themed icon in MIUI (Maybe also works for other Android based OS).

English 简体中文 Introduction This module can let third party launcher always use icons with MIUI/Flyme Themes. It may also work with other custom Android

Works Planning Application
Works Planning Application

Works Planning Application Clean Architecture MVVM Room database Binding Adapters Data Binding View Binding RecyclerView.Adapter DiffUtil LiveData Vie

A dictionary that works out of box
A dictionary that works out of box

Easydict A dictionary that works out of box Features Basic dictionary functions, query word, show the definition and translation Show the query histor

A VS Code killer that actually works.

VS Code Killer A VS Code killer that actually works. Background Recently, JetBrains released a public preview of their new IDE called Fleet. Many peop

F-Droid Privilege Extension that works with Shizuku (rootless)

F-Droid Shizuku Privileged Extension This is a port of the official F-Droid Privileged Extension to Shizuku, an app that makes it easy to grant apps A

RedditVanced - Reddit Android app mod inspired by Aliucord

RedditVanced A rootless a Reddit android app mod ⚠️ NOTE ⚠️ This project is curr

Mindful eating mod for fabric

Fabric Example Mod Setup For setup instructions please see the fabric wiki page

Zoomify - A zoom mod with infinite customizability

Xander's Fabric Template for Kotlin The best Fabric template using kotlin. Usage

A mod version of CustoMIUIzer, to adapt Android11+ & MIUI12.5+

CustoMIUIzerMod English 简体中文 Introduction This project is based on Mikanoshi's CustoMIUIzer, since the original CustoMIUIzer haven't adapted MIUI12.5

Releases(V0.1.1.3)
Owner
Eclipse
Eclipse
FairEmail is easy to set up and works with virtually all email providers, including Gmail, Outlook and Yahoo!

Downloads • Privacy • Support • License FairEmail Fully featured, open source, privacy oriented email app for Android FairEmail is easy to set up and

Marcel Bokhorst 1.5k Jan 2, 2023
A 2020s compatible React Native keyboard avoiding view for Android and iOS that just works.

react-native-keyboard-shift Example Snack coming soon Until then: Clone this repo: git clone https://github.com/FullStackCraft/react-native-keyboard-s

Full Stack Craft 66 Aug 16, 2022
📲💬 react-native-fontext is a lightweight library to integrate fonts in your React Native application that works seamlessly in android and iOS devices.

React Native Fontext react-native-fontext is a lightweight library to integrate fonts in your React Native application that works seamlessly in androi

mroads 9 Dec 3, 2021
A rewrite of the popular project GitUp that works in Linux, Mac, and Windows.

GitDown This is a rewrite from the ground up of the popular GitUp library available on Mac. It is built using Kotlin and Compose Desktop from Jetbrain

Cody Mikol 20 Dec 16, 2022
You can store all your password, bank details, card details in one place and remember only one master PIN. The application works totally offline.

Keep Password An application where you can store all your password, bank details, card details in one place and remember only one master PIN. The appl

rıdvan 4 Apr 18, 2022
IMCL is a Minecraft launcher which supports Mod managment, game customizing and so on.

IDEA Minecraft Launcher A simple Minecraft launcher 简体中文 日本語 Esperanto Introduction IMCL is a Minecraft launcher which supports Mod managment, game cu

ResetPower 1 Jan 25, 2022
A custom installer for our mod that installs recommended mods (and more in the future).

Wynntils Mod Installer Our custom installer which makes it easier to set up optional mods and in the future, resourcepack options, and more! Screensho

Wynntils Team 4 Nov 30, 2022
RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works.

RoboDemo RoboDemo is a ShowCase library for Android to demonstrate to users how a given Activity works. A sample is available in the download area of

Stéphane Nicolas 220 Nov 25, 2022
SyncPlay - The unofficial Syncplay client for Android. Works with the Desktop version of Syncplay

About SyncPlay BETA: The unofficial Syncplay client for Android. Works with the

null 34 Dec 31, 2022
The unofficial Syncplay client for Android. Works with the Desktop version of Syncplay !

SyncPlay BETA: About Syncplay BETA: This is the UNOFFICIAL Syncplay client for Android. If you don't know Syncplay, have a look here: https://syncplay

null 34 Dec 31, 2022