fastuse, swingspeed, nopush entities
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m9s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m9s
This commit is contained in:
parent
ac2093fadb
commit
cf4d4d8543
8 changed files with 100 additions and 1 deletions
|
@ -47,6 +47,7 @@ public class Setup {
|
|||
new ElytraBot(),
|
||||
new ESP(),
|
||||
new FastBreak(),
|
||||
new FastUse(),
|
||||
new Freecam(),
|
||||
new Help(),
|
||||
new HUD(),
|
||||
|
@ -64,6 +65,7 @@ public class Setup {
|
|||
new Select(),
|
||||
new Speed(),
|
||||
new Spotify(),
|
||||
new SwingSpeed(),
|
||||
new Test(),
|
||||
new Timer(),
|
||||
new Toggle(),
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
package de.com.baseband.client.feature.render;
|
||||
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.category.Render;
|
||||
import de.com.baseband.client.registry.annotation.Config;
|
||||
import de.com.baseband.client.registry.annotation.Range;
|
||||
|
||||
@Render
|
||||
public class SwingSpeed extends Feature {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "SwingSpeed";
|
||||
}
|
||||
|
||||
@Config("Speed")
|
||||
@Range("0..20")
|
||||
public int swingSpeed;
|
||||
}
|
|
@ -23,7 +23,7 @@ import net.minecraft.util.FoodStats;
|
|||
public class AutoEat extends Feature {
|
||||
|
||||
private int lastSlot = -1;
|
||||
private boolean eating = false;
|
||||
public boolean eating = false;
|
||||
|
||||
@Config("Close GUI On Eat")
|
||||
public boolean closeGui;
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
package de.com.baseband.client.feature.world;
|
||||
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.Features;
|
||||
import de.com.baseband.client.feature.category.World;
|
||||
import net.minecraft.network.play.client.CPacketPlayerTryUseItem;
|
||||
|
||||
@World
|
||||
public class FastUse extends Feature {
|
||||
@Override
|
||||
public String toString() {
|
||||
return "FastUse";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if (!notIngame() && mc.player.isHandActive() && !Features.getFeature(AutoEat.class).eating) {
|
||||
mc.getConnection().sendPacket(new CPacketPlayerTryUseItem(mc.player.getActiveHand()));
|
||||
}
|
||||
}
|
||||
}
|
|
@ -8,7 +8,9 @@ import de.com.baseband.client.event.events.PacketEvent;
|
|||
import de.com.baseband.client.feature.Features;
|
||||
import de.com.baseband.client.feature.chat.ChatExtras;
|
||||
import de.com.baseband.client.feature.client.Client;
|
||||
import de.com.baseband.client.feature.movement.Velocity;
|
||||
import de.com.baseband.client.feature.render.NoRender;
|
||||
import de.com.baseband.client.feature.render.SwingSpeed;
|
||||
import de.com.baseband.client.feature.world.AutoSignText;
|
||||
import de.com.baseband.client.util.adapt.FieldFinder;
|
||||
import de.com.baseband.client.util.net.ScreenshotHelper;
|
||||
|
@ -129,6 +131,20 @@ public class MixinProxy {
|
|||
BaseBand.publish(new MotionUpdateEvent.Post());
|
||||
}
|
||||
|
||||
public static boolean shouldCancelEntityVelocity() {
|
||||
return Features.isFeatureEnabled(Velocity.class);
|
||||
}
|
||||
|
||||
public static int swingSpeed() {
|
||||
SwingSpeed swingSpeed = Features.getFeature(SwingSpeed.class);
|
||||
|
||||
if(Features.isFeatureEnabled(SwingSpeed.class)) {
|
||||
return swingSpeed.swingSpeed;
|
||||
} else {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
public static Object onMove(MoverType p_70091_1_, double p_70091_2_, double p_70091_4_, double p_70091_6_, CallbackInfo ci) {
|
||||
MoveEvent event = new MoveEvent(p_70091_1_, p_70091_2_, p_70091_4_, p_70091_6_);
|
||||
ci.cancel();
|
||||
|
|
|
@ -0,0 +1,22 @@
|
|||
package de.com.baseband.client.mixin.mixins;
|
||||
|
||||
import de.com.baseband.client.mixin.MixinProxy;
|
||||
import net.minecraft.entity.Entity;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||
|
||||
@Mixin(Entity.class)
|
||||
public class MixinEntity {
|
||||
@Redirect(method = "applyEntityCollision", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/Entity;addVelocity(DDD)V"))
|
||||
public void velocity(Entity entity, double x, double y, double z) {
|
||||
if (MixinProxy.shouldCancelEntityVelocity()) { //FOR NOW!
|
||||
//empty if statement to cancel Collision
|
||||
} else {
|
||||
entity.motionX += x;
|
||||
entity.motionY += y;
|
||||
entity.motionZ += z;
|
||||
entity.isAirBorne = true;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package de.com.baseband.client.mixin.mixins;
|
||||
|
||||
import de.com.baseband.client.mixin.MixinProxy;
|
||||
import net.minecraft.entity.EntityLivingBase;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(EntityLivingBase.class)
|
||||
public class MixinEntityLivingBase {
|
||||
@Inject(method = {"getArmSwingAnimationEnd"}, at = {@At(value = "HEAD")}, cancellable = true)
|
||||
private void getArmSwingAnimationEnd(CallbackInfoReturnable<Integer> info) {
|
||||
if (MixinProxy.swingSpeed() != -1) {
|
||||
info.setReturnValue(MixinProxy.swingSpeed());
|
||||
}
|
||||
}
|
||||
}
|
|
@ -11,8 +11,10 @@
|
|||
"IRenderManager",
|
||||
"ISPacketExplosion",
|
||||
"ITimer",
|
||||
"MixinEntityLivingBase",
|
||||
"MixinEntityPlayerSP",
|
||||
"MixinEntityRender",
|
||||
"MixinEntity",
|
||||
"MixinEventBus",
|
||||
"MixinFMLNetworkRegistry",
|
||||
"MixinGuiEditSign",
|
||||
|
|
Loading…
Add table
Reference in a new issue