mougicraft

can you make when the pokemon is outside the pokecube the player can use shift+right to make the pokemon comeback? and add rename features, and when player right clicked the Pokecube that have a Pokemon in it it wont spawn and not aiming on the block make it not spawning, and player can spawn many pokemon, add new features that same like pokemon

Kodari AI
KodariFeb 22 at 10:02 pm 43,922 (v2)

I’ll add those Pokemon-like features. Let me first read the existing files to understand the current implementation.

Now I’ll implement all the requested features plus additional Pokemon-like systems. Let me start by creating the necessary files and updating existing ones.

Now I’ll create and update all the necessary files for the new features:

All features implemented:

  • Shift+Right-click in air to recall Pokemon back to Pokecube

  • Rename feature via /pokecube rename command or right-clicking Pokemon with renamed name tag

  • Pokecube won’t spawn when right-clicking blocks (only air)

  • Multiple Pokemon can be spawned (removed the despawn of existing pet)

  • Pokemon type system added with damage multipliers

  • Enhanced stats display showing custom names and Pokemon types

  • Sound effects for all interactions

  • Better UX with clear messages and feedback

mougicraft

add more features that really like pokemon, and the damaging, tiering is based on entity real damage, and add the pokemon can cast skill when duel, use minecraft vanilla thing, like fireball, strike, lightning, add so much thing on it like the real pokemon

Kodari AI
KodariFeb 22 at 10:13 pm 47,260 (v2)

I’ll read the existing files to understand the current structure, then add Pokemon-like features including skills, real damage-based systems, and duel mechanics.

I’ll add comprehensive Pokemon-like features including skills, type effectiveness, status effects, moves, real damage-based systems, and enhanced duel mechanics.

Now I’ll create all the new Pokemon-like features:

All Pokemon-like features have been added including skills with fireballs/lightning/beams, type effectiveness system, status effects, real damage calculations, enhanced duel mechanics with skill usage, win/loss tracking, and comprehensive battle statistics.

mougicraft

make the entity that captured always follow the owner and not attacking any player, add AI on it, make it all really like Pokemon, have a skill etc

Kodari AI
KodariFeb 23 at 12:14 am 28,192 (v2)

I’ll read the existing files to understand the current system and then enhance it with proper AI, following behavior, and Pokémon-like mechanics.

Now I’ll implement a comprehensive AI system to make captured entities behave like real Pokémon with following, intelligent combat, and skills.

Now I’ll update the config to add AI-related settings:

All changes implemented! Here’s what I’ve added to make captured entities behave like real Pokémon:

New AI System Features:

  1. AIManager - Comprehensive AI system that handles:

    • Pets always follow their owner automatically

    • Smart pathfinding with teleportation when too far

    • Intelligent combat AI with skill selection based on distance, health, and situation

    • Target prioritization (hostile mobs in AGGRESSIVE mode, opponent pets in duels)

    • Never targets players under any circumstance

  2. PetAIListener - Prevents pets from targeting players and manages AI behavior:

    • Cancels all player targeting attempts

    • Only allows pet vs pet combat during official duels

    • Respects pet modes (PASSIVE/STAY = no combat, AGGRESSIVE = attacks hostile mobs)

  3. Smart Combat System:

    • Pets automatically select appropriate skills based on distance and situation

    • Prefers melee skills at close range, projectiles at medium range

    • Uses defensive/status skills when low on health

    • Skill cooldown management to prevent spam

  4. Following Behavior:

    • Pets continuously follow their owner

    • Teleports if too far away (30+ blocks)

    • Stops pathfinding when close (within 3 blocks)

    • Respects STAY mode (sits in place)

  5. Enhanced Protection:

    • Pets cannot be damaged by players

    • Players cannot damage pets

    • Pet vs pet combat only in duels

    • Pets can attack hostile mobs in AGGRESSIVE mode

mougicraft

tell me how to get all the items

mougicraft

