proguyz97.

Create a complete, playable Minecraft Java Edition 1.21.11 Fabric mod called “Avengers: Superpowers” featuring the six original Avengers:

  1. IRON MAN
  2. CAPTAIN AMERICA
  3. THOR
  4. HULK
  5. BLACK WIDOW
  6. HAWKEYE

CORE REQUIREMENTS

  • Minecraft Java Edition: 1.21.11
  • Mod Loader: Fabric
  • Use the correct Fabric API and mappings for Minecraft 1.21.11.
  • Do NOT use Forge or NeoForge.
  • The mod must work in both single-player and multiplayer.
  • Create proper client/server networking.
  • All abilities must have configurable cooldowns and damage.
  • Do not permanently destroy terrain with abilities by default.
  • Optimize the mod to avoid unnecessary server lag.
  • Create original Minecraft-style textures, models, particles and sounds rather than directly copying movie assets.

---

  1. IRON MAN 🤖

Create an equipable Iron Man armor system.

Armor

  • Iron Man Helmet
  • Iron Man Chestplate
  • Iron Man Leggings
  • Iron Man Boots

Wearing the complete armor unlocks Iron Man abilities.

Abilities

Repulsor Blast

  • Shoot an energy projectile from the player's hand.
  • Deals configurable damage.
  • Has a short cooldown.
  • Create an energy particle effect.

Unibeam

  • Charge a powerful beam from the chest.
  • Beam damages enemies in front of the player.
  • Requires energy.
  • Long cooldown.

Flight

  • Allow controlled flight while the complete armor is equipped.
  • Add flight particles.
  • Flight consumes energy.

Rocket Boost

  • Launch the player forward/upward at high speed.
  • Create fire/energy particles.
  • Has cooldown.

Super Punch

  • Powerful melee attack with increased knockback.

Iron Man Energy

Create an energy system:

  • Maximum energy: configurable.
  • Abilities consume energy.
  • Energy regenerates automatically.

---

  1. CAPTAIN AMERICA 🛡️

Create a throwable Captain America shield.

Shield Abilities

Shield Throw

  • Throw the shield at enemies.
  • Damages multiple nearby targets.
  • Shield returns automatically to the player.

Shield Block

  • Holding the shield provides strong projectile protection.

Shield Bash

  • Melee attack with high knockback.

Shield Ricochet

  • Thrown shield can bounce between multiple nearby enemies.

Super Soldier

  • Increased strength.
  • Increased speed.
  • Increased jump ability.
  • Slightly increased resistance.

Shield

Create a unique shield item with:

  • Custom model.
  • Custom texture.
  • Durability.
  • Throwing animation/effect.

---

  1. THOR ⚡

Create Thor's weapon:

Mjolnir

Abilities

Mjolnir Throw

  • Throw Mjolnir toward a target.
  • It automatically returns to Thor.

Lightning Strike

  • Target a location and summon lightning.
  • Configurable damage and cooldown.

Thunder Slam

  • Slam Mjolnir into the ground.
  • Create an area shockwave.
  • Knock back nearby mobs.

Storm Call

  • Temporarily create a thunderstorm around the player.
  • Lightning effects appear around targeted enemies.

Flight

  • Allow Thor to fly while holding Mjolnir.
  • Add lightning particles.

Lightning Resistance

  • Thor cannot be harmed by normal lightning.

---

  1. HULK 💚

Create a Hulk transformation system.

Transformation

Add a keybind and command:

"/avengers transform"

When activated:

  • Player transforms into Hulk.
  • Increase player size if technically feasible.
  • Increase maximum health.
  • Increase attack damage.
  • Increase knockback resistance.
  • Increase jump strength.

Hulk Abilities

Hulk Smash

  • Powerful ground attack.
  • Creates a shockwave.
  • Knocks nearby enemies away.

Hulk Jump

  • Massive jump.
  • Landing creates an impact effect.

Hulk Punch

  • Extremely powerful melee attack.

Rage Mode

  • Temporarily increases Hulk's power.
  • Has a cooldown.

Terrain Protection

Hulk abilities must NOT automatically destroy large amounts of terrain.

Make terrain destruction:

  • Disabled by default.
  • Configurable in the mod config.

---

  1. BLACK WIDOW 🕷️

Create Black Widow as a fast stealth-based hero.

Abilities

Widow's Bite

  • Special melee/electric attack.
  • Temporarily slows or stuns enemies.

Stealth

  • Temporary invisibility.
  • Footstep/visual effects reduced where possible.
  • Has cooldown.

Acrobatics

  • Increased movement speed.
  • Increased jump height.
  • Reduced fall damage.

Widow's Grappling Gadget

  • Pull the player toward a targeted location if technically feasible.

Smoke Bomb

  • Create a temporary smoke cloud.
  • Nearby enemies receive blindness/slowness effects.
  • Non-destructive.

Enhanced Combat

  • Increased melee damage.
  • Increased critical-hit effectiveness.

---

  1. HAWKEYE 🏹

