Manoj Pintu

fabric API:- 0.161. dont use the version told in the prompt given above.

๐Ÿ“Ž 1 file 11,583 chars
๐Ÿ“„
pasted-code-1795010822006.txt
txt 434 lines
โ–ถ
MASTER DEVELOPMENT PROMPT โ€” BUTTER CLIENT

Act as an expert Minecraft Fabric mod developer. Build an original, highly optimized Minecraft client-side utility mod named BUTTER CLIENT.

IMPORTANT: This is a Minecraft MOD, NOT a launcher.

==================================================
1. PROJECT INFORMATION
==================================================

Project Name: Butter Client
Minecraft Version: 26.2
Mod Loader: Fabric
Fabric API Version: 0.154
Author: MineAura
Mod Type: Client-side Fabric mod
Theme: Purple and Black
Logo: ๐Ÿงˆ Butter Emoji
Default Menu Keybind: Right Shift

Target Minecraft Java Edition 26.2.

Verify that Fabric API 0.154, Fabric Loom, mappings, Java version, and all dependencies are compatible with Minecraft 26.2. Do not assume compatibility without checking.

==================================================
2. MAIN MOD MENU
==================================================

Create a beautiful, modern, customizable configuration menu.

The menu must open by pressing RIGHT SHIFT by default.

Requirements:
- Register the menu keybind using Minecraft's keybinding system.
- Allow changing the keybind through Minecraft's Controls > Key Binds menu.
- Use a purple and black theme.
- Display the Butter Client name and ๐Ÿงˆ logo.
- Use smooth, lightweight animations.
- Create clean buttons, module cards, icons, and configuration panels.
- Keep the interface responsive and lightweight.
- Avoid expensive visual effects.

Organize the menu into these categories:

1. HUD
2. Visual
3. Performance
4. Utility
5. Settings

Each module must have:
- Enable/disable toggle.
- Configuration button.
- Module name.
- Short description.
- Enabled/disabled visual indicator.

Clicking a module's configuration button must open its own settings page.

Example:

Click Zoom > Configuration.

Open a separate Zoom configuration screen with options for:
- Zoom keybind.
- Zoom speed.
- Scroll while zoomed.
- Show hand while zoomed.
- Smooth zoom.
- Direct zoom.
- Maximum zoom.
- Default zoom.

==================================================
3. ZOOM MODULE
==================================================

Create a fully customizable Zoom feature.

Settings:

- Customizable zoom keybind.
- Adjustable zoom speed.
- Scroll while zoomed.
- Show hand while zoomed.
- Smooth zoom animation.
- Direct zoom mode.
- Adjustable zoom sensitivity.
- Maximum zoom level.
- Default zoom level.
- Hold-to-zoom mode.
- Toggle-to-zoom mode, if practical.

Behavior:

- Zoom must work correctly in first-person.
- Avoid interfering with normal camera controls.
- Smooth zoom must gradually transition into and out of zoom.
- Direct zoom must instantly apply the selected zoom level.
- Mouse-wheel scrolling should adjust zoom when enabled.
- Every setting must be configurable through the Zoom settings page.

==================================================
4. HUD MODULES
==================================================

Create separate HUD modules that can be enabled, disabled, moved, and customized.

A. FPS HUD

Display current FPS.

Settings:
- Enable/disable.
- Position.
- Text color.
- Background toggle.
- Text size.
- Optional minimum and maximum FPS display.

B. CPS HUD

Display:
- Left-clicks per second.
- Right-clicks per second.

Settings:
- Enable/disable.
- Position.
- Text color.
- Background.
- Display style.

C. ARMOR HUD

Display equipped armor.

Requirements:
- Show armor icons.
- Show durability.
- Optional durability percentages.
- Update when armor changes.
- Horizontal and vertical layouts.

Settings:
- Position.
- Icon size.
- Durability display.
- Background.
- Custom colors.

D. POTION HUD

Display active potion effects.

Requirements:
- Potion effect icons.
- Effect names.
- Remaining duration.
- Update when effects change.
- Support multiple active effects.

Settings:
- Position.
- Icon size.
- Show/hide names.
- Show/hide timers.
- Horizontal/vertical layout.

GENERAL HUD SETTINGS:

