anton

Make a mod with new weapons from Deltarune, 10 weapons, 10 armor, new buildings, effects, defense and damage from weapons and armor, set at your discretion

Kodari AI
KodariOct 14 at 3:11 pm 14
DeltaruneWeaponry
Adds 10 Deltarune-themed weapons and 10 armor pieces with custom stats, effects, and defense values. Introduces new buildings like the Dark Fountain and Castle Town structures. Weapons feature unique abilities such as soul-based damage, healing, and status effects. Armor sets provide set bonuses including increased defense, speed, and elemental resistance. All items are craftable and balanced for survival gameplay.
  1. Register 10 original Dark World weapons and 10 armor pieces with balanced stats, survival recipes, and themed item art.

  2. Add three craftable building plans that place small structures in the world.

  3. Create Fabric 1.20.4 metadata, item models, recipes, and English names.

Created Dark World Arsenal for Fabric 1.20.4: 10 original weapons, 10 armor pieces, and 3 craftable building plans. Weapon hits apply their listed status effect; weapon damage includes the player’s base attack point.

Weapons and crafting

  • Duskfang — 7 damage, Poison; 2 diamonds + stick.

  • Cinderbrand — 7 damage, Wither; iron ingot + blaze rod + stick.

  • Frostbite — 6 damage, Slowness; amethyst shard + diamond + stick.

  • Thornwake — 6 damage, Poison; emerald + iron ingot + stick.

  • Voidreaver — 8 damage, Blindness; obsidian + netherite ingot + stick.

  • Gilded Jester — 5 damage, Hunger; 2 gold ingots + stick.

  • Heartpiercer — 6 damage, Weakness; redstone + diamond + stick.

  • Ruinbreaker — 7 damage, Mining Fatigue; obsidian + iron ingot + stick.

  • Moonlit Edge — 6 damage, Slowness; 2 amethyst shards + stick.

  • Chaos Slicer — 7 damage, Wither; netherite ingot + obsidian + stick.

Armor and crafting

  • Sanguine Hood — chain helmet, 2 defense; 5 leather.

  • Dread Plate — diamond chestplate, 8 defense; 7 diamonds.

  • Rune Greaves — iron leggings, 5 defense; 7 iron ingots.

  • Spectral Boots — chain boots, 1 defense; 4 leather.

  • Heartguard Helm — iron helmet, 2 defense; 5 iron ingots.

  • Thornmail — diamond chestplate, 8 defense; 2 emeralds + 5 iron ingots.

  • Spade Trousers — iron leggings, 5 defense; 7 iron ingots.

  • Cinder Soles — diamond boots, 3 defense; 2 gold ingots + 2 blaze rods.

  • Prism Mantle — netherite chestplate, 8 defense; 7 diamonds + amethyst shard.

  • Dark Diadem — diamond helmet, 3 defense; 5 netherite ingots + amethyst shard.

Weapons and armor use their underlying vanilla material durability and repair ingredients.

Buildings Craft an Ashen Tower Plan with 7 cobblestone, paper, and a stick; a Wayfarer Hall Plan with 7 oak planks, paper, and a stick; or a Starwell Shrine Plan with 7 stone, an amethyst shard, and paper. Use a plan on a block to build in a clear area; it is consumed when placement succeeds.

Five custom 64×64 icons were generated. The remaining items currently use vanilla icon textures because image generation ran out of available credits.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
59 560
src/main/java/com/kodari/darkworldarsenal/DarkWorldArsenal.java
package com.kodari.darkworldarsenal;

import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.entity.effect.StatusEffects;
import net.minecraft.item.ArmorItem;
import net.minecraft.item.ArmorMaterials;
import net.minecraft.item.Item;
import net.minecraft.item.ItemGroup;
import net.minecraft.item.ToolMaterials;
import net.minecraft.registry.Registry;
import net.minecraft.registry.Registries;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.RegistryKeys;
import net.minecraft.util.Identifier;

public class DarkWorldArsenal implements ModInitializer {
    public static final String MOD_ID = "darkworldarsenal";

