Repository navigation
Building
One source tree builds the mod for every supported Minecraft version (1.20.1 and 1.21.1), with Stonecutter. Gradle itself needs Java 25 or newer to run (Stonecutter requires it); it downloads the JDK each version compiles with (17 for 1.20.1, 21 for 1.21.1) if it isn't installed.
./gradlew build # every version: versions/<version>/build/libs/, and the Workbench
./gradlew :1.21.1:build # one version
./gradlew :workbench:jar # Workbench: workbench/build/libs/
./gradlew :1.21.1:runClient # dev client for one version (Simple Voice Chat in run/1.21.1/mods)
./gradlew :1.20.1:runClient -Pselftest=true # test world with every device, screenshots in run/1.20.1/screenshotsEach jar is named venuesound-<mod version>+mc<minecraft version>.jar and only accepts the
Minecraft versions it was built and tested for.
-
src/is committed in its 1.20.1 form. Code that differs between versions sits behind Stonecutter comments such as//? if >=1.21 {...//?} else {...//?}; the build rewrites them for each version. - To work on another version in the IDE, switch the active version:
./gradlew "Set active project to 1.21.1". Switch back before committing:./gradlew "Reset active project". - Each version's settings (Fabric Loader, Fabric API, Java, and the
dependsranges written intofabric.mod.json) are inversions/<version>/gradle.properties. - Most of the code is shared unchanged: the console layout, sockets, signal engine, DSP, cable types and OSC have no Minecraft code. The differences are in registration, item data (NBT on 1.20.1, data components on 1.21), networking payloads and rendering.
- Add it to
versions(...)insettings.gradle.ktsand createversions/<version>/gradle.properties. - Build it and fix what changed, behind Stonecutter conditions.
- Put that version's Simple Voice Chat jar in
run/<version>/modsand run its self-test. - Add it to the
java-versionlist in.github/workflows/ci.ymlandrelease.ymlif it needs a new Java, and add apublishmatrix entry inrelease.yml(its game versions and Java).
- Textures:
python3 tools/make_textures.py - Banner and device renders:
tools/make_banner.py,tools/render_models.py - Item photos and icons (1.20.1):
./gradlew :1.20.1:runClient -Pphotos=true, thenpython3 tools/make_item_images.py - Demo video (1.20.1):
./gradlew :1.20.1:runClient -Pfilm=true, thenpython3 tools/make_video.py - Workbench screenshot:
java -jar workbench/build/libs/venuesound-workbench-*.jar --snapshot out.png
Where things are: block/MixerLayout.java (every console control), block/PortLayout.java
(every socket), audio/SignalEngine.java (the signal chain, shared with the Workbench),
client/ (renderers).
This page is copied from docs/guide in the repository. To change it, edit the file there (a pull request is welcome); edits made only here would be overwritten by the next copy.