Baritone AI pathfinder

Baritone AI pathfinder

72.7k Downloads

How to build for fabric on 1.18

andythoman opened this issue ยท 4 comments

commented

Can someone explain to me what is required to create a build for fabric on mc 1.18?

I'm not a java person and I don't use gradlew, so I don't know what would all would be needed. Would there be a way to take #3077 and just run the gradle.bat in in order to create a jar for the fabric loader since fabric has forge on it? I'm guessing there would be more that needs to be done, but maybe someone could point me in the right direction or if someone has already built one that works for fabric, that'd be awesome.

Final checklist

  • I know how to properly use check boxes
  • I have not used any OwO's or UwU's in this issue.
commented

i tried my best but i just couldnt build it. It always returns a proguard error and idk how to fix it

commented

Probably because you built an older version and since proguard needs to upgrade... so try gradlew clean first, without a log I cant really make any intelligent guesses tho.

if you just want builds go to the actions tab on github and grab the artifacts zip from the ci

commented

@Colmonkey - I was able to build a 1.18 fabric build without issue.

  • check out the PR defined in #3077
  • build with ./gradlew build -Pbaritone.fabric_build

As @wagyourtail mentioned, the artifacts from the PR build are available to download: https://github.com/cabaletta/baritone/actions/runs/1522910063 - included are the fabric and forge versions of the mod (you probably want baritone-api-fabric-1.8.0).

commented

delete build/tmp/proguard folder