minecraft-hacked icon indicating copy to clipboard operation
minecraft-hacked copied to clipboard

Fly episode hack

Open zSynctic opened this issue 3 years ago • 3 comments

Can you push the fly hack code

zSynctic avatar Jul 08 '22 15:07 zSynctic

Figured it out this is the code for the flying boat code:

@Mixin(PlayerEntity.class) public abstract class ExampleMixin1 extends Entity{

public ExampleMixin1(EntityType<?> type, World world) {
    super(type, world);
}

@Inject(at = @At("HEAD"), method = "tick")
private void tick(CallbackInfo ci){
    ClientPlayerEntity player = MinecraftClient.getInstance().player;
    try{
        if(player != null && player.hasVehicle()){
            Entity vehicle = player.getVehicle();
            Vec3d velocity = vehicle.getVelocity();
            double Yaxis = player.input.jumping ? 0.5 : 0;
            vehicle.setVelocity(new Vec3d(velocity.x, Yaxis, velocity.z));
        }
    } catch (Exception e) {
        assert true;
    }
}

}

zSynctic avatar Jul 10 '22 21:07 zSynctic

@LiveOverflow please, we want the flyhack mod

hisirdox avatar Jul 13 '22 19:07 hisirdox

He should just add all of them

CrossScarDev avatar Jul 04 '23 19:07 CrossScarDev