Update x3

This commit is contained in:
Michael Wain 2024-07-28 17:24:19 +03:00
parent 1dbdfe5af0
commit 9bbcc9551a
2 changed files with 10 additions and 29 deletions

View File

@ -1,38 +1,19 @@
# Example Mod
# OfflineSkins
Template for making Babric mods for BTA!
A Minecraft BTA mod that allows players to effortlessly switch between skins and capes directly in-game.
**Note: *DO NOT fork this repository unless you want to contribute!***
## Installation (client and server)
## Prerequisites
- JDK for Java 17 ([Eclipse Temurin](https://adoptium.net/temurin/releases/) recommended)
- [Intellij IDEA](https://www.jetbrains.com/idea/download/) (Scroll down for the free community edition, if using linux **DO NOT** use the flatpak distribution)
- Minecraft Development plugin (Optional, but highly recommended)
Place .jar file into mods directory in game client and server.
## Setup instructions
## Usage
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`.
To get your project, open IntelliJ IDEA and click `Get from VCS`. Select `Repository URL` and enter your repo's url
1. Open the In-Game Menu: Access the mod's menu through the game options (general section).
2. After the project has finished importing, close it and open it again.
If that does not work, open the right sidebar with `Gradle` on it, open `Tasks` > `fabric` and run `ideaSyncTask`.
2. Select Skin or Cape: Choose from your available skins and capes.
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/`.
3. Apply Changes: The selected skin and cape will be applied immediately (rejoin to server needed).
4. Lastly, open `File` > `Settings` and head to `Build, Execution, Development` > `Build Tools` > `Gradle`.
Make sure `Build and run using` and `Run tests using` is set to `Gradle`.
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!
## Tips
1. If you haven't already you should join the BTA modding discord! https://discord.gg/FTUNJhswBT
2. You can set your username when launching the client run configuration by setting `--username <username>` in your program arguments.
3. Set `online-mode` to `false` inside of `run/server.properties` in order to be able to join your server!
4. When launching the server run configuration you may want to remove the `nogui` program argument in order to see the regular server GUI.
5. 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.
6. 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.
## Screenshots
![mod menu]()

BIN
screenshot.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB