Skip to content

🤖 Профили поведения, приоритеты целей и аксессоры ​

📌 Отказ от ответственности относительно исходного кода: Документация в этой вики отражает текущее состояние исходного кода в репозитории, которое может содержать недавние невыпущенные коммиты или разрабатываемые функции, опережающие общедоступные сборки на CurseForge и Modrinth.

📊 Матрица приоритетов AI Goal ​

All custom goals set move flags (this.setFlags(EnumSet.of(Goal.Flag.MOVE))) to prevent conflicting movement vector calculations:

Priority LevelGoal ClassActivation ConditionBehavior Summary
Priority 1BatPanicGoalAcoustic vibration detected (distSq < 256.0)Instant flock dispersion, rapid fleeing away from disturbance
Priority 2BatSleepGoalDaytime (world.isDay()) or darkness retreatSeeks dark ceilings, stalactites, lanterns; hangs inverted
Priority 3BatHuntLightGoalNighttime & artificial light within 10 blocksApproaches lantern/torch, transitions into circular banking orbit
Priority 4BatDiveBombGoalSilverfish / Endermite within 8 blocksAscends, locks target, delivers high-speed dive-bomb impact
Priority 5BatFlightHelper / FlockingAirborne, no high-priority interruptsContinuous 3D BOIDs cohesion, alignment, separation flight

☕ Заметка соло-разработчика: Если вам нравятся реалистичные 3D-стаи летучих мышей и удобрение посевов гуано, поддержите меня на Ko-fi!


🔌 Интерфейс BatStateAccessor ​

BatStateAccessor allows external mods or internal mixins to inspect live bat state without reflection:

java
public interface BatStateAccessor {
    boolean betterbats$isPanicking();
    boolean betterbats$isHuntingLight();
    BlockPos betterbats$getTargetLightPos();
}

See also: Архитектура пакетов | Руководство для других модов

Official documentation & web portal for Dasik Igaijinn mods.