Autism-Client/addon-templates/minimal
2026-08-03 05:17:18 +02:00
..
gradle Release the tag update 2026-08-03 05:17:18 +02:00
src/main Release the tag update 2026-08-03 05:17:18 +02:00
.editorconfig Release the tag update 2026-08-03 05:17:18 +02:00
.gitignore Release the tag update 2026-08-03 05:17:18 +02:00
build.gradle.kts Release the tag update 2026-08-03 05:17:18 +02:00
gradle.properties Release the tag update 2026-08-03 05:17:18 +02:00
gradlew Release the tag update 2026-08-03 05:17:18 +02:00
gradlew.bat Release the tag update 2026-08-03 05:17:18 +02:00
README.md Release the tag update 2026-08-03 05:17:18 +02:00
settings.gradle.kts Release the tag update 2026-08-03 05:17:18 +02:00

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) and the one-call registerSimpleAction / registerSimpleCondition helpers. 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:
    .\gradlew.bat publishToMavenLocal --no-daemon
    
  2. From this folder, build the addon:
    .\gradlew.bat build --no-daemon
    

The jar lands in build/libs/.

Customize

Recommended (any OS, from the AUTISM Client repo root):

python addon-templates/addon-toolkit.py setup --template minimal --output ../MyAddon

Windows PowerShell works the same: .\addon-templates\addon-toolkit.ps1 -Action Setup -Template minimal -OutputPath ..\MyAddon. See ../README.md for the Gradle (./gradlew newAddon) and .sh variants.

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.