Create a powerful Hawkeye bow system.

Hawkeye Bow

Create a custom bow called:

Hawkeye's Bow

Arrow Types

Explosive Arrow

  • Creates a small configurable explosion.
  • Terrain damage disabled by default.

Shock Arrow

  • Damages and briefly stuns/slows the target.

Grappling Arrow

  • Pulls the player toward the arrow's location if technically feasible.

Smoke Arrow

  • Creates a temporary smoke cloud.

Normal Precision Arrow

  • Extremely accurate and increased damage.

Hawkeye Passive

  • Increased projectile accuracy.
  • Increased ranged damage.
  • Optional slow-motion aiming effect if technically feasible.

---

HERO SELECTION SYSTEM 🦸

Create a complete hero selection INVENTORY GUI.

Command:

"/avengers"

The INVENTORY GUI must display:

  • Iron Man
  • Captain America
  • Thor
  • Hulk
  • Black Widow
  • Hawkeye

Each hero button should show:

  • Hero name
  • Description
  • Main powers
  • Selected/unselected status

When the player selects a hero:

  • Save the hero permanently.
  • Unlock only that hero's abilities.
  • Prevent other heroes' abilities from being used.

Admin command:

"/avengers give <player> <hero>"

Reset command:

"/avengers reset"

---

KEYBINDS 🎮

Create configurable keybindings:

  • Open Avengers INVENTORY GUI
  • Ability 1
  • Ability 2
  • Ability 3
  • Ultimate
  • Transformation
  • Special weapon ability

Do NOT hard-code keyboard keys.

---

COOLDOWN & HUD SYSTEM

Create a clean Minecraft-style HUD showing:

Hero: Iron Man Energy: 75/100 Repulsor: READY Unibeam: 12s Flight: READY

The HUD must automatically change according to the selected hero.

---

CUSTOM ITEMS

Add unique items:

  • Iron Man Armor
  • Iron Man Energy Core
  • Captain America's Shield
  • Mjolnir
  • Hulk transformation item/system
  • Black Widow's Bite
  • Black Widow Gadget
  • Hawkeye's Bow
  • Special Arrow variants

Every item should have:

  • Custom name
  • Custom tooltip
  • Custom Minecraft-style texture
  • Recipe where appropriate

---

RECIPES ⚒️

Create balanced crafting recipes.

Example:

Iron Man:

  • Advanced materials
  • Iron
  • Redstone
  • Copper
  • Diamond

Captain America:

  • Shield crafted from iron + rare materials.

Thor:

  • Mjolnir should require a difficult recipe.

Hawkeye:

  • Bow and special arrows.

Black Widow:

  • Gadgets require redstone and other technical materials.

Hulk:

  • Transformation should be difficult to obtain.

Do not make all powers available immediately in a new survival world.

---

VISUAL EFFECTS ✨

Each hero should have unique Minecraft-style effects:

Iron Man:

  • Red/gold energy particles
  • Repulsor effects
  • Rocket particles

Captain America:

  • Shield impact particles

Thor:

  • Lightning particles
  • Thunder effects

Hulk:

  • Green transformation particles
  • Shockwave effects

Black Widow:

  • Electric particles
  • Smoke effects

Hawkeye:

  • Colored arrow trails
  • Special projectile particles

---

CONFIGURATION

Create a configuration file allowing server owners to change:

  • Ability damage
  • Cooldowns
  • Energy consumption
  • Maximum energy
  • Flight
  • PvP damage
  • Terrain destruction
  • Transformation duration
  • Arrow effects
  • Ability permissions

---

PERFORMANCE & MULTIPLAYER

IMPORTANT:

  • Abilities must be server-authoritative.
  • Correctly synchronize client/server state.
  • Do not trust client-side ability activation.
  • Avoid excessive particles and entities.
  • Clean up temporary entities/effects.
  • Make the mod compatible with multiplayer servers.
  • Avoid constant expensive tick calculations.

---

PROJECT STRUCTURE

Generate a complete Fabric project containing:

  • "fabric.mod.json"
  • Gradle configuration
  • Java source
  • Client code
  • Server code
  • Networking
  • Items
  • Armor
  • Weapons
  • Projectiles
  • INVENTORY GUI
  • HUD
  • Keybindings
  • Commands
  • Config
  • Recipes
  • Tags
  • Models
  • Textures
  • Particles
  • Sounds
  • Data files
  • README

---

FINAL BUILD REQUIREMENT

After generating the project:

  1. Check all Java files for compilation errors.
  2. Check Fabric API compatibility with Minecraft 1.21.11.
  3. Check all resource paths.
  4. Check item registrations.
  5. Check networking.
  6. Check commands.
  7. Check keybindings.
  8. Check INVENTORY GUI.
  9. Build the project successfully.
  10. Fix all compilation errors.
  11. If compilation is supported, output the final ".jar".

The final result should feel like a polished Minecraft Avengers superpower mod with six playable heroes, unique abilities, custom items, INVENTORY GUI, HUD, cooldowns, energy systems, multiplayer support and balanced survival gameplay.

