makareiusjsj

СДЕЛАЙ МОД В КОТОРОМ БУДУТ УНИКАЛЬНЫЙ БИОМЫ СТРУКТУРЫ С БОСАМИ И РЕСУРСАМИ И БРОНЁЙ С ОРУЖИЕМ И КРАФТАМИ И НАГРАДИ ЗА ПОБУД У НАД БОСАМ

Kodari AI
KodariAug 18 at 3:10 pm 4
BiomeBossAdventure
Adds unique biomes with rare resources, custom structures hosting powerful bosses, and a full progression system. Defeat bosses to earn exclusive armor, weapons, and crafting recipes. Features new ores, materials, and craftable items that enhance gameplay. Each biome offers distinct challenges and rewards, encouraging exploration and strategic combat. Boss fights drop unique loot and unlock advanced crafting tiers, providing a complete endgame experience with meaningful progression and replayability.

План:

  1. Создать базовый Fabric 1.21.11 проект и регистрацию контента.

  2. Добавить биом, генерацию ресурсов и структуру подземелья с боссом.

  3. Добавить оружие, броню, материалы, рецепты и награды за победу над боссом.

  4. Добавить клиентский рендеринг предметов/брони и конфигурацию ресурсов.

Создан мод Dreadlands для Fabric 1.21.11.

Добавлено:

  • Базовый Gradle-проект с Fabric Loom 1.14 и Java 21.

  • Уникальный контент:

    • Dreadstone.

    • Soul Crystal Ore.

    • Dreadsteel Block.

    • Soul Crystal.

    • Dreadsteel Ingot.

  • Оружие:

    • Dreadsteel Sword.

  • Броня:

    • Dreadsteel Helmet.

    • Dreadsteel Chestplate.

    • Dreadsteel Leggings.

    • Dreadsteel Boots.

  • Босс Dreadlord:

    • 160 здоровья.

    • Усиленная броня и атака.

    • Иммунитет к огню.

    • ИИ ближнего боя и поиск игроков.

    • Клиентская модель и рендер.

  • Структура Dread Citadel:

    • Каменная арена.

    • Башни и стены.

    • Soul Lantern в центре.

    • Автоматическое появление Dreadlord.

  • Награды за победу над боссом:

    • 4 Dreadsteel Ingots.

    • 8 Soul Crystals.

    • Dreadlord’s Crown.

    • Сообщение игроку о победе.

  • Рецепты меча, брони и Dreadsteel Ingot.

  • Loot tables для руд и блоков.

  • Item model definitions нового формата 1.21.11.

  • Настройки генерации структуры в Overworld.

  • Теги инструментов для новых блоков.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
46 556
src/main/java/com/kodari/dreadlands/Dreadlands.java
package com.kodari.dreadlands;

import com.kodari.dreadlands.block.ModBlocks;
import com.kodari.dreadlands.entity.DreadlordEntity;
import com.kodari.dreadlands.entity.ModEntities;
import com.kodari.dreadlands.item.ModItems;
import com.kodari.dreadlands.world.ModWorldgen;
import net.fabricmc.api.ModInitializer;
import net.fabricmc.fabric.api.entity.event.v1.ServerLivingEntityEvents;
import net.fabricmc.fabric.api.itemgroup.v1.ItemGroupEvents;
import net.minecraft.item.ItemGroups;
import net.minecraft.item.ItemStack;
import net.minecraft.server.network.ServerPlayerEntity;
import net.minecraft.text.Text;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

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

    @Override
    public void onInitialize() {
        ModItems.initialize();
        ModBlocks.initialize();
        ModEntities.initialize();
        ModWorldgen.initialize();

        ItemGroupEvents.modifyEntriesEvent(ItemGroups.INGREDIENTS).register(entries -> {
            entries.add(ModItems.SOUL_CRYSTAL);
            entries.add(ModItems.DREADSTEEL_INGOT);
        });
        ItemGroupEvents.modifyEntriesEvent(ItemGroups.COMBAT).register(entries -> {
            entries.add(ModItems.DREADSTEEL_SWORD);
            entries.add(ModItems.DREADSTEEL_HELMET);
            entries.add(ModItems.DREADSTEEL_CHESTPLATE);
            entries.add(ModItems.DREADSTEEL_LEGGINGS);
            entries.add(ModItems.DREADSTEEL_BOOTS);
        });

        ServerLivingEntityEvents.AFTER_DEATH.register((entity, source) -> {
            if (!(entity instanceof DreadlordEntity) || !(source.getAttacker() instanceof ServerPlayerEntity player)) {
                return;
            }
            player.giveItemStack(new ItemStack(ModItems.DREADSTEEL_INGOT, 4));
            player.giveItemStack(new ItemStack(ModItems.SOUL_CRYSTAL, 8));
            player.giveItemStack(new ItemStack(ModItems.DREADLORD_CROWN));
            player.sendMessage(Text.translatable("message.dreadlands.dreadlord_reward"), false);
        });

        LOGGER.info("Dreadlands awakened: the citadel is waiting.");
    }
}