This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
forked from Strangerrrs/Raven-bS
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [+] TargetStrafe - Strafes around the target. - [+] Blink mode for InvMove - [+] Module enable/disable sound. - [+] Fast option for Scaffold - [+] Alan34 mode for NoFall - [※] KillAura - fix sometimes fails to attack. - [※] fix HUD issue - [※] fix MultiPlayer issue +2 unverified changes.
- Loading branch information
Showing
43 changed files
with
774 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/main/java/keystrokesmod/mixins/impl/client/KeyBindingAccessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package keystrokesmod.mixins.impl.client; | ||
|
||
import net.minecraft.client.settings.KeyBinding; | ||
import org.spongepowered.asm.mixin.Mixin; | ||
import org.spongepowered.asm.mixin.gen.Accessor; | ||
|
||
@Mixin(KeyBinding.class) | ||
public interface KeyBindingAccessor { | ||
@Accessor | ||
void setPressed(boolean pressed); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 32 additions & 15 deletions
47
src/main/java/keystrokesmod/module/impl/movement/InvMove.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,56 @@ | ||
package keystrokesmod.module.impl.movement; | ||
|
||
import keystrokesmod.module.Module; | ||
import keystrokesmod.module.setting.impl.DescriptionSetting; | ||
import keystrokesmod.module.setting.impl.SliderSetting; | ||
import keystrokesmod.utility.Utils; | ||
import net.minecraft.client.gui.GuiChat; | ||
import net.minecraft.client.gui.inventory.GuiContainer; | ||
import net.minecraft.client.settings.KeyBinding; | ||
import org.lwjgl.input.Keyboard; | ||
|
||
import static keystrokesmod.module.ModuleManager.blink; | ||
|
||
public class InvMove extends Module { | ||
public static final String[] MODES = {"Normal", "Blink"}; | ||
private final SliderSetting mode; | ||
private boolean blinking = false; | ||
public InvMove() { | ||
super("InvMove", category.movement); | ||
this.registerSetting(new DescriptionSetting("Allow you move in inventory.")); | ||
this.registerSetting(mode = new SliderSetting("Mode", MODES, 0)); | ||
} | ||
|
||
@Override | ||
public void onUpdate() { | ||
if (mc.currentScreen != null) { | ||
if (mc.currentScreen instanceof GuiChat) { | ||
return; | ||
if (mc.currentScreen instanceof GuiContainer) { | ||
if (!blinking) { | ||
blink.enable(); | ||
} | ||
blinking = true; | ||
|
||
KeyBinding.setKeyBindState(mc.gameSettings.keyBindForward.getKeyCode(), Keyboard.isKeyDown(mc.gameSettings.keyBindForward.getKeyCode())); | ||
KeyBinding.setKeyBindState(mc.gameSettings.keyBindBack.getKeyCode(), Keyboard.isKeyDown(mc.gameSettings.keyBindBack.getKeyCode())); | ||
KeyBinding.setKeyBindState(mc.gameSettings.keyBindRight.getKeyCode(), Keyboard.isKeyDown(mc.gameSettings.keyBindRight.getKeyCode())); | ||
KeyBinding.setKeyBindState(mc.gameSettings.keyBindLeft.getKeyCode(), Keyboard.isKeyDown(mc.gameSettings.keyBindLeft.getKeyCode())); | ||
KeyBinding.setKeyBindState(mc.gameSettings.keyBindJump.getKeyCode(), Utils.jumpDown()); | ||
if (Keyboard.isKeyDown(208) && mc.thePlayer.rotationPitch < 90.0F) { | ||
mc.thePlayer.rotationPitch += 6.0F; | ||
} | ||
if (Keyboard.isKeyDown(200) && mc.thePlayer.rotationPitch > -90.0F) { | ||
mc.thePlayer.rotationPitch -= 6.0F; | ||
} | ||
if (Keyboard.isKeyDown(205)) { | ||
mc.thePlayer.rotationYaw += 6.0F; | ||
} | ||
if (Keyboard.isKeyDown(203)) { | ||
mc.thePlayer.rotationYaw -= 6.0F; | ||
} else { | ||
if (blinking && blink.isEnabled()) { | ||
blink.disable(); | ||
} | ||
blinking = false; | ||
} | ||
} | ||
|
||
@Override | ||
public void onDisable() { | ||
if (blinking && blink.isEnabled()) { | ||
blink.disable(); | ||
} | ||
blinking = false; | ||
} | ||
|
||
@Override | ||
public String getInfo() { | ||
return MODES[(int) mode.getInput()]; | ||
} | ||
} |
Oops, something went wrong.