- Drag-and-drop positioning.
- Snap-to-screen-edge support.
- Scale adjustment.
- Background opacity.
- Text color.
- HUD spacing.
- Reset-position button.

Prevent HUD elements from overlapping unnecessarily.

==================================================
5. PERFORMANCE MODULES
==================================================

Performance is one of the most important parts of Butter Client.

The mod must remain lightweight and avoid unnecessary CPU, GPU, and memory usage.

A. NO VISION RENDER

Create a rendering optimization module named:

NO VISION RENDER

Purpose:

Avoid rendering entities that are outside the active camera's visible view.

Requirements:

- Use the actual active render camera.
- Check whether entities can contribute to the visible scene.
- Skip unnecessary entity rendering.
- Support first-person and third-person camera modes.
- Correctly support F5 third-person view.
- Render entities behind the player's character when they are visible to the third-person camera.
- Do not use the player's facing direction as the only visibility test.
- Handle camera rotation and movement correctly.
- Avoid unnecessary repeated visibility calculations.
- Include an enable/disable setting.

IMPORTANT TECHNICAL REQUIREMENTS:

The visibility calculation must use the actual rendering camera's position and orientation.

In F5 mode, the camera moves away from the player. Therefore, visibility must be calculated from the camera, not from the player's position or facing direction.

Do not hide entities that are actually visible on the screen.

Only skip unnecessary rendering.

NEVER stop:
- Entity ticking.
- Entity AI.
- Entity movement.
- Networking.
- Collision.
- Game logic.

Do not break multiplayer functionality or compatibility with other rendering mods.

B. ADDITIONAL OPTIMIZATIONS

Explore optional client-side optimizations:

- Reduce unnecessary rendering work.
- Optimize HUD update scheduling.
- Cache reusable display information.
- Avoid repeated calculations when values have not changed.
- Avoid unnecessary object allocations.
- Optimize event handling.
- Reduce unnecessary background processing.
- Add configurable visual effects.

Every optimization must have a real implementation.

Do not add fake performance settings.

Do not unnecessarily duplicate major optimization mods.

==================================================
6. UTILITY MODULES
==================================================

Create a modular system that can support additional features.

Possible modules:

- Custom Crosshair.
- Fullbright.
- Coordinates HUD.
- Ping HUD.
- Direction HUD.
- Custom Hit Color.
- Low Fire.
- Custom Nametag Display.
- Screenshot Utility.

Each module should have an enable/disable toggle and its own configuration page when applicable.

==================================================
7. CONFIGURATION SYSTEM
==================================================

Create a centralized configuration system.

Requirements:

- Save settings locally.
- Automatically load settings when Minecraft starts.
- Save changes automatically.
- Use safe defaults when settings are missing.
- Handle corrupted configuration files without crashing.
- Keep module settings separate.
- Allow resetting individual modules.
- Include a reset-all-settings option.
- Save keybind settings.
- Preserve settings after restarting Minecraft.

Keybinds must integrate properly with Minecraft's Controls menu wherever applicable.

==================================================
8. CODE QUALITY AND OPTIMIZATION
==================================================

The code must be clean, modular, and maintainable.

Requirements:

- Use event-driven updates where possible.
- Avoid expensive operations every frame.
- Avoid unnecessary rendering calls.
- Avoid memory leaks.
- Avoid excessive temporary objects.
- Avoid unnecessary threads.
- Separate rendering logic from module logic.
- Keep modules independent.
- Use appropriate Fabric APIs.
- Handle invalid settings safely.
- Maintain compatibility with multiplayer.

Do not sacrifice stability for tiny performance improvements.

==================================================
9. VISUAL IDENTITY
==================================================

Butter Client must have a recognizable identity.

Color palette:

- Primary: Purple.
- Secondary: Black.
- Background: Very dark purple/black.
- Accent: Bright purple.
- Main text: White.
- Secondary text: Light gray.

Branding:

Name: Butter Client
Logo: ๐Ÿงˆ
Author: MineAura

The menu should look like a professional Minecraft client modification.

Use:
- Consistent spacing.
- Readable typography.
- Clean module cards.
- Smooth navigation.
- Organized configuration pages.
- Consistent buttons and toggles.

==================================================
10. PROJECT STRUCTURE
==================================================

Use a modular project architecture.

Suggested components:

