sadperson_verysad_73283

adds source spaghetti code's bhop mechanic(bug) that does the bhop stuff its known for, and a grappler to quickly grapple to blocks and a movement system included of dashes, sliding and parrying things to launch urself away from them/redirect projectiles. Dashing should have a cooldown and 3 charges, 0.79 second for each charge to recharge and the grappler should also have a cooldown with two charges, both charging every 1.2 second. R to grapple, Q to dash, P to parry and g to slide, if these keys are set to any other keys in vanilla minecraft(1.21.11,the version i picked), then change them to any other, be fast with the mod making pls and also make it so that the faster a player goes using bhop ot dashing or grappling the more damage whatever weapon they are holding does. The mod should be named "ribi's grapplers n stuff"

Kodari AI
KodariJun 23 at 4:30 pm 27

I’ll create a movement mechanics mod with bunny hopping, grappling, dashing, sliding, and parrying.

RibisGrapplersNStuff
Advanced movement mechanics mod featuring Source-engine bhop, dual-charge grappling hook, triple-charge dash system, sliding, and projectile parrying. All movement abilities have individual cooldowns and charges. Movement speed dynamically scales melee damage - the faster you move, the harder you hit. Includes client-side prediction and smooth server synchronization for responsive gameplay.

I’ll create a movement mechanics mod with bunny hopping, grappling, dashing, sliding, and parrying. This needs Cardinal Components for player state, custom networking, keybindings, and mixins.

Done! I’ve created a complete movement mechanics mod with:

Core Features:

  • Bunny Hopping - Jump velocity increases when moving fast horizontally (Source-style bhop)

  • Grappling Hook - R key, 2 charges, 1.2s recharge, pulls you toward blocks up to 50 blocks away

  • Dash - X key (changed from Q to avoid vanilla drop item conflict), 3 charges, 0.79s recharge, quick burst in movement direction

  • Slide - G key (hold), increases speed while crouching

  • Parry - P key, 6-tick window to deflect projectiles and knock back attackers

  • Speed-Based Damage - Melee damage scales up to 3x based on movement speed

Technical Implementation:

  • Cardinal Components for persistent player state (charges, cooldowns)

  • Custom networking with 4 C2S packets (dash, grapple, slide, parry) and 1 S2C sync packet

  • Keybindings using 1.21.9+ API (Identifier-based categories)

  • Mixins for jump velocity (bhop), damage scaling, and parry mechanics

  • Charge recharge system that ticks down cooldowns and restores charges

Key Changes from Request:

  • Dash key changed from Q to X (Q conflicts with vanilla drop item)

  • All other keys match: R (grapple), P (parry), G (slide)

The mod is ready to compile and test!

sadperson_verysad_73283

before i compile it add a few small changes, make it so that the grapple is an player imbedded item anyone can use(i mean a ability every player who plays the mod gets and can use by pressin that key). And add a bashing mechanic that has a cooldown of 2.4 seconds, when ramming straight into an enemy while holding J the player enters a ramming state where the faster the player is, the more knockback and damage the ramming does, doesnt cancell out the player's momentum if they bash into someone and the mechanics, dashing, sliding and grappling should have vfx when using it so the player feels the weight of what they are doing cuz its kewl. Parrying should have impact frames and should give the player the ability to parry off anything that isnt a mob/player like how rocket jumping works.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
manifest.kod
settings.gradle
Code
20 765
src/main/java/com/ribi/grappler/RibisGrapplersNStuff.java
package com.ribi.grappler;

import com.ribi.grappler.component.ModComponents;
import com.ribi.grappler.handler.MovementHandler;
import com.ribi.grappler.network.*;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.networking.v1.PayloadTypeRegistry;
import net.fabricmc.fabric.api.networking.v1.ServerPlayNetworking;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RibisGrapplersNStuff implements ModInitializer {
	public static final String MOD_ID = "ribisgrapplersnstuff";
	public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

	@Override
	public void onInitialize() {
		PayloadTypeRegistry.playC2S().register(DashPayload.ID, DashPayload.CODEC);
		PayloadTypeRegistry.playC2S().register(GrapplePayload.ID, GrapplePayload.CODEC);
		PayloadTypeRegistry.playC2S().register(SlidePayload.ID, SlidePayload.CODEC);
		PayloadTypeRegistry.playC2S().register(ParryPayload.ID, ParryPayload.CODEC);
		PayloadTypeRegistry.playS2C().register(SyncMovementPayload.ID, SyncMovementPayload.CODEC);

		ServerPlayNetworking.registerGlobalReceiver(DashPayload.ID, (payload, context) -> {
			MovementHandler.handleDash(context.player());
		});

		ServerPlayNetworking.registerGlobalReceiver(GrapplePayload.ID, (payload, context) -> {
			MovementHandler.handleGrapple(context.player());
		});

		ServerPlayNetworking.registerGlobalReceiver(SlidePayload.ID, (payload, context) -> {
			MovementHandler.handleSlide(context.player(), payload.active());
		});

		ServerPlayNetworking.registerGlobalReceiver(ParryPayload.ID, (payload, context) -> {
			MovementHandler.handleParry(context.player());
		});

		ServerTickEvents.END_WORLD_TICK.register(world -> {
			world.getPlayers().forEach(player -> ModComponents.MOVEMENT.get(player).tick());
		});

		LOGGER.info("Ribi's Grapplers N Stuff initialized!");
	}
}