This file contains hidden or 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
// Constants and default values | |
private static final double HW = 0.3; | |
private static final double[][] CORNERS = {{ -HW, -HW }, { HW, -HW }, { -HW, HW }, { HW, HW }}; | |
private boolean sneakingFromScript = false; | |
private boolean placed = false; | |
private boolean forceRelease = false; | |
private int sneakJumpDelayTicks = -1; | |
private int sneakJumpStartTick = -1; | |
private int unsneakDelayTicks = -1; | |
private int unsneakStartTick = -1; |
This file contains hidden or 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
// State variables | |
private boolean setJump = false; | |
private boolean ignoreNext = false; | |
private boolean aiming = false; | |
private int lastHurtTime = -1; | |
private double lastFallDistance = 0.0; | |
void onLoad() { | |
// Register configuration options | |
modules.registerSlider("Chance", "%", 100, 0, 100, 1); |