- Main mod initializer.
- Client initializer.
- Screen and menu management.
- Keybind registration.
- Configuration management.
- HUD framework.
- Individual HUD modules.
- Zoom module.
- Performance modules.
- Utility modules.
- Shared rendering utilities.

Do not put all functionality into one enormous Java or Kotlin file.

Use the language and APIs compatible with the selected Fabric development environment.

==================================================
11. BUILD AND TESTING
==================================================

Target Minecraft 26.2 and Fabric API 0.154.

Before declaring the mod complete:

1. Verify dependency compatibility.
2. Verify Gradle configuration.
3. Compile the project.
4. Fix all compilation errors.
5. Launch Minecraft with the mod.
6. Test the Right Shift menu keybind.
7. Test changing the menu keybind.
8. Test every module configuration screen.
9. Test Zoom in first-person and third-person.
10. Test all HUD elements.
11. Test No Vision Render in first-person.
12. Test No Vision Render in F5.
13. Check compatibility with other rendering mods.
14. Check that settings persist after restarting Minecraft.

Never claim a feature works unless it has actually been implemented and tested.

==================================================
12. DEVELOPMENT RULES
==================================================

- Build an original implementation.
- Use other Minecraft clients only as inspiration.
- Do not copy substantial source code from other mods without permission and license compliance.
- Do not create fake buttons.
- Do not create settings that do nothing.
- Do not leave unfinished features while claiming they are complete.
- Do not generate the entire project as one enormous untested code dump.
- Build incrementally.
- Compile and test after each major development stage.
- Fix errors before adding more modules.
- Keep the initial build lightweight.
- Prioritize a working foundation over many unfinished features.

==================================================
FINAL GOAL
==================================================

Create BUTTER CLIENT, a lightweight, highly optimized, customizable Minecraft 26.2 Fabric client-side mod by MineAura.

It must combine:

- A beautiful purple-and-black configuration menu.
- Butter emoji branding.
- Right Shift menu keybind.
- Customizable keybinds.
- Advanced Zoom module.
- FPS HUD.
- CPS HUD.
- Armor HUD.
- Potion HUD.
- Useful client-side utilities.
- No Vision Render optimization.
- Persistent configuration settings.
- Clean, modular, optimized code.

The final result should feel polished, stable, customizable, and efficient, including on lower-end computers.
Kodari AI
KodariWed at 2:12 pm 1
ButterClient
A client-side Fabric mod for Minecraft 26.2 featuring a purple-and-black themed configuration menu opened with Right Shift. Includes a customizable Zoom module with smooth transitions and scroll support, draggable HUD elements (FPS, CPS, Armor, Potion displays), and a No Vision Render optimization that culls entities outside the active camera's view in both first and third person. Features persistent configuration, per-module settings pages, and utility modules like Fullbright and Coordinates HUD. Built with modular architecture for performance and multiplayer compatibility.

This is a Minecraft server plugin project; Butter Client requires a client-side Fabric mod. Kodari supports Fabric for Minecraft 26.2.

Switch to Fabric 26.2

Manoj Pintu

now, make the fabric 26.2 mod. here is the explaination of the mod.

๐Ÿ“Ž 1 file 11,583 chars
๐Ÿ“„
pasted-code-1795011256448.txt
txt 434 lines
โ–ถ
MASTER DEVELOPMENT PROMPT โ€” BUTTER CLIENT

Act as an expert Minecraft Fabric mod developer. Build an original, highly optimized Minecraft client-side utility mod named BUTTER CLIENT.

IMPORTANT: This is a Minecraft MOD, NOT a launcher.

==================================================
1. PROJECT INFORMATION
==================================================

Project Name: Butter Client
Minecraft Version: 26.2
Mod Loader: Fabric
Fabric API Version: 0.154
Author: MineAura
Mod Type: Client-side Fabric mod
Theme: Purple and Black
Logo: ๐Ÿงˆ Butter Emoji
Default Menu Keybind: Right Shift

Target Minecraft Java Edition 26.2.

Verify that Fabric API 0.154, Fabric Loom, mappings, Java version, and all dependencies are compatible with Minecraft 26.2. Do not assume compatibility without checking.

==================================================
2. MAIN MOD MENU
==================================================

Create a beautiful, modern, customizable configuration menu.

