LiquidBounce icon indicating copy to clipboard operation
LiquidBounce copied to clipboard

[FEATURE] Scaffold Telly - Silent

Open liquidsquid1 opened this issue 9 months ago • 6 comments

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

liquidsquid1 avatar Apr 27 '24 08:04 liquidsquid1

So, a Y client-side spoof option?

Coccocoahelper avatar May 12 '24 10:05 Coccocoahelper

So, a Y client-side spoof option?

Exactly.

liquidsquid1 avatar May 13 '24 07:05 liquidsquid1

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

liquidsquid1 avatar Jun 16 '24 17:06 liquidsquid1

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?

Coccocoahelper avatar Jun 19 '24 17:06 Coccocoahelper

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));
  });
});

liquidsquid1 avatar Jun 19 '24 17:06 liquidsquid1

I have an idea for your script

Coccocoahelper avatar Jun 19 '24 17:06 Coccocoahelper