To use Alto Clef as a library and quick start making custom commands, check out the Example Repo Here
-
Clone project and import. I'd suggest using JetBrain's IntelliJ to import the project. Make sure you're using jdk 16 in your Project & Gradle Settings!
-
Run gradle task runClient (In IntelliJ open up the Gradle window and run altoclef/Tasks/fabric/runClient)
- Git Clone project
cdinto cloned local reposudo / doas chmod +x gradlew./gradlew buildor./gradlew runClient
Watch a Rough AltoClef Tutorial Video Here
Alto Clef uses a custom fork of baritone that gives you more control over how baritone works. If you wish to make edits to that fork you can do so locally if you follow these steps:
- Clone The baritone fork into the same directory as
altoclef. Your rootaltocleffolder (containingbuild.gradle) should now also contain a folder calledbaritone. - Run
gradle buildwithin the fork you just cloned. You may open the folder in an IDE and run thebuildtask. - There should now be various
.jarfiles starting withbaritonein the following folder:<your altoclef directory>/baritone/build/libs - Now within
altoclef, pass-Paltoclef.developmentas a parameter when runninggradle build(In IntelliJ, go to the build dropdown ->Edit Configurations, then duplicate thealtoclef [build]configuration. In this duplicate, paste-Paltoclef.developmentinto the Arguments text field.) - When you build and pass
-Paltoclef.development, Alto Clef should now use the jar file inside of your custombaritonefork instead of pulling from online. This lets you rapidly test local changes to baritone.