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

still not the fly and fish classes?

Open doctorassi opened this issue 2 years ago • 2 comments

doctorassi avatar May 04 '22 14:05 doctorassi

Yeah, I too was looking for the latest video's sources

GGORG0 avatar May 04 '22 17:05 GGORG0

If you want the flying boat mod code I figured it out here it is:

@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