    private static final Item DUSKFANG = sword("duskfang", ToolMaterials.DIAMOND, 3, -2.4f, StatusEffects.POISON, 60, 0);
    private static final Item CINDERBRAND = sword("cinderbrand", ToolMaterials.IRON, 4, -2.3f, StatusEffects.WITHER, 30, 0);
    private static final Item FROSTBITE = sword("frostbite", ToolMaterials.DIAMOND, 2, -2.4f, StatusEffects.SLOWNESS, 80, 0);
    private static final Item THORNWAKE = sword("thornwake", ToolMaterials.IRON, 3, -2.2f, StatusEffects.POISON, 40, 0);
    private static final Item VOIDREAVER = sword("voidreaver", ToolMaterials.DIAMOND, 4, -2.8f, StatusEffects.BLINDNESS, 40, 0);
    private static final Item GILDED_JESTER = sword("gilded_jester", ToolMaterials.DIAMOND, 1, -1.9f, StatusEffects.HUNGER, 80, 0);
    private static final Item HEARTPIERCER = sword("heartpiercer", ToolMaterials.IRON, 3, -2.7f, StatusEffects.WEAKNESS, 60, 0);
    private static final Item RUINBREAKER = sword("ruinbreaker", ToolMaterials.DIAMOND, 3, -2.9f, StatusEffects.MINING_FATIGUE, 60, 0);
    private static final Item MOONLIT_EDGE = sword("moonlit_edge", ToolMaterials.IRON, 3, -2.5f, StatusEffects.SLOWNESS, 40, 0);
    private static final Item CHAOS_SLICER = sword("chaos_slicer", ToolMaterials.DIAMOND, 3, -2.5f, StatusEffects.WITHER, 20, 0);

    private static final Item SANGUINE_HOOD = armor("sanguine_hood", ArmorMaterials.CHAIN, ArmorItem.Type.HELMET);
    private static final Item DREAD_PLATE = armor("dread_plate", ArmorMaterials.DIAMOND, ArmorItem.Type.CHESTPLATE);
    private static final Item RUNE_GREAVES = armor("rune_greaves", ArmorMaterials.IRON, ArmorItem.Type.LEGGINGS);
    private static final Item SPECTRAL_BOOTS = armor("spectral_boots", ArmorMaterials.CHAIN, ArmorItem.Type.BOOTS);
    private static final Item HEARTGUARD_HELM = armor("heartguard_helm", ArmorMaterials.IRON, ArmorItem.Type.HELMET);
    private static final Item THORNMAIL = armor("thornmail", ArmorMaterials.DIAMOND, ArmorItem.Type.CHESTPLATE);
    private static final Item SPADE_TROUSERS = armor("spade_trousers", ArmorMaterials.IRON, ArmorItem.Type.LEGGINGS);
    private static final Item CINDER_SOLES = armor("cinder_soles", ArmorMaterials.DIAMOND, ArmorItem.Type.BOOTS);
    private static final Item PRISM_MANTLE = armor("prism_mantle", ArmorMaterials.NETHERITE, ArmorItem.Type.CHESTPLATE);
    private static final Item DARK_DIADEM = armor("dark_diadem", ArmorMaterials.DIAMOND, ArmorItem.Type.HELMET);

    private static final Item ASHEN_TOWER_PLAN = register("ashen_tower_plan", new BuildingPlanItem(0));
    private static final Item WAYFARER_HALL_PLAN = register("wayfarer_hall_plan", new BuildingPlanItem(1));
    private static final Item STARWELL_SHRINE_PLAN = register("starwell_shrine_plan", new BuildingPlanItem(2));

    @Override
    public void onInitialize() {
        ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("minecraft", "combat"))).register(entries -> {
            entries.add(DUSKFANG);
            entries.add(CINDERBRAND);
            entries.add(FROSTBITE);
            entries.add(THORNWAKE);
            entries.add(VOIDREAVER);
            entries.add(GILDED_JESTER);
            entries.add(HEARTPIERCER);
            entries.add(RUINBREAKER);
            entries.add(MOONLIT_EDGE);
            entries.add(CHAOS_SLICER);
            entries.add(SANGUINE_HOOD);
            entries.add(DREAD_PLATE);
            entries.add(RUNE_GREAVES);
            entries.add(SPECTRAL_BOOTS);
            entries.add(HEARTGUARD_HELM);
            entries.add(THORNMAIL);
            entries.add(SPADE_TROUSERS);
            entries.add(CINDER_SOLES);
            entries.add(PRISM_MANTLE);
            entries.add(DARK_DIADEM);
        });
        ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("minecraft", "functional_blocks"))).register(entries -> {
            entries.add(ASHEN_TOWER_PLAN);
            entries.add(WAYFARER_HALL_PLAN);
            entries.add(STARWELL_SHRINE_PLAN);
        });
    }

    private static Item sword(String name, net.minecraft.item.ToolMaterial material, int attackDamage, float attackSpeed,
                              net.minecraft.entity.effect.StatusEffect effect, int duration, int amplifier) {
        return register(name, new StatusSwordItem(material, attackDamage, attackSpeed, effect, duration, amplifier, new Item.Settings()));
    }

    private static Item armor(String name, ArmorMaterials material, ArmorItem.Type type) {
        return register(name, new ArmorItem(material, type, new Item.Settings()));
    }

    private static Item register(String name, Item item) {
        return Registry.register(Registries.ITEM, new Identifier(MOD_ID, name), item);
    }
}