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: common/src/main/kotlin/com/lambda/config/groups/BreakSettings.kt
+45-38Lines changed: 45 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -29,45 +29,52 @@ class BreakSettings(
29
29
priority:Priority = 0,
30
30
vis: () ->Boolean = { true }
31
31
) : BreakConfig(priority) {
32
-
overrideval breakMode by c.setting("Break Mode", BreakMode.Packet, visibility = vis)
33
-
overrideval reBreak by c.setting("ReBreak", true, "Re-breaks blocks after they've been broken once", visibility = vis)
34
-
overrideval unsafeCancels by c.setting("Unsafe Cancels", true, "Allows cancelling block breaking even if the server might continue breaking sever side, potentially causing unexpected state changes", visibility = vis)
35
-
overrideval breakThreshold by c.setting("Break Threshold", 0.70f, 0.1f..1.0f, 0.01f, "The break amount at which the block is considered broken", visibility = vis)
36
-
overrideval doubleBreak by c.setting("Double Break", true, "Allows breaking two blocks at once", visibility = vis)
37
-
overrideval fudgeFactor by c.setting("Fudge Factor", 2, 0..5, 1, "The amount of ticks to give double, aka secondary breaks extra for the server to recognise the break", visibility = vis)
38
-
overrideval desyncFix by c.setting("Desync Fix", false, "Predicts if the players breaking will be slowed next tick as block break packets are processed using the players next position", visibility = vis)
39
-
overrideval breakDelay by c.setting("Break Delay", 0, 0..6, 1, "The delay between breaking blocks", " ticks", visibility = vis)
40
-
overrideval breakStageMask by c.setting("Break Stage Mask", setOf(TickEvent.Input.Pre, TickEvent.Input.Post, TickEvent.Player.Post), "The sub-tick timing at which break actions can be performed", visibility = vis)
41
-
overrideval swing by c.setting("Swing Mode", SwingMode.Constant, "The times at which to swing the players hand", visibility = vis)
42
-
overrideval swingType by c.setting("Break Swing Type", BuildConfig.SwingType.Vanilla, "The style of swing") { vis() && swing !=SwingMode.None }
43
-
overrideval sounds by c.setting("Break Sounds", true, "Plays the breaking sounds", visibility = vis)
44
-
overrideval particles by c.setting("Particles", true, "Renders the breaking particles", visibility = vis)
45
-
overrideval breakingTexture by c.setting("Breaking Overlay", true, "Overlays the breaking texture at its different stages", visibility = vis)
46
-
overrideval rotateForBreak by c.setting("Rotate For Break", false, "Rotate towards block while breaking", visibility = vis)
47
-
overrideval ignoredBlocks by c.setting("Ignored Blocks", allSigns, "Blocks that wont be broken", visibility = vis)
48
-
overrideval breakConfirmation by c.setting("Break Confirmation", BreakConfirmationMode.BreakThenAwait, "The style of confirmation used when breaking", visibility = vis)
49
-
overrideval maxPendingBreaks by c.setting("Max Pending Breaks", 15, 1..30, 1, "The maximum amount of pending breaks", visibility = vis)
50
-
overrideval breaksPerTick by c.setting("Breaks Per Tick", 5, 1..30, 1, "Maximum instant block breaks per tick", visibility = vis)
51
-
overrideval suitableToolsOnly by c.setting("Suitable Tools Only", false, "Places a restriction to only use tools suitable for the given block", visibility = vis)
52
-
overrideval avoidLiquids by c.setting("Avoid Liquids", true, "Avoids breaking blocks that would cause liquid to spill", visibility = vis)
53
-
overrideval breakWeakBlocks by c.setting("Break Weak Blocks", false, "Break blocks that dont have structural integrity (e.g: grass)", visibility = vis)
54
-
overrideval forceSilkTouch by c.setting("Force Silk Touch", false, "Force silk touch when breaking blocks", visibility = vis)
55
-
overrideval forceFortunePickaxe by c.setting("Force Fortune Pickaxe", false, "Force fortune pickaxe when breaking blocks", visibility = vis)
56
-
overrideval minFortuneLevel by c.setting("Min Fortune Level", 1, 1..3, 1, "The minimum fortune level to use") { vis() && forceFortunePickaxe }
32
+
val page by c.setting("Break Page", Page.General, visibility = vis)
overrideval reBreak by c.setting("ReBreak", true, "Re-breaks blocks after they've been broken once") { vis() && page ==Page.General }
35
+
overrideval unsafeCancels by c.setting("Unsafe Cancels", true, "Allows cancelling block breaking even if the server might continue breaking sever side, potentially causing unexpected state changes") { vis() && page ==Page.General }
36
+
overrideval breakThreshold by c.setting("Break Threshold", 0.70f, 0.1f..1.0f, 0.01f, "The break amount at which the block is considered broken") { vis() && page ==Page.General }
37
+
overrideval doubleBreak by c.setting("Double Break", true, "Allows breaking two blocks at once") { vis() && page ==Page.General }
38
+
overrideval fudgeFactor by c.setting("Fudge Factor", 2, 0..5, 1, "The amount of ticks to give double, aka secondary breaks extra for the server to recognise the break") { vis() && page ==Page.General }
39
+
overrideval desyncFix by c.setting("Desync Fix", false, "Predicts if the players breaking will be slowed next tick as block break packets are processed using the players next position") { vis() && page ==Page.General }
40
+
overrideval breakDelay by c.setting("Break Delay", 0, 0..6, 1, "The delay between breaking blocks", " ticks") { vis() && page ==Page.General }
41
+
overrideval breakStageMask by c.setting("Break Stage Mask", setOf(TickEvent.Input.Pre, TickEvent.Input.Post, TickEvent.Player.Post), "The sub-tick timing at which break actions can be performed") { vis() && page ==Page.General }
42
+
overrideval swing by c.setting("Swing Mode", SwingMode.Constant, "The times at which to swing the players hand") { vis() && page ==Page.General }
43
+
overrideval swingType by c.setting("Break Swing Type", BuildConfig.SwingType.Vanilla, "The style of swing") { vis() && page ==Page.General&& swing !=SwingMode.None }
44
+
overrideval rotateForBreak by c.setting("Rotate For Break", false, "Rotate towards block while breaking") { vis() && page ==Page.General }
45
+
overrideval ignoredBlocks by c.setting("Ignored Blocks", allSigns, "Blocks that wont be broken") { vis() && page ==Page.General }
46
+
overrideval breakConfirmation by c.setting("Break Confirmation", BreakConfirmationMode.BreakThenAwait, "The style of confirmation used when breaking") { vis() && page ==Page.General }
47
+
overrideval maxPendingBreaks by c.setting("Max Pending Breaks", 15, 1..30, 1, "The maximum amount of pending breaks") { vis() && page ==Page.General }
48
+
overrideval breaksPerTick by c.setting("Breaks Per Tick", 5, 1..30, 1, "Maximum instant block breaks per tick") { vis() && page ==Page.General }
49
+
overrideval suitableToolsOnly by c.setting("Suitable Tools Only", false, "Places a restriction to only use tools suitable for the given block") { vis() && page ==Page.General }
50
+
overrideval avoidLiquids by c.setting("Avoid Liquids", true, "Avoids breaking blocks that would cause liquid to spill") { vis() && page ==Page.General }
51
+
overrideval breakWeakBlocks by c.setting("Break Weak Blocks", false, "Break blocks that dont have structural integrity (e.g: grass)") { vis() && page ==Page.General }
52
+
overrideval forceSilkTouch by c.setting("Force Silk Touch", false, "Force silk touch when breaking blocks") { vis() && page ==Page.General }
53
+
overrideval forceFortunePickaxe by c.setting("Force Fortune Pickaxe", false, "Force fortune pickaxe when breaking blocks") { vis() && page ==Page.General }
54
+
overrideval minFortuneLevel by c.setting("Min Fortune Level", 1, 1..3, 1, "The minimum fortune level to use") { vis() && page ==Page.General&& forceFortunePickaxe }
57
55
58
-
overrideval renders by c.setting("Renders", true, "Enables the render settings for breaking progress", visibility = vis)
59
-
overrideval fill by c.setting("Fill", true, "Renders the sides of the box to display break progress") { vis() && renders }
60
-
overrideval outline by c.setting("Outline", true, "Renders the lines of the box to display break progress") { vis() && renders }
61
-
overrideval outlineWidth by c.setting("Outline Width", 2, 0..5, 1, "The width of the outline") { vis() && renders && outline }
62
-
overrideval animation by c.setting("Animation", AnimationMode.Out, "The style of animation used for the box") { vis() && renders }
56
+
overrideval sounds by c.setting("Break Sounds", true, "Plays the breaking sounds") { vis() && page ==Page.Cosmetic }
57
+
overrideval particles by c.setting("Particles", true, "Renders the breaking particles") { vis() && page ==Page.Cosmetic }
58
+
overrideval breakingTexture by c.setting("Breaking Overlay", true, "Overlays the breaking texture at its different stages") { vis() && page ==Page.Cosmetic }
63
59
64
-
overrideval dynamicFillColor by c.setting("Dynamic Colour", true, "Enables fill color interpolation from start to finish for fill when breaking a block") { vis() && renders && fill }
65
-
overrideval staticFillColor by c.setting("Fill Color", Color(255, 0, 0, 60), "The color of the fill") { vis() && renders &&!dynamicFillColor && fill }
66
-
overrideval startFillColor by c.setting("Start Fill Color", Color(255, 0, 0, 60), "The color of the fill at the start of breaking") { vis() && renders && dynamicFillColor && fill }
67
-
overrideval endFillColor by c.setting("End Fill Color", Color(0, 255, 0, 60), "The color of the fill at the end of breaking") { vis() && renders && dynamicFillColor && fill }
60
+
overrideval renders by c.setting("Renders", true, "Enables the render settings for breaking progress") { vis() && page ==Page.Cosmetic }
61
+
overrideval animation by c.setting("Animation", AnimationMode.Out, "The style of animation used for the box") { vis() && page ==Page.Cosmetic&& renders }
68
62
69
-
overrideval dynamicOutlineColor by c.setting("Dynamic Outline Color", true, "Enables color interpolation from start to finish for the outline when breaking a block") { vis() && renders && outline }
70
-
overrideval staticOutlineColor by c.setting("Outline Color", Color(255, 0, 0, 255), "The Color of the outline at the start of breaking") { vis() && renders &&!dynamicOutlineColor && outline }
71
-
overrideval startOutlineColor by c.setting("Start Outline Color", Color(255, 0, 0, 255), "The color of the outline at the start of breaking") { vis() && renders && dynamicOutlineColor && outline }
72
-
overrideval endOutlineColor by c.setting("End Outline Color", Color(0, 255, 0, 255), "The color of the outline at the end of breaking") { vis() && renders && dynamicOutlineColor && outline }
63
+
overrideval fill by c.setting("Fill", true, "Renders the sides of the box to display break progress") { vis() && page ==Page.Cosmetic&& renders }
64
+
overrideval dynamicFillColor by c.setting("Dynamic Colour", true, "Enables fill color interpolation from start to finish for fill when breaking a block") { vis() && page ==Page.Cosmetic&& renders && fill }
65
+
overrideval staticFillColor by c.setting("Fill Color", Color(255, 0, 0, 60), "The color of the fill") { vis() && page ==Page.Cosmetic&& renders &&!dynamicFillColor && fill }
66
+
overrideval startFillColor by c.setting("Start Fill Color", Color(255, 0, 0, 60), "The color of the fill at the start of breaking") { vis() && page ==Page.Cosmetic&& renders && dynamicFillColor && fill }
67
+
overrideval endFillColor by c.setting("End Fill Color", Color(0, 255, 0, 60), "The color of the fill at the end of breaking") { vis() && page ==Page.Cosmetic&& renders && dynamicFillColor && fill }
68
+
69
+
overrideval outline by c.setting("Outline", true, "Renders the lines of the box to display break progress") { vis() && page ==Page.Cosmetic&& renders }
70
+
overrideval outlineWidth by c.setting("Outline Width", 2, 0..5, 1, "The width of the outline") { vis() && page ==Page.Cosmetic&& renders && outline }
71
+
overrideval dynamicOutlineColor by c.setting("Dynamic Outline Color", true, "Enables color interpolation from start to finish for the outline when breaking a block") { vis() && page ==Page.Cosmetic&& renders && outline }
72
+
overrideval staticOutlineColor by c.setting("Outline Color", Color(255, 0, 0, 255), "The Color of the outline at the start of breaking") { vis() && page ==Page.Cosmetic&& renders &&!dynamicOutlineColor && outline }
73
+
overrideval startOutlineColor by c.setting("Start Outline Color", Color(255, 0, 0, 255), "The color of the outline at the start of breaking") { vis() && page ==Page.Cosmetic&& renders && dynamicOutlineColor && outline }
74
+
overrideval endOutlineColor by c.setting("End Outline Color", Color(0, 255, 0, 255), "The color of the outline at the end of breaking") { vis() && page ==Page.Cosmetic&& renders && dynamicOutlineColor && outline }
Copy file name to clipboardExpand all lines: common/src/main/kotlin/com/lambda/config/groups/BuildSettings.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,7 @@ class BuildSettings(
35
35
overrideval pathing by c.setting("Pathing", true, "Path to blocks") { vis() && page ==Page.General }
36
36
overrideval stayInRange by c.setting("Stay In Range", true, "Stay in range of blocks") { vis() && page ==Page.General&& pathing }
37
37
overrideval collectDrops by c.setting("Collect All Drops", false, "Collect all drops when breaking blocks") { vis() && page ==Page.General }
38
-
overrideval interactionsPerTick by c.setting("Interactions Per Tick", 5, 1..30, 1, "The amount of interactions that can happen per tick", visibility =vis)
38
+
overrideval interactionsPerTick by c.setting("Interactions Per Tick", 5, 1..30, 1, "The amount of interactions that can happen per tick") { vis() && page ==Page.General }
39
39
overrideval maxPendingInteractions by c.setting("Max Pending Interactions", 20, 1..30, 1, "Dont wait for this many interactions for the server response") { vis() && page ==Page.General }
0 commit comments