Add attribute clamping and armor limit config

This commit is contained in:
Owen1212055
2025-01-12 17:06:55 -08:00
committed by granny
parent d17908d92a
commit fbda979815
4 changed files with 40 additions and 61 deletions

View File

@@ -503,6 +503,16 @@ public class PurpurConfig {
fixProjectileLootingTransfer = getBoolean("settings.fix-projectile-looting-transfer", fixProjectileLootingTransfer);
}
public static boolean clampAttributes = true;
private static void clampAttributes() {
clampAttributes = getBoolean("settings.clamp-attributes", clampAttributes);
}
public static boolean limitArmor = true;
private static void limitArmor() {
limitArmor = getBoolean("settings.limit-armor", limitArmor);
}
private static void blastResistanceSettings() {
getMap("settings.blast-resistance-overrides", Collections.emptyMap()).forEach((blockId, value) -> {
Block block = BuiltInRegistries.BLOCK.getValue(ResourceLocation.parse(blockId));