diff --git a/src/main/kotlin/org/kamiblue/client/module/modules/movement/Parkour.kt b/src/main/kotlin/org/kamiblue/client/module/modules/movement/Parkour.kt new file mode 100644 index 0000000000..320252e97e --- /dev/null +++ b/src/main/kotlin/org/kamiblue/client/module/modules/movement/Parkour.kt @@ -0,0 +1,25 @@ +package org.kamiblue.client.module.modules.movement + +import net.minecraftforge.fml.common.gameevent.TickEvent +import org.kamiblue.client.module.Category +import org.kamiblue.client.module.Module +import org.kamiblue.client.util.threads.safeListener + +internal object Parkour : Module( + name = "Parkour", + description = "Automatically jump at the edge of blocks", + category = Category.MOVEMENT +) { + init { + safeListener { + if ( + player.onGround && !player.isSneaking && + world.getCollisionBoxes(player, player.entityBoundingBox + .offset(0.0, -0.5, 0.0) + .expand(-0.001, 0.0, -0.001)).isEmpty() + ) { + player.jump() + } + } + } +}