Fabric API

Fabric API

106M Downloads

Portable Offline Development Environment

Karaclysm119 opened this issue ยท 7 comments

commented

So I'm sort of trying to develop fabric mods in my freetime at school, and the web filter blocks minecraft.net, and whenever i go to build and test, it tries to download a ton of libraries from libraries.minecraft.net, I was wondering 3 things.

  1. Does it download these libraries on every build regardless of whether it has them or not?
  2. If it doesn't where do they go when they are downloaded?
    and
  3. Would it be possible to change the location it points to when searching for these libraries?
commented

add --offlineb flag when building at school.

commented

This is gonna sound stupid, but where?

commented

This should work just fine, as there were some semi-recent changes to loom to allow this.

  1. No it should only download the files when they are not found.

  2. The files are all downloaded in .gradle in your user directory.

  3. Possibly I would look into moving the gradle user dir.

Once you have your IDE setup, it will work just fine without internet. If you want to build a mod or use any of the gradle tasks I would run with --offline

commented

okay thank you, I've built once at home so I should be able to move the files from there, although I'm using eclipse and sort of last as to where I'm gonna be inputting the --offline flag

commented

If you using the eclipse you can use the run configurations provided and that will build the mod using eclipse without requiring the internet. You might be able to get away without using gradle or the offline flag, as for using it eclipse im not sure.

commented

Alright I'll look into it. Thanks for all the help!

commented

For anyone else looking at this also using eclipse, the gradle settings include both a location to use as the gradle directory, and also a check box for offline mode.