How to implement baritone Api to forge mod?
Philip2809 opened this issue ยท 43 comments
What do you need help with?
How to implement baritone Api to forge mod? I am new to forge modding and java.
Final checklist
- I know how to properly use check boxes
- I have not used any OwO's or UwU's in this issue.
Read the readme, or you can just look at what we did here in these commits, in order
- kami-blue/client@4d57832#diff-c197962302397baf3a4cc36463dce5ea
- kami-blue/client@5985ee4#diff-c197962302397baf3a4cc36463dce5ea
- kami-blue/client@1de50c8#diff-c197962302397baf3a4cc36463dce5ea
- kami-blue/client@34cbdb8
- kami-blue/client@8da73b9
You can probably combine those into 1 visible commit but I'm lazy atm
Hi,
I read the Readme but it just included what commands you can add when you have imported the mod.
My build.gradle looks completely different, and when I add the compile stuff I just get errors that it can't find the files on the forgemodding site. Is this becuase it's a new version? I even tried to put the api jar in the folder it told me.
Here is the error:
Could not resolve all files for configuration ':compileClasspath'.
Could not find cabaletta:baritone-api:1.6.1.
Searched in the following locations:
- https://files.minecraftforge.net/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://files.minecraftforge.net/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- file:/D:/Users/Philip/.gradle/caches/forge_gradle/bundeled_repo/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- file:/D:/Users/Philip/.gradle/caches/forge_gradle/bundeled_repo/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://libraries.minecraft.net/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://repo.maven.apache.org/maven2/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://repo.maven.apache.org/maven2/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
Any way to solve this, if so how?
You forgot to add the impact maven repo to your deps
My build.gradle looks completely different
Well no shit, you're supposed to reimplement the diffs which I presented (in green!!)
files.minecraftforge.net/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
Baritone isn't a forge dependency, see above
Ok, I added they maven but I don't understand what you mean by reimplementing diffs? Whenever i use "shadowJar" it crashes immediately. The error after I added everything I could that was green is:
Could not resolve all files for configuration ':compileClasspath'.
Could not find cabaletta:baritone-api:1.6.1.
Searched in the following locations:
- http://repo.spongepowered.org/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- http://repo.spongepowered.org/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://impactdevelopment.github.io/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://impactdevelopment.github.io/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- http://maven-eclipse.github.io/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- http://maven-eclipse.github.io/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://jitpack.io/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://jitpack.io/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://repo.maven.apache.org/maven2/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://repo.maven.apache.org/maven2/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://jcenter.bintray.com/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://jcenter.bintray.com/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://files.minecraftforge.net/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://files.minecraftforge.net/maven/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- file:/D:/Users/Philip/.gradle/caches/forge_gradle/bundeled_repo/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- file:/D:/Users/Philip/.gradle/caches/forge_gradle/bundeled_repo/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://libraries.minecraft.net/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
- https://repo.maven.apache.org/maven2/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.pom
- https://repo.maven.apache.org/maven2/cabaletta/baritone-api/1.6.1/baritone-api-1.6.1.jar
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
What I am doing wrong?
Ok thanks I got it running but how do I add the baritoneAPI.getProvider()...etc
I got it running the game but how do I import to be able to do this:
BaritoneAPI.getSettings().allowSprint.value = true;
BaritoneAPI.getSettings().primaryTimeoutMS.value = 2000L;
Found the refresh button, it was hidden in some tab to the left. Thanks for helping me out!
Sorry to bother you, ran into some problems.
When I run it with both baritone and baritone api it says Exception in thread "main"
When I run it with only the api I get a mixin error, I have never done anyting in a mixin, is that someting I need to fix?
How and where do I do that? I added the 'MixinConfigs': mixins.baritone.json' to the gradle (same errors as before)? And when I run it sould I use only the API or both?
I have no idea how to do that and when I try to find info about it it's about fabric and events. Is it with the @mixin thing?
I have found that one and tried to make is as good as I could but it just can't find "IFMLLoadingPlugin" And all my @OVERRIDES turn red i have honestly no idea why
I closed the project the cleared the cashce and that started to import some things when I reopned the project. I Usally don't write them manually but I wanted to how that there is nothing on that path.
Do you have any ideas of how to find the name of it?
Idk guess lmao
What happens if you done use IFMLLoadingPlugin?
Baritone won't load it's Mixins if you want to include Baritone
Hi, I tried to ask on the maker of that package, on minecraft forge modding support but there were rude and didn't wanna help me, so I guess I will have to figure it out somehow. Btw I am allowed to clone that client project you did and see what you did different and if I have missed something?