Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc1.18.x expand covalence loss range and update JEI api #2280

Open
wants to merge 4 commits into
base: mc1.18.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,8 @@ minecraft {
repositories {
maven {
name 'JEI'
url "https://dvs1.progwml6.com/files/maven"
// url "https://dvs1.progwml6.com/files/maven" -- Server is down, also use blamejared instead according to mezz
url "https://maven.blamejared.com"
content {
includeGroup 'mezz.jei'
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/moze_intel/projecte/config/ServerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ private Difficulty(IPEConfig config, ForgeConfigSpec.Builder builder) {
.comment("Amount of damage Katar 'C' key deals")
.defineInRange("katarDeathAura", 1_000F, 0, Integer.MAX_VALUE));
covalenceLoss = CachedDoubleValue.wrap(config, builder
.comment("Adjusting this ratio changes how much EMC is received when burning a item. For example setting this to 0.5 will return half of the EMC cost.")
.defineInRange("covalenceLoss", 1.0, 0.1, 1.0));
.comment("This ratio multiplies the EMC received when burning a item. Ex: setting this to 0.5 will return half of the EMC cost. Be careful with values greater than 1.0.")
.defineInRange("covalenceLoss", 1.0, 0.0, Double.MAX_VALUE));
covalenceLossRounding = CachedBooleanValue.wrap(config, builder
.comment("How rounding occurs when Covalence Loss results in a burn value less than 1 EMC. If true the value will be rounded up to 1. If false the value will be rounded down to 0.")
.define("covalenceLossRounding", true));
Expand Down