The menu must open by pressing RIGHT SHIFT by default.

Requirements:
- Register the menu keybind using Minecraft's keybinding system.
- Allow changing the keybind through Minecraft's Controls > Key Binds menu.
- Use a purple and black theme.
- Display the Butter Client name and ๐Ÿงˆ logo.
- Use smooth, lightweight animations.
- Create clean buttons, module cards, icons, and configuration panels.
- Keep the interface responsive and lightweight.
- Avoid expensive visual effects.

Organize the menu into these categories:

1. HUD
2. Visual
3. Performance
4. Utility
5. Settings

Each module must have:
- Enable/disable toggle.
- Configuration button.
- Module name.
- Short description.
- Enabled/disabled visual indicator.

Clicking a module's configuration button must open its own settings page.

Example:

Click Zoom > Configuration.

Open a separate Zoom configuration screen with options for:
- Zoom keybind.
- Zoom speed.
- Scroll while zoomed.
- Show hand while zoomed.
- Smooth zoom.
- Direct zoom.
- Maximum zoom.
- Default zoom.

==================================================
3. ZOOM MODULE
==================================================

Create a fully customizable Zoom feature.

Settings:

- Customizable zoom keybind.
- Adjustable zoom speed.
- Scroll while zoomed.
- Show hand while zoomed.
- Smooth zoom animation.
- Direct zoom mode.
- Adjustable zoom sensitivity.
- Maximum zoom level.
- Default zoom level.
- Hold-to-zoom mode.
- Toggle-to-zoom mode, if practical.

Behavior:

- Zoom must work correctly in first-person.
- Avoid interfering with normal camera controls.
- Smooth zoom must gradually transition into and out of zoom.
- Direct zoom must instantly apply the selected zoom level.
- Mouse-wheel scrolling should adjust zoom when enabled.
- Every setting must be configurable through the Zoom settings page.

==================================================
4. HUD MODULES
==================================================

Create separate HUD modules that can be enabled, disabled, moved, and customized.

A. FPS HUD

Display current FPS.

Settings:
- Enable/disable.
- Position.
- Text color.
- Background toggle.
- Text size.
- Optional minimum and maximum FPS display.

B. CPS HUD

Display:
- Left-clicks per second.
- Right-clicks per second.

Settings:
- Enable/disable.
- Position.
- Text color.
- Background.
- Display style.

C. ARMOR HUD

Display equipped armor.

Requirements:
- Show armor icons.
- Show durability.
- Optional durability percentages.
- Update when armor changes.
- Horizontal and vertical layouts.

Settings:
- Position.
- Icon size.
- Durability display.
- Background.
- Custom colors.

D. POTION HUD

Display active potion effects.

Requirements:
- Potion effect icons.
- Effect names.
- Remaining duration.
- Update when effects change.
- Support multiple active effects.

Settings:
- Position.
- Icon size.
- Show/hide names.
- Show/hide timers.
- Horizontal/vertical layout.

GENERAL HUD SETTINGS:

- Drag-and-drop positioning.
- Snap-to-screen-edge support.
- Scale adjustment.
- Background opacity.
- Text color.
- HUD spacing.
- Reset-position button.

Prevent HUD elements from overlapping unnecessarily.

==================================================
5. PERFORMANCE MODULES
==================================================

Performance is one of the most important parts of Butter Client.

The mod must remain lightweight and avoid unnecessary CPU, GPU, and memory usage.

A. NO VISION RENDER

Create a rendering optimization module named:

NO VISION RENDER

Purpose:

Avoid rendering entities that are outside the active camera's visible view.

Requirements:

- Use the actual active render camera.
- Check whether entities can contribute to the visible scene.
- Skip unnecessary entity rendering.
- Support first-person and third-person camera modes.
- Correctly support F5 third-person view.
- Render entities behind the player's character when they are visible to the third-person camera.
- Do not use the player's facing direction as the only visibility test.
- Handle camera rotation and movement correctly.
- Avoid unnecessary repeated visibility calculations.
- Include an enable/disable setting.

IMPORTANT TECHNICAL REQUIREMENTS:

The visibility calculation must use the actual rendering camera's position and orientation.

In F5 mode, the camera moves away from the player. Therefore, visibility must be calculated from the camera, not from the player's position or facing direction.

