ModeledNPCs: Ultimate NPC Plugin for MythicMobs & ModelEngine! Quests, Dialogues & Traders & more! icon

ModeledNPCs: Ultimate NPC Plugin for MythicMobs & ModelEngine! Quests, Dialogues & Traders & more! -----

"Unleash the Power of MythicMobs and ModelEngine—Bring Your NPCs to Life!"



VERSION 6.1 LAG SPIKE FIX / AND FIXED pitch not finite" crash , API INTRODUCTION
Highlights
  • Massive lag spike FIXED during startup and periodic validation.

  • Optimized NPC name reapplication and metadata lookups.

  • Entity linking now uses localized getNearbyEntities instead of full world scans.

  • Reduced memory usage and redundant object creation.

  • New API access layer for developers (ModeledNPCsAPI).

  • ❌ Resolved the "pitch not finite" crash in AutoLook teleportation.

  • ️ Far more robust NPC loading, cleanup, and re-linking.
API & Developer Enhancements
  • ✅ Introduced ModeledNPCsAPI singleton:
    • Access core systems: npcManager, traderManager, npcEffectManager, etc.
  • ✅ Added BungeeCord support via:

    java
    sendPlayerToServer(Player player, String serverName);

  • ✅ Improved internal plugin structure for dependency injection and plugin communication.
⚙️ Performance Optimizations
Efficient Startup
  • NPCLoaderHandler: Eliminated global entity scans; now uses NPC UUID + chunk location + proximity search.

  • NPCManager#spawnNPC: Deferred nameplate and hologram setup to allow smooth chunk loading.

  • MythicMobs/ModelEngine: Delayed model assignment and animation play via runTaskLater.
Smarter Validation
  • ValidationHandler#validateNPCs:
    • Reduced CPU overhead by replacing World#getEntities() with getNearbyEntities() scoped to each NPC.

    • Fewer checks, better tick efficiency, zero lag spikes.
Cleaner Data Logic
  • Removed:
    • Legacy PDC name sync.

    • Redundant setCustomName() / getCustomDisplayName() calls.
  • Simplified:
    • NPCData string resolution.

    • UUID/entity validation logic.
  • Ensured:
    • Dummy NPC creation doesn’t fail in empty worlds.
Bug Fixes
  • Crash Fix:
    • IllegalArgumentException: pitch not finite when AutoLook attempted invalid rotations.
  • Startup Fixes:
    • NullPointerException due to early listener registration before npcManager was ready.
  • Reload Safety:
    • NPCs no longer disappear or reset on /reload due to persistent UUID mismatches.
  • Command System:
    • Fixed plugin.yml error (provides must be a list) that broke command registration.
  • Effect Tagging:
    • NPCs now preserve autoLook state via PDC and re-tag correctly on world load.
✨ Additional Improvements
  • AutoLook now uses angle check to avoid over-rotating unnecessarily.

  • Adventure API used consistently for all player-facing output.

  • Scheduled validation and animation replay now happen asynchronously and in sync with server ticks.
How to Update
  1. Backup your ModeledNPCS folder.

  2. Replace old .jar with ModeledNPCS v6.1.

  3. Restart the server – done!
‍ For Developers
Use the new ModeledNPCsAPI:

API LINK WILL BE ADDED SOON ON OUR DISCORD !!
----------, May 19, 2025
Resource Information
Author:
----------
Total Downloads: 48
First Release: Dec 13, 2024
Last Update: May 21, 2025
Category: ---------------
All-Time Rating:
12 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings