== Environment == - Server: CanvasMC 26.1.2 (Folia fork), build 26.1.2-876-abd7a65, Java 25.0.4 - ModelEngine: R4.1.1 (latest dev build) - MythicMobs: MythicMobsPremium 5.13.1-SNAPSHOT (latest dev build) - Models: default model{} mechanic with usm=true (state machine animation system) == Issue 1: Model does not follow its base entity == The base entity moves normally (its MythicMobs nametag, health bar and the F3+B hitbox/look vector move towards the player), but the model stays where the mob was spawned and only snaps to the entity's position later (it looks like a teleport). The mob looks like it is standing still in its idle animation. This happens with every MythicMobs mob that uses a ModelEngine model on this server, not only with one pack. Steps to reproduce: 1. Create a MythicMobs mob (e.g. Type: VINDICATOR) with - model{mid=<any model>;n=false;usm=true} @self ~onSpawn 2. Spawn it about 10 blocks away from a survival player. 3. The entity walks to the player (nametag / F3+B hitbox move), the model does not. Expected: the model follows the base entity every tick, as on Paper. == Issue 2: Region deadlock with the state{} mechanic == When a mob plays an animation with the MythicMobs state{} mechanic, the region thread blocks inside StateMachineHandler.playAnimation and never recovers. The Folia watchdog reports the region as not responding and after 60 s the server shuts down ("Scheduler did not terminate within 60s"). It is reproducible: spawning one mob whose skills use state{model=<model>;state=<animation>;speed=1} @self (on ~onDamaged or from a ~onTimer skill) freezes the region within seconds. Replacing state{} with defaultstate{} avoids the freeze. Stack trace (the watchdog only prints the blocked region thread, so the thread holding the lock is not visible): [10:35:52 ERROR]: [io.papermc.paper.threadedregions.FoliaWatchdogThread] Tick region located in world 'worlds_valthorne_misiones' around chunk '[302, 224]' has not responded in 5.78s: [10:35:52 ERROR]: ------------------------------ [10:35:52 ERROR]: Current Thread: Folia Region Scheduler Thread #2 [10:35:52 ERROR]: PID: 103 | Suspended: false | Native: false | State: BLOCKED [10:35:52 ERROR]: Stack: [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core.animation.handler.StateMachineHandler.playAnimation(StateMachineHandler.java:353) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core.animation.handler.StateMachineHandler.playAnimation(StateMachineHandler.java:342) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core21.mythic.mechanics.model.StateMechanic.addAnimation(StateMechanic.java:150) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core21.mythic.mechanics.model.StateMechanic.lambda$addAnimation$1(StateMechanic.java:128) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core21.mythic.mechanics.model.StateMechanic$$Lambda/0x0000000037200000.accept(Unknown Source) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core21.mythic.MythicUtils.executeOptModelId(MythicUtils.java:120) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core21.mythic.mechanics.model.StateMechanic.addAnimation(StateMechanic.java:128) [10:35:52 ERROR]: ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core21.mythic.mechanics.model.StateMechanic.castAtEntity(StateMechanic.java:65) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeTargetedEntitySkill$20(SkillMechanic.java:875) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic$$Lambda/0x0000000038796730.accept(Unknown Source) [10:35:52 ERROR]: java.base@25.0.4/java.util.ArrayList.forEach(ArrayList.java:1604) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.executeTargetedEntitySkill(SkillMechanic.java:871) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic.lambda$executeSkills$16(SkillMechanic.java:798) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.core.skills.SkillMechanic$$Lambda/0x00000000387955c8.run(Unknown Source) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.Delegates$RunnableToFunction.apply(Delegates.java:189) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$ApplyRunnable.run(LuminePromise.java:852) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise.lambda$foliaExecute$2(LuminePromise.java:284) [10:35:52 ERROR]: MythicMobsPremium-5.13.1-SNAPSHOT.jar//io.lumine.mythic.bukkit.utils.promise.LuminePromise$$Lambda/0x000000003878cf60.accept(Unknown Source) [10:35:52 ERROR]: io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:167) [10:35:52 ERROR]: io.papermc.paper.threadedregions.scheduler.FoliaEntityScheduler$EntityScheduledTask.accept(FoliaEntityScheduler.java:114) [10:35:52 ERROR]: io.papermc.paper.threadedregions.EntityScheduler.executeTick(EntityScheduler.java:274) [10:35:52 ERROR]: net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1673) [10:35:52 ERROR]: net.minecraft.server.dedicated.DedicatedServer.tickServer(DedicatedServer.java:460) [10:35:52 ERROR]: io.papermc.paper.threadedregions.TickRegions$ConcreteRegionTickHandle.tickRegion(TickRegions.java:519) [10:35:52 ERROR]: io.papermc.paper.threadedregions.TickRegionScheduler$RegionScheduleHandle.runTick(TickRegionScheduler.java:524) [10:35:52 ERROR]: ca.spottedleaf.concurrentutil.scheduler.EDFSchedulerThreadPool$TickThreadRunner.run(EDFSchedulerThreadPool.java:528) [10:35:52 ERROR]: ca.spottedleaf.concurrentutil.util.LazyRunnable.run(LazyRunnable.java:25) [10:35:52 ERROR]: java.base@25.0.4/java.lang.Thread.runWith(Thread.java:1487) [10:35:52 ERROR]: java.base@25.0.4/java.lang.Thread.run(Thread.java:1474) (The same trace repeats every 5 s until the watchdog stops the server:) [16:16:18 WARN]: [RegionShutdownThread] Scheduler did not terminate within 60s, proceeding with shutdown anyways [16:16:18 WARN]: Folia Region Scheduler Thread #2: Did not shut down in time [16:16:18 WARN]: at ModelEngine-R4.1.1.jar//com.ticxo.modelengine.core.animation.handler.StateMachineHandler.playAnimation(StateMachineHandler.java:355) ... (same stack as above) == Pack used to reproduce == "Shroomheads" by RopeFire (MythicMobs + ModelEngine pack). Relevant lines: - model{mid=red_shroomhead;rt=red_shroomhead;n=false;usm=true} @self - state{model=red_shroomhead;state=capsmack;speed=1} @self - state{model=red_shroomhead;state=hurt} @self (~onDamaged)
Thanks!