Juan francisco Maracara Méndez

Hey Kodari, i need a mod that add a Super Powers, super speed, flyght, that shoot laser beams from their eyes, etc., can you help me?

Kodari AI
KodariNov 7 at 8:18 pm 2
SuperPowersMod
A Minecraft Fabric mod that grants players superpowers through a simple keybind menu. Features include super speed, creative-style flight, laser beam eye attacks that damage entities, super jump, and enhanced strength. Powers are toggleable, with configurable cooldowns and energy costs. The mod integrates seamlessly with Fabric API, offering a polished HUD overlay showing active powers and energy levels. Designed for survival and adventure gameplay, it adds a superhero dimension to exploration and combat.
  1. Set up the Fabric 26.3 mod project and its metadata.

  2. Add three playable powers—speed, flight, and an eye-laser—using keybinds with server-side handling.

Created the Fabric 26.3 Super Powers mod with server-handled powers:

  • Z: Super speed for 8 seconds

  • X: Toggle flight

  • C: Fire an eye laser up to 24 blocks, damaging the first target it hits

You can change the keybinds in Minecraft’s Controls settings.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 253
src/client/java/com/kodari/superpowers/client/SuperPowersClient.java
package com.kodari.superpowers.client;

import com.kodari.superpowers.network.PowerPayload;
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.fabricmc.fabric.api.client.networking.v1.ClientPlayNetworking;
import net.minecraft.client.KeyMapping;

public final class SuperPowersClient implements ClientModInitializer {
    private static final KeyMapping SPEED = KeyMappingHelper.registerKeyMapping(new KeyMapping(
            "key.superpowers.speed", InputConstants.Type.KEYBOARD, InputConstants.KEY_Z, KeyMapping.Category.MISC));
    private static final KeyMapping FLIGHT = KeyMappingHelper.registerKeyMapping(new KeyMapping(
            "key.superpowers.flight", InputConstants.Type.KEYBOARD, InputConstants.KEY_X, KeyMapping.Category.MISC));
    private static final KeyMapping LASER = KeyMappingHelper.registerKeyMapping(new KeyMapping(
            "key.superpowers.laser", InputConstants.Type.KEYBOARD, InputConstants.KEY_C, KeyMapping.Category.MISC));

    @Override
    public void onInitializeClient() {
        ClientTickEvents.END_CLIENT_TICK.register(client -> {
            if (client.player == null) {
                return;
            }

            while (SPEED.consumeClick()) {
                ClientPlayNetworking.send(new PowerPayload(PowerPayload.SPEED));
            }
            while (FLIGHT.consumeClick()) {
                ClientPlayNetworking.send(new PowerPayload(PowerPayload.FLIGHT));
            }
            while (LASER.consumeClick()) {
                ClientPlayNetworking.send(new PowerPayload(PowerPayload.LASER));
            }
        });
    }
}