You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/com/lambda/module/modules/combat/AutoTotem.kt
+12-11Lines changed: 12 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -45,23 +45,24 @@ object AutoTotem : Module(
45
45
tag = ModuleTag.COMBAT,
46
46
) {
47
47
privateval log by setting("Log Message", true).group(Group.General)
48
-
49
-
privateval minimumHealth by setting("Min Health", 10, 6..36, 1, "Set the minimum health threshold to swap", unit =" half-hearts").group(Group.General)
50
-
privateval falls by setting("Falls", true, "Swap if the player will die of fall damage").group(Group.General)
51
-
privateval fallDistance by setting("Falls Time", 10, 0..30, 1, "Number of blocks fallen before swapping", unit =" blocks") { falls }.group(Group.General)
52
-
privateval crystals by setting("Crystals", true, "Swap if an End Crystal explosion would be lethal").group(Group.General)
53
-
privateval creeper by setting("Creepers", true, "Swap when an ignited Creeper is nearby").group(Group.General)
54
-
privateval players by setting("Players", false, "Swap if a nearby player is detected within the set distance").group(Group.General)
55
-
privateval minPlayerDistance by setting("Player Distance", 64, 32..128, 4, "Set the distance to detect players to swap") { players }.group(Group.General)
56
-
privateval friends by setting("Friends", false, "Exclude friends from triggering player-based swaps") { players }.group(Group.General)
48
+
privateval always by setting("Always", true, "Always attempt to keep a totem in offhand").group(Group.General)
49
+
privateval ignoreWhenHolding by setting("Ignore When Holding", false, "Ignore swapping to offhand when already holding a totem").group(Group.General)
50
+
privateval minimumHealth by setting("Min Health", 10, 6..36, 1, "Set the minimum health threshold to swap", unit =" half-hearts") { !always }.group(Group.General)
51
+
privateval falls by setting("Falls", true, "Swap if the player will die of fall damage") { !always }.group(Group.General)
52
+
privateval fallDistance by setting("Falls Time", 10, 0..30, 1, "Number of blocks fallen before swapping", unit =" blocks") { !always && falls }.group(Group.General)
53
+
privateval crystals by setting("Crystals", true, "Swap if an End Crystal explosion would be lethal") { !always }.group(Group.General)
54
+
privateval creeper by setting("Creepers", true, "Swap when an ignited Creeper is nearby") { !always }.group(Group.General)
55
+
privateval players by setting("Players", false, "Swap if a nearby player is detected within the set distance") { !always }.group(Group.General)
56
+
privateval minPlayerDistance by setting("Player Distance", 64, 32..128, 4, "Set the distance to detect players to swap") { !always && players }.group(Group.General)
57
+
privateval friends by setting("Friends", false, "Exclude friends from triggering player-based swaps") { !always && players }.group(Group.General)
0 commit comments