Мурад

Doctor Doom Armor Mod — Requirements

Minecraft Version: Java Edition 1.21.1 Mod Loader: Minecraft Forge 52.x Mod Name: Doctor Doom Armor

  1. Doctor Doom Armor

Add a complete set of Doctor Doom armor, including a helmet, chestplate, leggings, and boots.

When the player wears the full set, they gain special powers and enhanced abilities.

Abilities and Controls

* Z — Energy Blast: Shoot powerful energy balls at enemies and targets. * X — Green Laser: Fire a continuous green laser beam from the player’s hands. * F — Green Shield: Activate a powerful green energy shield that protects the player from incoming damage. * C — Summon Doombots: Summon robotic Doombots that fight alongside the player and attack hostile mobs and enemies.

Armor Bonuses

* Grant enhanced strength, resistance, speed, and other appropriate superhuman abilities. * Allow the player to fly while wearing the complete armor set. * Make the armor feel powerful and suitable for Doctor Doom.

Kodari AI
KodariOct 25 at 11:42 pm 4
DoomArmorSuit
Adds a complete Doctor Doom armor set with helmet, chestplate, leggings, and boots. Wearing the full set grants enhanced strength, resistance, speed, and flight. Press Z to fire energy blasts, X for a continuous green laser beam, F to activate a protective green energy shield, and C to summon Doombots that fight alongside the player against hostile mobs. The armor provides superhuman abilities fitting for Doctor Doom, with a powerful and imposing aesthetic.

Plan:

  1. Set up a Forge 52.x / Minecraft 1.21.1 Java 21 mod project.

  2. Add registered Doom armor and full-set passive bonuses, including flight.

  3. Add server-handled Z/X/F/C abilities and supporting project metadata.

Created the Forge 52.x / Minecraft 1.21.1 mod project with the four-piece armor set, full-set bonuses and flight, plus Z energy blasts, a sustained X laser, an F damage-blocking shield, and C summons two allied Doombots.

The armor currently uses vanilla Netherite visuals, and Doombots are named Iron Golems. To make custom Doom textures or models, enable Generation in this project’s settings, or at https://kodari.ai/settings?tab=features.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
15 540
src/main/java/com/kodari/doctordoom/DoctorDoomArmor.java
package com.kodari.doctordoom;

import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.item.ArmorItem;
import net.minecraft.world.item.ArmorMaterial;
import net.minecraft.world.item.CreativeModeTabs;
import net.minecraft.world.item.Item;
import net.minecraft.world.item.Items;
import net.minecraft.world.item.crafting.Ingredient;
import net.minecraftforge.event.BuildCreativeModeTabContentsEvent;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;
import net.minecraftforge.registries.DeferredRegister;
import net.minecraftforge.registries.RegistryObject;

import java.util.EnumMap;
import java.util.List;
import java.util.Map;

@Mod(DoctorDoomArmor.MOD_ID)
public final class DoctorDoomArmor {
    public static final String MOD_ID = "doctor_doom_armor";
    private static final Map<ArmorItem.Type, Integer> ARMOR_DEFENSE = createDefenseMap();
    public static final ArmorMaterial DOOM_MATERIAL = new ArmorMaterial(
            ARMOR_DEFENSE,
            25,
            SoundEvents.ARMOR_EQUIP_NETHERITE,
            () -> Ingredient.of(Items.NETHERITE_INGOT),
            List.of(new ArmorMaterial.Layer(ResourceLocation.fromNamespaceAndPath("minecraft", "netherite"))),
            4.0F,
            0.25F
    );

    private static final DeferredRegister<Item> ITEMS = DeferredRegister.create(Registries.ITEM, MOD_ID);

    public static final RegistryObject<Item> DOOM_HELMET = ITEMS.register("doom_helmet",
            () -> new ArmorItem(DOOM_MATERIAL, ArmorItem.Type.HELMET, new Item.Properties().durability(500)));
    public static final RegistryObject<Item> DOOM_CHESTPLATE = ITEMS.register("doom_chestplate",
            () -> new ArmorItem(DOOM_MATERIAL, ArmorItem.Type.CHESTPLATE, new Item.Properties().durability(500)));
    public static final RegistryObject<Item> DOOM_LEGGINGS = ITEMS.register("doom_leggings",
            () -> new ArmorItem(DOOM_MATERIAL, ArmorItem.Type.LEGGINGS, new Item.Properties().durability(500)));
    public static final RegistryObject<Item> DOOM_BOOTS = ITEMS.register("doom_boots",
            () -> new ArmorItem(DOOM_MATERIAL, ArmorItem.Type.BOOTS, new Item.Properties().durability(500)));

    public DoctorDoomArmor() {
        IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
        ITEMS.register(modEventBus);
        modEventBus.addListener(this::addCreativeItems);
        NetworkHandler.register();
    }

    private static Map<ArmorItem.Type, Integer> createDefenseMap() {
        Map<ArmorItem.Type, Integer> defense = new EnumMap<>(ArmorItem.Type.class);
        defense.put(ArmorItem.Type.HELMET, 4);
        defense.put(ArmorItem.Type.CHESTPLATE, 10);
        defense.put(ArmorItem.Type.LEGGINGS, 8);
        defense.put(ArmorItem.Type.BOOTS, 4);
        return defense;
    }

    private void addCreativeItems(BuildCreativeModeTabContentsEvent event) {
        if (event.getTabKey() == CreativeModeTabs.COMBAT) {
            event.accept(DOOM_HELMET);
            event.accept(DOOM_CHESTPLATE);
            event.accept(DOOM_LEGGINGS);
            event.accept(DOOM_BOOTS);
        }
    }
}