mirror of
https://github.com/AutismDevelopment/Autism-Client.git
synced 2026-10-28 19:39:48 +00:00
Initial release
This commit is contained in:
commit
e2f3f4759d
679 changed files with 156544 additions and 0 deletions
42
addon-templates/minimal/README.md
Normal file
42
addon-templates/minimal/README.md
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
# AUTISM Minimal Addon Template
|
||||
|
||||
Smallest useful AUTISM addon example:
|
||||
|
||||
- one module;
|
||||
- one macro action;
|
||||
- one macro condition.
|
||||
|
||||
This template uses the easy API (`SimpleAddon`, `SimpleModule`, `simpleAction`, `simpleCondition`).
|
||||
Use `../advanced` when you need commands, HUD elements, events, raw custom macro serialization, or mixins.
|
||||
|
||||
## Build
|
||||
|
||||
1. From the AUTISM Client project, publish the API locally:
|
||||
```powershell
|
||||
.\gradlew.bat publishToMavenLocal --no-daemon
|
||||
```
|
||||
2. From this folder, build the addon:
|
||||
```powershell
|
||||
.\gradlew.bat build --no-daemon
|
||||
```
|
||||
|
||||
The jar lands in `build/libs/`.
|
||||
|
||||
## Customize
|
||||
|
||||
Recommended:
|
||||
|
||||
```powershell
|
||||
..\addon-toolkit.ps1 -Action Setup -Template minimal -OutputPath ..\..\..\MyAddon
|
||||
```
|
||||
|
||||
The toolkit asks for the addon name, output folder, version, and author. Blank version bumps the current
|
||||
template version by one patch step. It derives the boring stuff and rewrites Gradle files, package paths,
|
||||
`fabric.mod.json`, and entrypoints in one shot.
|
||||
|
||||
Manual path:
|
||||
|
||||
1. Rename package `com.example.minimal`.
|
||||
2. Change `MinimalAddon.ID`.
|
||||
3. Update `src/main/resources/fabric.mod.json`.
|
||||
4. Change names/descriptions in `MinimalAddon`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue