valeron 666

Develop a Minecraft 1.16.5 Java Forge mod that enables double jumping, allowing players to perform a second jump while in mid-air. Include configurable jump height, a cooldown period, and options for enabling or disabling the feature for specific players or worlds. Add visual effects like particles to enhance the jumping experience.

Kodari AI
KodariSep 26 at 6:40 am 1
DoubleJumpMod
Forge mod for Minecraft 1.16.5 enabling double jumping with configurable jump height, cooldown period, per-player and per-world toggles, plus particle effects. Players perform a second mid-air jump, with settings adjustable via config file. Includes event handlers for jump detection, cooldown tracking, and visual feedback particles for enhanced gameplay experience.
  1. Set up a Java 8 Forge 1.16.5 project.

  2. Add server-configurable jump rules, cooldown/state handling, packet networking, and particle effects.

  3. Register a client keybind to request the mid-air jump.

Created a Java 8 Forge 1.16.5 double-jump mod. Players press G in mid-air to jump once more per airtime; the jump height and cooldown are configurable, and the server config supports player UUID and dimension allowlists/denylists. Successful jumps emit cloud and critical particles.

valeron 666

Fix the missing required files error and complete the project structure for Forge 1.16.5 so it can be compiled.

Kodari AI
KodariSep 26 at 6:43 am 1
  1. Add Minecraft 1.16.5 resource-pack metadata.

  2. Add the mod’s English keybind translation so the completed resources resolve correctly.

Added the missing Minecraft 1.16.5 pack.mcmeta and the English double-jump keybind translation under assets/doublejump/lang/en_us.json. The project now has the standard Forge metadata and resource structure; I didn’t run a Gradle build.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
13 368
src/main/java/com/kodari/doublejump/DoubleJumpMod.java
package com.kodari.doublejump;

import net.minecraft.util.ResourceLocation;
import net.minecraft.network.NetworkDirection;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.ModLoadingContext;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.config.ModConfig;
import net.minecraftforge.fml.network.NetworkRegistry;
import net.minecraftforge.fml.network.simple.SimpleChannel;

import java.util.Optional;

@Mod(DoubleJumpMod.MOD_ID)
public class DoubleJumpMod {
    public static final String MOD_ID = "doublejump";
    private static final String PROTOCOL_VERSION = "1";
    public static final SimpleChannel NETWORK = NetworkRegistry.newSimpleChannel(
            new ResourceLocation(MOD_ID, "main"),
            () -> PROTOCOL_VERSION,
            PROTOCOL_VERSION::equals,
            PROTOCOL_VERSION::equals
    );

    public DoubleJumpMod() {
        ModLoadingContext.get().registerConfig(ModConfig.Type.SERVER, DoubleJumpConfig.SPEC);
        NETWORK.registerMessage(
                0,
                DoubleJumpPacket.class,
                DoubleJumpPacket::encode,
                DoubleJumpPacket::decode,
                DoubleJumpPacket::handle,
                Optional.of(NetworkDirection.PLAY_TO_SERVER)
        );
        MinecraftForge.EVENT_BUS.register(new DoubleJumpHandler());
    }
}