astoriaFloyd e43449ac59 | 8 months ago | |
---|---|---|
.github/workflows | 8 months ago | |
gradle/wrapper | 8 months ago | |
src/main | 8 months ago | |
.editorconfig | 8 months ago | |
.gitignore | 8 months ago | |
LICENSE | 8 months ago | |
README.md | 8 months ago | |
build.gradle | 8 months ago | |
gradle.properties | 8 months ago | |
gradlew | 8 months ago | |
gradlew.bat | 8 months ago | |
settings.gradle | 8 months ago |
README.md
Example Mod
Template for making Babric mods for BTA!
Note: DO NOT fork this repository unless you want to contribute!
Prerequisites
- JDK for Java 17 (Eclipse Temurin recommended)
- Intellij IDEA (Scroll down for the free community edition, if using linux DO NOT use the flatpak distribution)
- Minecraft Development plugin (Optional, but highly recommended)
Setup instructions
-
Click the
Use this template
button on this repo's page above (Will only appear if logged in). ChooseCreate a new repository
, you will be redirected to a new page. Enter your repo's name and description, and hitCreate repository
.
To get your project, open IntelliJ IDEA and clickGet from VCS
. SelectRepository URL
and enter your repo's url -
After the project has finished importing, close it and open it again.
If that does not work, open the right sidebar withGradle
on it, openTasks
>fabric
and runideaSyncTask
. -
Create a new run configuration by going in
Run > Edit Configurations
.
Then click on the plus icon and select Gradle. In theTasks and Arguments
field enterbuild
.
Running it will build your finished jar files and put them inbuild/libs/
. -
Lastly, open
File
>Settings
and head toBuild, Execution, Development
>Build Tools
>Gradle
.
Make sureBuild and run using
andRun tests using
is set toGradle
. -
Done! Now, all that's left is to change every mention of
examplemod
andturniplabs
to your own mod id and mod group, respectively. Happy modding!
Tips
- If you haven't already you should join the BTA modding discord! https://discord.gg/FTUNJhswBT
- You can set your username when launching the client run configuration by setting
--username <username>
in your program arguments. - When launching the server run configuration you may want to remove the
nogui
program argument in order to see the regular server GUI. - In Intellij you can double press shift or press ctrl+N to search class files, change the search from the default
Project Files
toAll Places
you can easily explore the classes for you dependencies and even BTA itself. - In Intellij if ctrl+left click on a field or method you can quickly get information on when and where that field or method is assign or used.