c18c24f752 | 1 year ago | |
---|---|---|
.github/workflows | 2 years ago | |
gradle/wrapper | 2 years ago | |
src/main | 2 years ago | |
.editorconfig | 1 year ago | |
.gitignore | 1 year ago | |
LICENSE | 2 years ago | |
README.md | 1 year ago | |
build.gradle | 1 year ago | |
gradle.properties | 1 year ago | |
gradlew | 2 years ago | |
gradlew.bat | 2 years ago | |
settings.gradle | 2 years 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
- Minecraft Development plugin (Optional, but highly recommended)
Setup instructions
-
Click the
Use this template
button on this repo's page above. ChooseCreate a new respository
, 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/
. -
While in the same place, select the Client and Server run configurations and edit the VM options under the SDK selection.
Click the double arrow icon to expand the list, and append
-Dfabric.gameVersion=1.7.7.0
to the end. -
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!