// ============================================================================
// ✨ PMBTEXAS Mythical Item Tooltips + Spawn Egg Names v1.4
// Goes in: kubejs/client_scripts/
// KubeJS 2101.7.2 | NeoForge 1.21.1
// ============================================================================

ItemEvents.modifyTooltips(event => {

    // ── Mythical Compass ─────────────────────────────────────
    event.add('pmbtexas_mobs:mythical_compass', [
        Text.of('§7Attuned to the presence of mythical creatures.'),
        Text.of('§7Right-click to sense the nearest guardian.'),
        Text.of('§8Recharges every §e10 minutes§8.'),
        Text.of('§8For exact coordinates, seek a §6Mythical Map§8.')
    ]);

    // ── Mythical Map ─────────────────────────────────────────
    event.add('pmbtexas_mobs:mythical_map', [
        Text.of('§7Reveals the exact location of the nearest'),
        Text.of('§7mythical creature. Crumbles on use.'),
        Text.of('§8Single use. Handle with care.'),
        Text.of('§c§oSomething marked this map. You did not.')
    ]);

    // ── Spawn Egg colored names ───────────────────────────────
    event.modify('pmbtexas_mobs:phoenix_spawn_egg', tooltip => {
        tooltip.removeLine(0);
        tooltip.insert(0, Text.of('§6§lPhoenix §r§7Spawn Egg'));
    });

    event.modify('pmbtexas_mobs:griffin_spawn_egg', tooltip => {
        tooltip.removeLine(0);
        tooltip.insert(0, Text.of('§e§lGriffin §r§7Spawn Egg'));
    });

    event.modify('pmbtexas_mobs:kraken_spawn_egg', tooltip => {
        tooltip.removeLine(0);
        tooltip.insert(0, Text.of('§b§lKraken §r§7Spawn Egg'));
    });

    event.modify('pmbtexas_mobs:scorpion_spawn_egg', tooltip => {
        tooltip.removeLine(0);
        tooltip.insert(0, Text.of('§2§lScorpion §r§7Spawn Egg'));
    });

    event.modify('pmbtexas_mobs:disturbance_spawn_egg', tooltip => {
        tooltip.removeLine(0);
        tooltip.insert(0, Text.of('§5§lThe Disturbance §r§8Spawn Egg'));
    });

    event.modify('pmbtexas_mobs:echo_spawn_egg', tooltip => {
        tooltip.removeLine(0);
        tooltip.insert(0, Text.of('§8§lThe Echo §r§7Spawn Egg'));
    });

});