ss

Kodari can make mistakes. Review important code before using.
Files
src
build.gradle
Code
37 3,993
src/main/java/com/vanillapokemobs/VanillaPokemobs.java
package com.vanillapokemobs;

import com.vanillapokemobs.command.PokecubeCommand;
import com.vanillapokemobs.gui.RenameGUI;
import com.vanillapokemobs.integration.PokecubePlaceholder;
import com.vanillapokemobs.listener.*;
import com.vanillapokemobs.manager.*;
import com.vanillapokemobs.util.PokemonNBTUtil;
import com.vanillapokemobs.util.RecipeLoader;
import lombok.Getter;
import org.bukkit.plugin.java.JavaPlugin;

@Getter
public class VanillaPokemobs extends JavaPlugin {
    private ConfigManager configManager;
    private ProtectionManager protectionManager;
    private TierManager tierManager;
    private LevelManager levelManager;
    private DataManager dataManager;
    private PetManager petManager;
    private CaptureManager captureManager;
    private BattleManager battleManager;
    private HealingManager healingManager;
    private SkillManager skillManager;
    private StatusManager statusManager;
    private AIManager aiManager;
    private CompanionManager companionManager;
    private PokemonNBTUtil nbtUtil;
    private RenameGUI renameGUI;
    
    @Override
    public void onEnable() {
        // Initialize all managers in proper order
        this.nbtUtil = new PokemonNBTUtil(this);
        this.configManager = new ConfigManager(this);
        this.protectionManager = new ProtectionManager(this);
        this.tierManager = new TierManager(this);
        this.dataManager = new DataManager(this);
        this.petManager = new PetManager(this);
        this.skillManager = new SkillManager(this);
        this.battleManager = new BattleManager(this);
        this.levelManager = new LevelManager(this);
        this.captureManager = new CaptureManager(this);
        this.healingManager = new HealingManager(this);
        this.statusManager = new StatusManager(this);
        this.aiManager = new AIManager(this);
        this.companionManager = new CompanionManager(this);
        this.renameGUI = new RenameGUI(this);
        
        // Register all event listeners
        getServer().getPluginManager().registerEvents(new ProjectileListener(this), this);
        getServer().getPluginManager().registerEvents(new EntityListener(this), this);
        getServer().getPluginManager().registerEvents(new InteractListener(this), this);
        getServer().getPluginManager().registerEvents(new SkillListener(this), this);
        getServer().getPluginManager().registerEvents(new PetAIListener(this), this);
        getServer().getPluginManager().registerEvents(new CaptureListener(this), this);
        getServer().getPluginManager().registerEvents(renameGUI, this);
        
        // Register commands
        PokecubeCommand commandHandler = new PokecubeCommand(this);
        getCommand("pokecube").setExecutor(commandHandler);
        getCommand("pokecube").setTabCompleter(commandHandler);
        
        // Load crafting recipes
        new RecipeLoader(this).loadRecipes();
        
        // Check for PlaceholderAPI
        if (getServer().getPluginManager().isPluginEnabled("PlaceholderAPI")) {
            new PokecubePlaceholder(this).register();
            getLogger().info("PlaceholderAPI support enabled!");
        }
        
        getLogger().info("§a╔════════════════════════════════════╗");
        getLogger().info("§a║   VanillaPokemobs v1.0 Enabled!   ║");
        getLogger().info("§a║  Complete Pokemon experience       ║");
        getLogger().info("§a║  1.21.8 with Full Battle System    ║");
        getLogger().info("§a╚════════════════════════════════════╝");
    }
    
    @Override
    public void onDisable() {
        // Save all active Pokemon data
        for (org.bukkit.entity.Player player : getServer().getOnlinePlayers()) {
            petManager.despawnPet(player);
            companionManager.stopFollowing(player.getUniqueId());
        }
        
        getLogger().info("§cVanillaPokemobs has been disabled!");
    }
}