I'm using PureEntitiesX and I still wonder how to stop entity moving for few seconds ? I tried to use setImmobile but not working ( please help me ....
setImmobile() won't do anything unless you use it on a player (P.S. if you are using it on a player, don't forget to cancel PlayerMoveEvent accordingly) or an entity with client sided AI such as an Item (item entities automatically fall downwards regardless of server-sided movement movement unless you set it immobile). You should look into what method is causing that behavior and override it. From what it looks like, maybe override the WalkingEntity::updateMove() method. PHP: public function updateMove($tickDiff){ if(some condition){ return null; //stops movement } return parent::updateMove($diff);}