Modding: Difference between revisions

From BTA-Mirror
imported>Ambos
(Created the modding guide)
imported>Ambos
m (Added BTA instances and Kotlin example mod links)
Line 11: Line 11:
We are going to use Babric, which is a modification of Fabric for Minecraft Beta 1.7.3.
We are going to use Babric, which is a modification of Fabric for Minecraft Beta 1.7.3.


# Download the Babric MultiMC instance for [https://cdn.discordapp.com/attachments/1046707025234640956/1137706168005963806/BTA_1.7.7.0_Babric.zip BTA! 1.7.7.0] or [https://drive.google.com/file/d/1d_VocjEW2ItjIzbUAsrX_pBThH_zkZAn/view BTA! 1.7.6.2_02]
# Download the Babric MultiMC instance for [https://github.com/Turnip-Labs/babric-instance-repo/releases/tag/v1.7.7.0 BTA! 1.7.7.0] ([https://cdn.discordapp.com/attachments/1046707025234640956/1137706168005963806/BTA_1.7.7.0_Babric.zip archive]) or [https://github.com/Turnip-Labs/babric-instance-repo/releases/tag/v1.7.6.2_02 BTA! 1.7.6.2_02] ([https://drive.google.com/file/d/1d_VocjEW2ItjIzbUAsrX_pBThH_zkZAn/view archive])
# [https://github.com/MultiMC/Launcher/wiki/Import-Instance Import the instance] into your launcher
# [https://github.com/MultiMC/Launcher/wiki/Import-Instance Import the instance] into your launcher


Line 28: Line 28:
=== Set up the development environment ===
=== Set up the development environment ===


# Download or clone the [https://github.com/Turnip-Labs/bta-example-mod BTA Babric Minimal Mod] and put it somewhere: <code>git clone <nowiki>https://github.com/Turnip-Labs/bta-minimal-mod.git</nowiki></code>
# Download or clone the [https://github.com/Turnip-Labs/bta-example-mod BTA Babric Minimal Mod] (or [https://github.com/Turnip-Labs/bta-example-mod-kotlin BTA Example Mod Kotlin])  and put it somewhere: <code>git clone <nowiki>https://github.com/Turnip-Labs/bta-minimal-mod.git</nowiki></code>
# Import the project in IntelliJ IDEA, close it and open it again.
# Import the project in IntelliJ IDEA, close it and open it again.
# Create a new run configuration by going in <code>Run > Edit Configurations</code>. Then click on the plus icon and select Gradle. In the <code>Tasks and Arguments</code> field enter <code>build</code>. Running it will build your finished jar files and put them in <code>build/libs/</code>
# Create a new run configuration by going in <code>Run > Edit Configurations</code>. Then click on the plus icon and select Gradle. In the <code>Tasks and Arguments</code> field enter <code>build</code>. Running it will build your finished jar files and put them in <code>build/libs/</code>

Revision as of 17:29, 9 August 2023

Users

Prerequisites

Note: to avoid a common issue on GNU/Linux systems, both users and developers should use the Temurin 17 JDK (AUR package)

Installation

We are going to use Babric, which is a modification of Fabric for Minecraft Beta 1.7.3.

  1. Download the Babric MultiMC instance for BTA! 1.7.7.0 (archive) or BTA! 1.7.6.2_02 (archive)
  2. Import the instance into your launcher

Adding mods

  1. Search through the #mods-and-community-downloads channel on the official BTA! Discord server or find mods on Github (example)
  2. Download the JAR file
  3. Put it inside your .minecraft/mods folder in your Babric BTA! instance directory

Developers

Prerequisites

Set up the development environment

  1. Download or clone the BTA Babric Minimal Mod (or BTA Example Mod Kotlin) and put it somewhere: git clone https://github.com/Turnip-Labs/bta-minimal-mod.git
  2. Import the project in IntelliJ IDEA, close it and open it again.
  3. Create a new run configuration by going in Run > Edit Configurations. Then click on the plus icon and select Gradle. In the Tasks and Arguments field enter build. Running it will build your finished jar files and put them in build/libs/
  4. Open File > Settings and head to Build, Execution, Development > Build Tools > Gradle. Change Build and run using and Run tests using to IntelliJ IDEA
  5. Open File > Project Structure, select Project and set Compiler output to your project's path/out.
  6. Make sure your Client and Server run configurations have -Dfabric.gameVersion=1.7.7.0 in VM options
  7. Done. Now all that's left is to change every mention of examplemod to your own mod id.

Resources

Developers documentation

Note: Since BTA is distributed without obfuscation, all Mixin classes must set the remap option to false. Also, when modding for BTA! 1.7.6.2_02, set loadMods to false in option.txt to avoid errors showing up in the run client configurations logs.