Do not hide entities that are actually visible on the screen.

Only skip unnecessary rendering.

NEVER stop:
- Entity ticking.
- Entity AI.
- Entity movement.
- Networking.
- Collision.
- Game logic.

Do not break multiplayer functionality or compatibility with other rendering mods.

B. ADDITIONAL OPTIMIZATIONS

Explore optional client-side optimizations:

- Reduce unnecessary rendering work.
- Optimize HUD update scheduling.
- Cache reusable display information.
- Avoid repeated calculations when values have not changed.
- Avoid unnecessary object allocations.
- Optimize event handling.
- Reduce unnecessary background processing.
- Add configurable visual effects.

Every optimization must have a real implementation.

Do not add fake performance settings.

Do not unnecessarily duplicate major optimization mods.

==================================================
6. UTILITY MODULES
==================================================

Create a modular system that can support additional features.

Possible modules:

- Custom Crosshair.
- Fullbright.
- Coordinates HUD.
- Ping HUD.
- Direction HUD.
- Custom Hit Color.
- Low Fire.
- Custom Nametag Display.
- Screenshot Utility.

Each module should have an enable/disable toggle and its own configuration page when applicable.

==================================================
7. CONFIGURATION SYSTEM
==================================================

Create a centralized configuration system.

Requirements:

- Save settings locally.
- Automatically load settings when Minecraft starts.
- Save changes automatically.
- Use safe defaults when settings are missing.
- Handle corrupted configuration files without crashing.
- Keep module settings separate.
- Allow resetting individual modules.
- Include a reset-all-settings option.
- Save keybind settings.
- Preserve settings after restarting Minecraft.

Keybinds must integrate properly with Minecraft's Controls menu wherever applicable.

==================================================
8. CODE QUALITY AND OPTIMIZATION
==================================================

The code must be clean, modular, and maintainable.

Requirements:

- Use event-driven updates where possible.
- Avoid expensive operations every frame.
- Avoid unnecessary rendering calls.
- Avoid memory leaks.
- Avoid excessive temporary objects.
- Avoid unnecessary threads.
- Separate rendering logic from module logic.
- Keep modules independent.
- Use appropriate Fabric APIs.
- Handle invalid settings safely.
- Maintain compatibility with multiplayer.

Do not sacrifice stability for tiny performance improvements.

==================================================
9. VISUAL IDENTITY
==================================================

Butter Client must have a recognizable identity.

Color palette:

- Primary: Purple.
- Secondary: Black.
- Background: Very dark purple/black.
- Accent: Bright purple.
- Main text: White.
- Secondary text: Light gray.

Branding:

Name: Butter Client
Logo: ๐Ÿงˆ
Author: MineAura

The menu should look like a professional Minecraft client modification.

Use:
- Consistent spacing.
- Readable typography.
- Clean module cards.
- Smooth navigation.
- Organized configuration pages.
- Consistent buttons and toggles.

==================================================
10. PROJECT STRUCTURE
==================================================

Use a modular project architecture.

Suggested components:

- Main mod initializer.
- Client initializer.
- Screen and menu management.
- Keybind registration.
- Configuration management.
- HUD framework.
- Individual HUD modules.
- Zoom module.
- Performance modules.
- Utility modules.
- Shared rendering utilities.

Do not put all functionality into one enormous Java or Kotlin file.

Use the language and APIs compatible with the selected Fabric development environment.

==================================================
11. BUILD AND TESTING
==================================================

Target Minecraft 26.2 and Fabric API 0.154.

Before declaring the mod complete:

1. Verify dependency compatibility.
2. Verify Gradle configuration.
3. Compile the project.
4. Fix all compilation errors.
5. Launch Minecraft with the mod.
6. Test the Right Shift menu keybind.
7. Test changing the menu keybind.
8. Test every module configuration screen.
9. Test Zoom in first-person and third-person.
10. Test all HUD elements.
11. Test No Vision Render in first-person.
12. Test No Vision Render in F5.
13. Check compatibility with other rendering mods.
14. Check that settings persist after restarting Minecraft.

Never claim a feature works unless it has actually been implemented and tested.

==================================================
12. DEVELOPMENT RULES
==================================================

