nauqer_mainerrr

can you make a minecraft mod so when i enable it thru keybind it will keep spam jumping every 0.001s (basically spam jumping will make my glide if im wearing elytra) so yeah make it correctly please for versions 1.21.4-1.21.11

Kodari AI
KodariNov 11 at 7:31 am 2
ElytraAutoJump
A Fabric mod for Minecraft 1.21.4-1.21.11 that adds a toggleable keybind to automatically spam jump every 0.001 seconds while enabled. When wearing an elytra, this rapid jumping triggers the glide mechanic, allowing continuous flight without manual input. The mod registers a custom keybinding, tracks its state, and sends jump packets at the specified interval while active. Includes client-side configuration for keybind customization and visual feedback via chat messages when toggled on or off. Designed for seamless integration with existing elytra mechanics for effortless sustained gliding.

This project targets Fabric 1.21.11. Supporting 1.21.4 requires a separate project; Kodari supports both versions.

Switch to Fabric 1.21.4

nauqer_mainerrr

alr then just make it for 1.21.11

Kodari AI
KodariNov 11 at 7:37 am 2
  • Add a client-side toggle key for automatic jumping and Elytra activation.

  • Run it once per game tick—the fastest rate Minecraft’s movement system can use.

Created the Fabric 1.21.11 mod. Press G to toggle auto-jump; you can change the key in Controls. Wear an Elytra to deploy it automatically while airborne.

Minecraft processes movement in ticks, so it runs up to once per tick—not every 0.001 seconds.

nauqer_mainerrr

its a bit too fast make it so in 1 second it presses 2 space bar keys (for jump) then when after 2 again 2 space bar then again after 2 seconds

Kodari AI
KodariNov 11 at 9:38 am 1
  • Send two jump attempts half a second apart, then repeat every two seconds.

  • Reset the timing when toggled or paused by a screen.

Changed the timing to two jump attempts half a second apart, repeating every two seconds.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
6 143
src/client/java/com/kodari/elytraautojump/ElytraAutoJumpClient.java
package com.kodari.elytraautojump;

import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.event.lifecycle.v1.ClientTickEvents;
import net.fabricmc.fabric.api.client.keybinding.v1.KeyBindingHelper;
import net.minecraft.client.option.KeyBinding;
import net.minecraft.client.util.InputUtil;
import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket;
import net.minecraft.text.Text;
import org.lwjgl.glfw.GLFW;

public class ElytraAutoJumpClient implements ClientModInitializer {
    private boolean enabled;
    private int cycleTick;

    @Override
    public void onInitializeClient() {
        KeyBinding toggle = KeyBindingHelper.registerKeyBinding(new KeyBinding(
                "key.elytra_auto_jump.toggle", InputUtil.Type.KEYSYM, GLFW.GLFW_KEY_G, KeyBinding.Category.MISC));

        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            while (toggle.wasPressed()) {
                enabled = !enabled;
                cycleTick = 0;
                if (client.player != null) {
                    client.player.sendMessage(Text.translatable(enabled
                            ? "message.elytra_auto_jump.enabled"
                            : "message.elytra_auto_jump.disabled"), true);
                }
            }

            if (!enabled || client.player == null || client.currentScreen != null) {
                cycleTick = 0;
                return;
            }

            int tick = cycleTick;
            cycleTick = (cycleTick + 1) % 40;
            if (tick != 0 && tick != 10) {
                return;
            }

            var player = client.player;
            if (player.isGliding() || player.getAbilities().flying || player.isClimbing()) {
                return;
            }
            if (player.isOnGround()) {
                player.jump();
            } else if (player.checkGliding()) {
                player.networkHandler.sendPacket(new ClientCommandC2SPacket(
                        player, ClientCommandC2SPacket.Mode.START_FALL_FLYING));
            }
        });
    }
}