useful things i think 🏳️⚧️
This commit is contained in:
parent
8fcdc9557e
commit
ce97924249
5 changed files with 34 additions and 1 deletions
|
@ -72,6 +72,7 @@ public class BaseBand {
|
||||||
GlobalUtil.SHUTDOWN.run();
|
GlobalUtil.SHUTDOWN.run();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mc.gameSettings.autoJump = false; //fuck autojump, disable it on startup
|
||||||
|
|
||||||
MinecraftForge.EVENT_BUS.register(fmlEventHandlerInstance);
|
MinecraftForge.EVENT_BUS.register(fmlEventHandlerInstance);
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,7 @@ import com.baseband.client.util.config.KeyBind;
|
||||||
import com.baseband.client.util.interact.ChatUtil;
|
import com.baseband.client.util.interact.ChatUtil;
|
||||||
import net.minecraft.entity.EntityLivingBase;
|
import net.minecraft.entity.EntityLivingBase;
|
||||||
import net.minecraft.network.Packet;
|
import net.minecraft.network.Packet;
|
||||||
|
import net.minecraft.network.play.server.SPacketPlayerPosLook;
|
||||||
import net.minecraft.network.play.server.SPacketTimeUpdate;
|
import net.minecraft.network.play.server.SPacketTimeUpdate;
|
||||||
import net.minecraftforge.common.MinecraftForge;
|
import net.minecraftforge.common.MinecraftForge;
|
||||||
|
|
||||||
|
@ -99,6 +100,8 @@ public class Client extends Feature {
|
||||||
lastDiff = diff;
|
lastDiff = diff;
|
||||||
}
|
}
|
||||||
lastTick = time;
|
lastTick = time;
|
||||||
|
} else if(packet instanceof SPacketPlayerPosLook) { //TODO: if packetfly then ignore
|
||||||
|
BaseBand.notify("§aLagback!");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class Speed extends Feature {
|
||||||
@Override
|
@Override
|
||||||
public void onEveryTick() {
|
public void onEveryTick() {
|
||||||
if(enabled && !notIngame()) {
|
if(enabled && !notIngame()) {
|
||||||
text = this + "§7 [" + String.format("%.2f", getSpeed()) + "]";
|
text = this + "§7 [" + String.format("%.2f", getSpeed()) + " KM/H]";
|
||||||
} else {
|
} else {
|
||||||
text = toString();
|
text = toString();
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,7 @@ import com.baseband.client.module.Feature;
|
||||||
import com.baseband.client.module.category.Movement;
|
import com.baseband.client.module.category.Movement;
|
||||||
import net.minecraft.network.play.server.SPacketEntityVelocity;
|
import net.minecraft.network.play.server.SPacketEntityVelocity;
|
||||||
import net.minecraft.network.play.server.SPacketExplosion;
|
import net.minecraft.network.play.server.SPacketExplosion;
|
||||||
|
import net.minecraftforge.client.event.PlayerSPPushOutOfBlocksEvent;
|
||||||
import net.minecraftforge.event.entity.living.LivingKnockBackEvent;
|
import net.minecraftforge.event.entity.living.LivingKnockBackEvent;
|
||||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||||
|
|
||||||
|
@ -22,6 +23,12 @@ public class Velocity extends Feature {
|
||||||
event.setCanceled(true);
|
event.setCanceled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@SubscribeEvent
|
||||||
|
public void blockPush(PlayerSPPushOutOfBlocksEvent event) {
|
||||||
|
if(event.getEntity() == mc.player)
|
||||||
|
event.setCanceled(true);
|
||||||
|
}
|
||||||
|
|
||||||
public void packetRead(PacketEvent.Read event) {
|
public void packetRead(PacketEvent.Read event) {
|
||||||
if (event.getPacket() instanceof SPacketEntityVelocity) {
|
if (event.getPacket() instanceof SPacketEntityVelocity) {
|
||||||
SPacketEntityVelocity velocity = (SPacketEntityVelocity) event.getPacket();
|
SPacketEntityVelocity velocity = (SPacketEntityVelocity) event.getPacket();
|
||||||
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
package com.baseband.client.module.world;
|
||||||
|
|
||||||
|
import com.baseband.client.BaseBand;
|
||||||
|
import com.baseband.client.module.Feature;
|
||||||
|
import com.baseband.client.module.category.World;
|
||||||
|
import net.minecraft.client.gui.GuiGameOver;
|
||||||
|
|
||||||
|
@World
|
||||||
|
public class AutoRespawn extends Feature {
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "AutoRespawn";
|
||||||
|
}
|
||||||
|
|
||||||
|
public void onTick() {
|
||||||
|
if (mc.currentScreen instanceof GuiGameOver)) {
|
||||||
|
mc.player.respawnPlayer();
|
||||||
|
mc.displayGuiScreen(null);
|
||||||
|
BaseBand.notify("Respawned.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue