This repository has been archived on 2023-11-26. You can view files and clone it, but cannot push or open issues or pull requests.
2020-08-23 02:05:06 +00:00
|
|
|
# FreshCoffee
|
2020-08-23 02:08:32 +00:00
|
|
|
A library mod that ensures you are running a supported version of Java and can install a supported one if you are not.
|
2020-08-23 02:05:06 +00:00
|
|
|
|
|
|
|
FreshCoffee is Minecraft version-independent.
|
|
|
|
|
|
|
|
## Changelog
|
|
|
|
[View Changelog](CHANGELOG.md)
|
|
|
|
|
|
|
|
## How To Include
|
|
|
|
Add this to ``build.gradle``:
|
|
|
|
```gradle
|
|
|
|
repositories {
|
|
|
|
maven { url 'https://maven.thebrokenrail.com' }
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
modRuntime 'com.thebrokenrail:freshcoffee:VERSION'
|
|
|
|
include 'com.thebrokenrail:freshcoffee:VERSION'
|
|
|
|
// VERSION = "<Mod Version>+<MC Version>", for example "1.0.0+1.16.2"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
You can set a minimum version of Java by adding this to ``fabric.mod.json``:
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"custom": {
|
|
|
|
"freshcoffee:minimum_java_version": 14
|
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
You can set a maximum version of Java by adding this to ``fabric.mod.json``:
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"custom": {
|
|
|
|
"freshcoffee:maximum_java_version": 14
|
|
|
|
}
|
|
|
|
}
|
2020-10-20 16:26:56 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
You can also force Java preview features:
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"custom": {
|
|
|
|
"freshcoffee:preview_features_required": true
|
|
|
|
}
|
|
|
|
}
|
2020-08-23 02:05:06 +00:00
|
|
|
```
|