Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

new: Add Parkour #2153

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 3 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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

5HT2 marked this conversation as resolved.
Show resolved Hide resolved

internal object Parkour : Module(
name = "Parkour",
description = "Jump at the edge of blocks",
5HT2 marked this conversation as resolved.
Show resolved Hide resolved
category = Category.MOVEMENT
) {
init {
safeListener<TickEvent.ClientTickEvent> {
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() }
}
}
5HT2 marked this conversation as resolved.
Show resolved Hide resolved