- Build an original implementation.
- Use other Minecraft clients only as inspiration.
- Do not copy substantial source code from other mods without permission and license compliance.
- Do not create fake buttons.
- Do not create settings that do nothing.
- Do not leave unfinished features while claiming they are complete.
- Do not generate the entire project as one enormous untested code dump.
- Build incrementally.
- Compile and test after each major development stage.
- Fix errors before adding more modules.
- Keep the initial build lightweight.
- Prioritize a working foundation over many unfinished features.

==================================================
FINAL GOAL
==================================================

Create BUTTER CLIENT, a lightweight, highly optimized, customizable Minecraft 26.2 Fabric client-side mod by MineAura.

It must combine:

- A beautiful purple-and-black configuration menu.
- Butter emoji branding.
- Right Shift menu keybind.
- Customizable keybinds.
- Advanced Zoom module.
- FPS HUD.
- CPS HUD.
- Armor HUD.
- Potion HUD.
- Useful client-side utilities.
- No Vision Render optimization.
- Persistent configuration settings.
- Clean, modular, optimized code.

The final result should feel polished, stable, customizable, and efficient, including on lower-end computers.
Kodari AI
KodariWed at 2:21 pm 16

Created a Butter Client foundation targeting Fabric API 0.161.0+26.2, with a Right Shift menu, zoom, FPS and CPS counters, armor display, coordinates, and saved settings.

It is not yet the complete requested client: potion HUD, drag-and-drop layout, several zoom and HUD options, reset controls, and a separate No Vision Render module are missing. Vanilla already performs frustum culling, so I did not add a duplicate performance toggle.

Compilation, in-game behavior, dependency compatibility, and multiplayer rendering compatibility remain unverified.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
14 425
src/client/java/dev/mineaura/butter/client/ButterClient.java
package dev.mineaura.butter.client;

import com.mojang.blaze3d.platform.InputConstants;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keymapping.v1.KeyMappingHelper;
import net.minecraft.client.KeyMapping;
import net.minecraft.resources.Identifier;
import org.lwjgl.glfw.GLFW;

public final class ButterClient implements ClientModInitializer {
    public static KeyMapping menuKey, zoomKey;
    public static boolean zoomActive;
    private static boolean toggled;
    private static int level;
    private static float current = 1;
    private static long lastFrame;

    @Override
    public void onInitializeClient() {
        ButterConfig.load();
        level = ButterConfig.zoomLevel;
        KeyMapping.Category category = KeyMapping.Category.register(Identifier.fromNamespaceAndPath("butterclient", "controls"));
        menuKey = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.butterclient.menu", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_RIGHT_SHIFT, category));
        zoomKey = KeyMappingHelper.registerKeyMapping(new KeyMapping("key.butterclient.zoom", InputConstants.Type.KEYSYM, GLFW.GLFW_KEY_C, category));
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (menuKey.consumeClick()) if (client.gui.screen() == null) client.gui.setScreen(new ButterMenu());
            while (zoomKey.consumeClick()) if (ButterConfig.zoomToggle && client.gui.screen() == null) toggled = !toggled;
            if (!ButterConfig.zoom || client.player == null) toggled = false;
            zoomActive = ButterConfig.zoom && client.player != null && client.gui.screen() == null && (ButterConfig.zoomToggle ? toggled : zoomKey.isDown());
        });
        ButterHud.register();
    }

    public static float zoomFov(float fov) {
        long now = System.nanoTime();
        double elapsed = lastFrame == 0 ? 0 : Math.min(0.1, (now - lastFrame) / 1_000_000_000.0);
        lastFrame = now;
        float target = zoomActive ? Math.clamp(level, 2, ButterConfig.zoomMax) : 1;
        if (!ButterConfig.zoomSmooth) current = target;
        else current += (target - current) * (float)(1 - Math.exp(-ButterConfig.zoomSpeed * elapsed));
        return fov / Math.max(1, current);
    }

    public static boolean scroll(double amount) {
        if (!zoomActive || !ButterConfig.zoomScroll || amount == 0) return false;
        level = Math.clamp(level + (amount > 0 ? 1 : -1), 2, ButterConfig.zoomMax);
        return true;
    }

    public static void resetZoomLevel() { level = Math.clamp(ButterConfig.zoomLevel, 2, ButterConfig.zoomMax); }
}