Станислав

Develop a comprehensive Naruto-themed plugin for Minecraft 1.20.1 that features a progression system with a personal skill menu for players to level up abilities. Implement NPCs for quests, unique Dojutsu and Kekkei Genkai abilities, optional story-driven exams, and customizable skill trees. Ensure compatibility with existing plugins and provide an extensive configuration file for server owners to tailor gameplay to their community.

Kodari AI
KodariNov 14 at 5:40 pm 1
NarutoProgression
Implements a Naruto-themed progression plugin with a personal skill menu allowing players to level up abilities through XP. Adds quest-giving NPCs, unique Dojutsu and Kekkei Genkai powers, optional story-driven exams for rank advancement, and customizable skill trees. Provides extensive YAML configuration for server owners to adjust ability costs, cooldowns, quest rewards, exam requirements, and NPC spawns. Integrates with existing plugins via placeholder support and permission hooks, delivering a complete ninja progression experience for Minecraft 1.20.1 NeoForge.

This project is a NeoForge 1.21.1 mod, but your request is a Minecraft 1.20.1 server plugin. Kodari supports Java server plugins for that version: Switch to Java server plugin

Станислав

Develop a comprehensive Naruto-themed plugin for Minecraft 1.20.1 that features a progression system with a personal skill menu for players to level up abilities. Implement NPCs for quests, unique Dojutsu and Kekkei Genkai abilities, optional story-driven exams, and customizable skill trees. Ensure compatibility with existing plugins and provide an extensive configuration file for server owners to tailor gameplay to their community.

Kodari AI
KodariNov 14 at 5:41 pm 1

This is a NeoForge 1.21.1 mod project, not a server-plugin project, so I can’t build the requested Minecraft 1.20.1 plugin here. Kodari supports Java server plugins: Switch to Java server plugin

Станислав

Develop a comprehensive Naruto-themed plugin for Minecraft NEO 1.21.1 that features a progression system with a personal skill menu for players to level up abilities. Implement NPCs for quests, unique Dojutsu and Kekkei Genkai abilities, optional story-driven exams, and customizable skill trees. Ensure compatibility with existing plugins and provide an extensive configuration file for server owners to tailor gameplay to their community.

Kodari AI
KodariNov 14 at 5:47 pm 4

I’ll implement this as a NeoForge 1.21.1 mod: a personal clickable skill menu, persistent progression and chakra, configurable Dojutsu/Kekkei Genkai trees, quest-giver villagers, and optional story exams. I’ll keep integrations optional and use the /shinobi command namespace to minimize conflicts.

Implemented Shinobi Progression as a NeoForge 1.21.1 mod.

  • Adds persistent player levels, XP, skill points, and chakra, with configurable level caps and rewards.

  • /shinobi opens a clickable personal skill menu. Players can learn and use abilities from configurable Dojutsu, Kekkei Genkai, Ninjutsu, Taijutsu, and Chakra Control trees.

  • Adds quest-giver villagers via /shinobi npc <questId> (permission level 2). Interacting with one accepts its quest; matching kills advance it.

  • Adds optional story exams with configurable stages, answers, level requirements, and rewards.

  • Generates shinobi-common.toml for server-owner settings, including ability trees, quests, exam stories, progression, cooldowns, and NPC behavior.

Commands include /shinobi learn, /shinobi use, /shinobi quest, /shinobi meditate, and /shinobi exam. The mod uses the /shinobi namespace and has no required third-party integrations. This is a NeoForge mod, not a Bukkit/Paper plugin, so it does not load on Bukkit/Paper servers.

Станислав

Не компилируется нет нужных файлов пишет

Kodari AI
KodariNov 14 at 5:51 pm 3

В проекте есть build.gradle, settings.gradle, gradle.properties, neoforge.mods.toml и все четыре Java-класса. По сообщению «нет нужных файлов» неясно, чего именно не находит сборка: пришлите скриншот ошибки или скопируйте её текст, особенно строки с Could not find или file not found, — тогда исправлю конкретную причину.

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
gradle.properties
settings.gradle
Code
9 701
src/main/java/com/kodari/shinobi/ShinobiMod.java
package com.kodari.shinobi;

import net.minecraft.network.chat.Component;
import net.minecraft.server.level.ServerPlayer;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.npc.Villager;
import net.minecraft.world.entity.player.Player;
import net.neoforged.bus.api.IEventBus;
import net.neoforged.fml.ModLoadingContext;
import net.neoforged.fml.common.Mod;
import net.neoforged.neoforge.common.NeoForge;
import net.neoforged.neoforge.event.entity.living.LivingDeathEvent;
import net.neoforged.neoforge.event.entity.player.PlayerInteractEvent;
import net.neoforged.neoforge.event.RegisterCommandsEvent;

