Skip to content

Commit

Permalink
God dammit
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMosKau authored Apr 25, 2022
1 parent 1a9c0a4 commit 5a3c861
Showing 1 changed file with 43 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,16 +442,51 @@ public void onUpdate(final UpdateEvent event) {
handleVanillaKickBypass();
break;
case "supercrafttimer":
mc.timer.timerSpeed = 0.25f;
mc.thePlayer.capabilities.isFlying = false;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if(supercraftDEV.get()) {
mc.timer.timerSpeed = 0.25f;
mc.thePlayer.capabilities.isFlying = false;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if (mc.gameSettings.keyBindJump.isKeyDown())
mc.thePlayer.motionY += 0.42;
if (mc.gameSettings.keyBindSneak.isKeyDown())
mc.thePlayer.motionY -= 0.42;
MovementUtils.strafe(5.5f);
} else {
int enderPearlSlot = getPearlSlot();
if (pearlState == 0) {
if (enderPearlSlot == -1) {
LiquidBounce.hud.addNotification(new Notification("You don't have any ender pearl!", Notification.Type.ERROR));
pearlState = -1;
this.setState(false);
return;
}

if (mc.thePlayer.inventory.currentItem != enderPearlSlot) {
mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(enderPearlSlot));
}

mc.thePlayer.sendQueue.addToSendQueue(new C03PacketPlayer.C05PacketPlayerLook(mc.thePlayer.rotationYaw, 90, mc.thePlayer.onGround));
mc.thePlayer.sendQueue.addToSendQueue(new C08PacketPlayerBlockPlacement(new BlockPos(-1, -1, -1), 255, mc.thePlayer.inventoryContainer.getSlot(enderPearlSlot + 36).getStack(), 0, 0, 0));
if (enderPearlSlot != mc.thePlayer.inventory.currentItem) {
mc.thePlayer.sendQueue.addToSendQueue(new C09PacketHeldItemChange(mc.thePlayer.inventory.currentItem));
}
pearlState = 2;
}

if (pearlState == 2) {
mc.timer.timerSpeed = 0.37f;
mc.thePlayer.capabilities.isFlying = false;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if (mc.gameSettings.keyBindJump.isKeyDown())
mc.thePlayer.motionY += 1;
if (mc.gameSettings.keyBindSneak.isKeyDown())
mc.thePlayer.motionY -= 1;
MovementUtils.strafe(5.5f);
}
}
break;
case "ncp":
mc.thePlayer.motionY = -ncpMotionValue.get();
Expand Down Expand Up @@ -692,7 +727,7 @@ else if (verusDmged) {
pearlState = 1;
}

if (pearlState == 1 && mc.thePlayer.hurtTime > 0)
if (pearlState == 1 && mc.thePlayer.hurtTime)
pearlState = 2;

if (pearlState == 2) {
Expand Down Expand Up @@ -872,7 +907,7 @@ public void onMove(final MoveEvent event) {
break;
case "supercrafttimer":
if (MovementUtils.isMoving() && supercraftDEV.get()) {
mc.thePlayer.motionY += 0.07;

}
break;
case "clip":
Expand Down

0 comments on commit 5a3c861

Please sign in to comment.