|
1 | | -# Example Mod |
2 | | - |
3 | | -Template for making Babric mods for BTA! |
4 | | - |
5 | | -**Note: *DO NOT fork this repository unless you want to contribute!*** |
6 | | - |
7 | | -## Prerequisites |
8 | | -- JDK for Java 17 ([Eclipse Temurin](https://adoptium.net/temurin/releases/) recommended) |
9 | | -- [Intellij IDEA](https://www.jetbrains.com/idea/download/) (Scroll down for the free community edition, if using linux **DO NOT** use the flatpak distribution) |
10 | | -- Minecraft Development plugin (Optional, but highly recommended) |
11 | | - |
12 | | -## Setup instructions |
13 | | - |
14 | | - |
15 | | -1. Click the `Use this template` button on this repo's page above (Will only appear if logged in). Choose `Create a new repository`, you will be redirected to a new page. Enter your repo's name and description, and hit `Create repository`. |
16 | | - To get your project, open IntelliJ IDEA and click `Get from VCS`. Select `Repository URL` and enter your repo's url |
17 | | - |
18 | | -2. After the project has finished importing, close it and open it again. |
19 | | - If that does not work, open the right sidebar with `Gradle` on it, open `Tasks` > `fabric` and run `ideaSyncTask`. |
20 | | - |
21 | | -3. Create a new run configuration by going in `Run > Edit Configurations`. |
22 | | - Then click on the plus icon and select Gradle. In the `Tasks and Arguments` field enter `build`. |
23 | | - Running it will build your finished jar files and put them in `build/libs/`. |
24 | | - |
25 | | -4. Lastly, open `File` > `Settings` and head to `Build, Execution, Development` > `Build Tools` > `Gradle`. |
26 | | - Make sure `Build and run using` and `Run tests using` is set to `Gradle`. |
27 | | - |
28 | | -5. Done! Now, all that's left is to change every mention of `examplemod` and `turniplabs` to your own mod id and mod group, respectively. Happy modding! |
29 | | - |
30 | | -## Tips |
31 | | - |
32 | | -1. If you haven't already you should join the BTA modding discord! https://discord.gg/FTUNJhswBT |
33 | | -2. You can set your username when launching the client run configuration by setting `--username <username>` in your program arguments. |
34 | | -3. When launching the server run configuration you may want to remove the `nogui` program argument in order to see the regular server GUI. |
35 | | -4. In Intellij you can double press shift or press ctrl+N to search class files, change the search from the default `Project Files` to `All Places` you can easily explore the classes for you dependencies and even BTA itself. |
36 | | -5. 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. |
| 1 | +# Too Many Blocks |
37 | 2 |
|
| 3 | +A recipe viewer for Better than Adventure! |
0 commit comments