Kodari AI
KodariAug 15 at 11:34 am 4
AvengersSuperpowers
Adds six playable Avengers heroes to Minecraft Fabric 1.21.11. Players select a hero via an inventory GUI, unlocking unique abilities: Iron Man's energy-powered armor with repulsors and flight, Captain America's throwable shield, Thor's Mjolnir with lightning strikes, Hulk transformation with smash attacks, Black Widow's stealth and gadgets, and Hawkeye's specialized arrows. Features server-authoritative networking, configurable cooldowns/damage, custom items, textures, particles, sounds, recipes, HUD display, and keybindings. Includes admin commands for hero assignment and reset, with balanced survival progression and multiplayer optimization.
  1. Build the Fabric 1.21.11 project scaffold and resources.

  2. Implement server-authoritative hero data, energy, cooldowns, commands, networking, abilities, items, and recipes.

  3. Add client keybinds, hero-selection inventory screen, and dynamic HUD.

  4. Add custom models/textures, language data, configuration, and README.

Implemented the initial playable Fabric 1.21.11 Avengers mod project.

  1. Project setup

    • Fabric Loom 1.14

    • Minecraft 1.21.11

    • Yarn mappings 1.21.11+build.5

    • Fabric Loader/API versions configured

    • Split client/common source sets

  2. Hero systems

    • Iron Man

    • Captain America

    • Thor

    • Hulk

    • Black Widow

    • Hawkeye

    • Persistent hero selection

    • Energy and cooldown tracking

    • Server-authoritative ability validation

  3. Abilities

    • Repulsor and energy attacks

    • Iron Man armor flight and rocket boost

    • Captain America shield abilities

    • Thor lightning and flight

    • Hulk transformation, smash, jump, and rage abilities

    • Black Widow stealth, acrobatics, smoke, and electric attacks

    • Hawkeye precision and area attacks

  4. Commands and networking

    • /avengers

    • /avengers transform

    • /avengers reset

    • /avengers give <player> <hero>

    • Custom Fabric CustomPayload networking

    • Server-to-client HUD state synchronization

  5. Client features

    • Configurable keybindings

    • Hero-selection screen

    • Dynamic energy/cooldown HUD

    • Client/server ability requests

  6. Content

    • Iron Man armor set

    • Energy Core

    • Captain America shield

    • Mjolnir

    • Hulk transformation token

    • Black Widow gadgets

    • Hawkeye bow and special arrows

    • Recipes

    • Item models and mandatory 1.21.11 item definitions

    • Language translations

    • README

    • JSON configuration file generation

Terrain destruction remains disabled by default, and the project uses original namespaced resources with vanilla-style fallback textures.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
README.md
settings.gradle
Code
62 860
src/main/java/com/kodari/avengers/AvengersMod.java
package com.kodari.avengers;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.event.lifecycle.v1.ServerTickEvents;
import net.fabricmc.fabric.api.event.player.AttackEntityCallback;
import net.fabricmc.fabric.api.event.player.UseItemCallback;
import net.minecraft.entity.LivingEntity;
import net.minecraft.item.Item;
import net.minecraft.util.ActionResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

    @Override
    public void onInitialize() {
        AvengersConfig.load();
        AvengersItems.initialize();
        AvengersItemGroup.initialize();
        AvengersNetworking.initialize();
        AvengersCommands.initialize();

        UseItemCallback.EVENT.register((player, world, hand) -> {
            if (world.isClient()) return ActionResult.PASS;
            Item item = player.getStackInHand(hand).getItem();
            int action = item == AvengersItems.CAPTAIN_SHIELD ? AvengersNetworking.ABILITY_ONE
                    : item == AvengersItems.MJOLNIR ? AvengersNetworking.ABILITY_ONE
                    : item == AvengersItems.WIDOW_BITE ? AvengersNetworking.ABILITY_ONE
                    : item == AvengersItems.WIDOW_GADGET ? AvengersNetworking.ABILITY_THREE
                    : item == AvengersItems.HULK_TOKEN ? AvengersNetworking.TRANSFORM : -1;
            return action < 0 || !(player instanceof net.minecraft.server.network.ServerPlayerEntity serverPlayer)
                    || !AvengersAbilities.use(serverPlayer, action) ? ActionResult.PASS : ActionResult.SUCCESS;
        });

        AttackEntityCallback.EVENT.register((player, world, hand, entity, hit) -> {
            if (!world.isClient() && player instanceof net.minecraft.server.network.ServerPlayerEntity serverPlayer && entity instanceof LivingEntity living) {
                AvengersAbilities.onMelee(serverPlayer, living);
            }
            return ActionResult.PASS;
        });

        ServerTickEvents.END_SERVER_TICK.register(server -> {
            for (var player : server.getPlayerManager().getPlayerList()) {
                AvengersAbilities.tick(player);
                if (player.age % 10 == 0) AvengersNetworking.sendState(player);
            }
        });
    }
}