https://github.com/lothrazar/flib
FutureLibrary
https://github.com/lothrazar/flib
Last synced: about 1 year ago
JSON representation
FutureLibrary
- Host: GitHub
- URL: https://github.com/lothrazar/flib
- Owner: Lothrazar
- License: mit
- Created: 2022-08-16T07:39:31.000Z (almost 4 years ago)
- Default Branch: trunk/1.20
- Last Pushed: 2024-04-20T05:38:24.000Z (about 2 years ago)
- Last Synced: 2024-05-01T23:34:09.843Z (about 2 years ago)
- Language: Java
- Size: 4.87 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: .github/README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Library
A Library/core mod built on the Minecraft & the Forge API [https://files.minecraftforge.net/](https://files.minecraftforge.net)
[](https://www.curseforge.com/minecraft/mc-mods/flib)
[](https://www.curseforge.com/minecraft/mc-mods/flib)
[](https://github.com/Lothrazar/FLib/actions/workflows/build.yml)
[](https://opensource.org/licenses/MIT)
[](https://discord.gg/uWZ3jf56fV)
[](https://www.patreon.com/Lothrazar)
[](https://twitter.com/lothrazar)
[](https://allmylinks.com/lothrazar)
# Currently used by
- https://github.com/Lothrazar/ForgeTemplate
- https://github.com/Lothrazar/Scraps
- https://github.com/Lothrazar/TinyLightBulbs
- https://github.com/Lothrazar/ElementaryOres
- https://github.com/Lothrazar/SaplingGrowthControl
- https://github.com/Lothrazar/CustomGameRules
- https://github.com/Lothrazar/BlockyDoors
## Adding as a dependency
Use the libs folder in the repositories section of your build scripts as follows
```
flatDir {
dir 'libs'
}
```
And then use the blank keyword to add the version inside your dependencies block
```
implementation fg.deobf("blank:flib-${mc_version}:${flib_version}")
```
And then your gradle.properties file will get the version number set that you are using
```
flib_version=0.0.1
```
Inside your minecraft - runs - client block in build.gradle, you will need this to avoid mixin errors
```
property 'mixin.env.disableRefMap', 'true'
```
If you want to rely on a remote maven server instead of your local libs directory, then with the repository
```
maven { url = 'https://www.cursemaven.com' }
```
You need to replace the latest file id (from the url of the curseforge file) in the right hand side in the dependencies section
```
implementation fg.deobf("curse.maven:flib-661261:0000000")
```
And then add a dependency at the bottom of your META-INF/mods.toml page
```
[[dependencies.examplemod]]
modId="flib"
mandatory=true
versionRange="[0.0.0,)"
ordering="NONE"
side="BOTH"
```