Configurable Flight Disabler
This client-side mod allows you to temporarily disable the ability to fly for a specified period of time. After installing the mod, you need to go to the configuration settings and find the file named flight_disabler_timer. In this file, set the time value in milliseconds for which you want to restrict flight.
When your character takes damage, the ability to fly will be blocked for a number of seconds equal to the specified number divided by 1000. This mod is specifically designed for modpacks and gameplay balancing.
How the mod works
The mod works exclusively on the client side and does not require installation on the server. After taking damage, a timer is activated that temporarily disables all flight functions, including creative mode and various mods that add the ability to fly.