Skip to content
This repository was archived by the owner on Dec 12, 2025. It is now read-only.
Merged
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
12 changes: 11 additions & 1 deletion src/main/kotlin/com/lambda/client/module/modules/player/Timer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import com.lambda.client.manager.managers.TimerManager.modifyTimer
import com.lambda.client.manager.managers.TimerManager.resetTimer
import com.lambda.client.module.Category
import com.lambda.client.module.Module
import com.lambda.client.module.modules.client.ClickGUI
import com.lambda.client.util.MovementUtils
import net.minecraftforge.fml.common.gameevent.TickEvent

object Timer : Module(
Expand All @@ -13,6 +15,7 @@ object Timer : Module(
category = Category.PLAYER,
modulePriority = 500
) {
private val onlyWhenInputting by setting("Only When Inputting", false)
private val slow by setting("Slow Mode", false)
private val tickNormal by setting("Tick N", 2.0f, 1f..10f, 0.1f, { !slow })
private val tickSlow by setting("Tick S", 8f, 1f..10f, 0.1f, { slow })
Expand All @@ -25,8 +28,15 @@ object Timer : Module(
listener<TickEvent.ClientTickEvent> {
if (it.phase != TickEvent.Phase.END) return@listener

if (ClickGUI.isEnabled) {
resetTimer()
return@listener
}

val multiplier = if (!slow) tickNormal else tickSlow / 10.0f
modifyTimer(50.0f / multiplier)
if (onlyWhenInputting) {
if (MovementUtils.isInputting) modifyTimer(50.0f / multiplier)
} else modifyTimer(50.0f / multiplier)
}
}
}