@Mod(ShinobiMod.MOD_ID)
public final class ShinobiMod {
    public static final String MOD_ID = "shinobi";

    public ShinobiMod(IEventBus modBus) {
        ModLoadingContext.get().registerConfig(net.neoforged.fml.config.ModConfig.Type.COMMON, ShinobiConfig.SPEC);
        NeoForge.EVENT_BUS.addListener(this::registerCommands);
        NeoForge.EVENT_BUS.addListener(this::onEntityInteract);
        NeoForge.EVENT_BUS.addListener(this::onLivingDeath);
    }

    private void registerCommands(RegisterCommandsEvent event) {
        ShinobiCommands.register(event);
    }

    private void onEntityInteract(PlayerInteractEvent.EntityInteract event) {
        if (!(event.getEntity() instanceof ServerPlayer player)) return;
        Entity target = event.getTarget();
        String questId = target.getTags().stream()
                .filter(tag -> tag.startsWith("shinobi_quest_"))
                .map(tag -> tag.substring("shinobi_quest_".length()))
                .findFirst().orElse(null);
        if (questId == null) return;
        event.setCanceled(true);
        ShinobiConfig.Quest quest = ShinobiConfig.quest(questId).orElse(null);
        if (quest == null) {
            player.sendSystemMessage(Component.literal("This quest is no longer configured."));
            return;
        }
        String active = ShinobiProgress.activeQuest(player);
        if (active.equals(quest.id())) {
            player.sendSystemMessage(Component.literal(quest.title() + ": "
                    + ShinobiProgress.questProgress(player) + "/" + quest.count() + " targets defeated."));
        } else if (!active.isEmpty()) {
            player.sendSystemMessage(Component.literal("Finish or abandon your current quest first."));
        } else {
            ShinobiProgress.setActiveQuest(player, quest.id());
            player.sendSystemMessage(Component.literal(quest.story()));
            player.sendSystemMessage(Component.literal("Quest accepted: " + quest.title()
                    + " — defeat " + quest.count() + " " + quest.target() + ""));
        }
    }

    private void onLivingDeath(LivingDeathEvent event) {
        Entity killer = event.getSource().getEntity();
        if (!(killer instanceof ServerPlayer player)) return;
        ShinobiProgress.addXp(player, ShinobiConfig.XP_PER_KILL.get());

        String activeId = ShinobiProgress.activeQuest(player);
        if (activeId.isEmpty()) return;
        ShinobiConfig.Quest quest = ShinobiConfig.quest(activeId).orElse(null);
        if (quest == null) {
            ShinobiProgress.clearQuest(player);
            return;
        }
        String killedType = net.minecraft.core.registries.BuiltInRegistries.ENTITY_TYPE
                .getKey(event.getEntity().getType()).toString();
        if (!quest.target().equalsIgnoreCase(killedType)) return;
        int progress = ShinobiProgress.incrementQuestProgress(player);
        player.sendSystemMessage(Component.literal("Quest progress: " + progress + "/" + quest.count()));
        if (progress >= quest.count()) {
            ShinobiProgress.clearQuest(player);
            ShinobiProgress.addXp(player, quest.rewardXp());
            ShinobiProgress.grantPoints(player, quest.rewardPoints());
            player.sendSystemMessage(Component.literal("Quest complete: " + quest.title()
                    + ". Reward: " + quest.rewardPoints() + " skill point(s)."));
        }
    }

    public static void spawnQuestNpc(ServerPlayer player, ShinobiConfig.Quest quest) {
        Villager villager = EntityType.VILLAGER.create(player.serverLevel());
        if (villager == null) {
            player.sendSystemMessage(Component.literal("Could not create a quest NPC."));
            return;
        }
        villager.setPos(player.getX(), player.getY(), player.getZ());
        villager.setCustomName(Component.literal(quest.title()));
        villager.setCustomNameVisible(true);
        villager.addTag("shinobi_quest_" + quest.id());
        villager.setInvulnerable(ShinobiConfig.QUEST_NPCS_INVULNERABLE.get());
        villager.setNoAi(ShinobiConfig.QUEST_NPCS_NO_AI.get());
        player.serverLevel().addFreshEntity(villager);
        player.sendSystemMessage(Component.literal("Spawned quest NPC for " + quest.title() + "."));
    }
}