From 27634a9bdf6aaa88bedace07fe9af194ae88a42a Mon Sep 17 00:00:00 2001 From: micle Date: Sun, 18 Jan 2026 00:18:48 +0100 Subject: [PATCH] Updated config comments. --- .../micle/totem_of_reviving/setup/Config.java | 24 ++++++++++++------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/main/java/dev/micle/totem_of_reviving/setup/Config.java b/src/main/java/dev/micle/totem_of_reviving/setup/Config.java index e83849c..ffb3fa8 100644 --- a/src/main/java/dev/micle/totem_of_reviving/setup/Config.java +++ b/src/main/java/dev/micle/totem_of_reviving/setup/Config.java @@ -57,25 +57,31 @@ public final class Config { boolean canReviveAcrossDimensions, int durability) { builder.push(name); CHARGE_COST = builder - .comment("The charge cost to revive a player.\n" + - "-1 means the cost is dynamic (follows the amount of deaths the target has)\n" + - "Higher values set the charge cost to static, meaning that this will be the amount of charges needed to revive someone.") + .comment(""" + The amount of charges required to revive a player. + Set to -1 for dynamic cost that scales with a player's deaths. + """) .defineInRange("chargeCost", chargeCost, -1, Integer.MAX_VALUE); CHARGE_COST_LIMIT = builder - .comment("The max amount of charge this totem can hold at once. Only works with dynamic cost.") + .comment("DYNAMIC COST REQUIRED. The max amount of charges the totem can hold at once.") .defineInRange("chargeCostLimit", chargeCostLimit, 1, Integer.MAX_VALUE); CHARGE_COST_MULTIPLIER = builder - .comment("Charge cost multiplier. 0.5 means the charge cost will be 50% of the original cost. Only works with dynamic cost.") + .comment(""" + DYNAMIC COST REQUIRED. charge_cost = player_deaths * charge_cost_multiplier. + Note: The resulting cost will always be at least 1. + """) .defineInRange("chargeCostMultiplier", chargeCostMultiplier, 0.01, 100); CAN_REVIVE_MORE_EXPENSIVE_TARGETS = builder - .comment("Is the totem able to revive targets that cost more than the totems max charge?\n" + - "This only applies if the totem is fully charged. (dynamic wont work if limit is 0)") + .comment("Allows players with a higher cost to be revived as long as the totem is fully charged.") .define("canReviveMoreExpensiveTargets", canReviveMoreExpensiveTargets); CAN_REVIVE_ACROSS_DIMENSIONS = builder - .comment("Is the totem able to revive targets across dimensions?") + .comment("Allows players in different dimensions to be revived.") .define("canReviveAcrossDimensions", canReviveAcrossDimensions); DURABILITY = builder - .comment("The durability of the totem. 0 means unbreakable.") + .comment(""" + The durability of the totem. + Set to 0 to make the totem unbreakable. + """) .defineInRange("durability", durability, 0, Integer.MAX_VALUE); builder.pop(); }