CCBlueX / LiquidBounce

A free mixin-based injection hacked client for Minecraft using the Fabric API
https://liquidbounce.net/
GNU General Public License v3.0
1.41k stars 460 forks source link

[FEATURE] Scaffold Telly - Silent #2930

Open liquidsquid1 opened 4 months ago

liquidsquid1 commented 4 months ago

LiquidBounce Branch

Nextgen

Describe your feature request.

It would be cool and more visually appealing if there was an option in the scaffold to freeze the Y position of the scaffold, so that for telly scaffolds it’ll just look like you are bridging without jumping.

In third person, it should also keep the camera at the same Y position and make the body jump up and down in third person.

Additional context

No response

Coccocoahelper commented 3 months ago

So, a Y client-side spoof option?

liquidsquid1 commented 3 months ago

So, a Y client-side spoof option?

Exactly.

liquidsquid1 commented 2 months ago

I've already made a liquidbounce script to replicate the behavior but it would be nice for it to be a feature in the client:

first person

https://github.com/CCBlueX/LiquidBounce/assets/151129309/e37e9abd-0933-4dd3-958b-f76ab0aa8d0f

third person

https://github.com/CCBlueX/LiquidBounce/assets/151129309/1d22ae10-c3ea-4106-9f19-5b4575c3dc35

Coccocoahelper commented 2 months ago

I've already made a liquidbounce script to replicate the behavior but it would be nice for it to be a feature in the client:

first person

2024-06-16.18-44-30.mp4

third person

2024-06-16.18-45-26.mp4

Would you mind giving me the script?

liquidsquid1 commented 2 months ago

I've already made a liquidbounce script to replicate the behavior but it would be nice for it to be a feature in the client:

first person

2024-06-16.18-44-30.mp4

third person

2024-06-16.18-45-26.mp4

Would you mind giving me the script?

Not like it would help, as i've already tried and setting the camera without using a mixin is inaccessible. But here it is!

const Vec3d = Java.type("net.minecraft.util.math.Vec3d");

const script = registerScript({
  name: "squidutils",
  version: "0.0.0",
  authors: ["@liquid.squid"]
});

script.registerModule({
  name: "CustomView",
  category: "Render", // Movement, Combat, Render, ...
  description: "Sets a custom view"
}, (mod) => {
  let frozenY = 0;
  mod.on("enable", () => {
    frozenY = mc.gameRenderer.camera.pos.y;
  });
  mod.on("worldRender", () => {
    let position = mc.gameRenderer.camera.pos;
    mc.gameRenderer.camera.setPos(new Vec3d(position.x, frozenY, position.z));
  });
});
Coccocoahelper commented 2 months ago

I have an idea for your script