Is in game mode
Whether a player is in survival, creative, adventure or spectator mode right now.
A Minecraft element (a check) in Players. Needs the Basic plan or higher to go live; building and testing are free.
Example
When a player breaks a block → If Is in game mode creative → Drop nothing.
Also called
gamemode, in creative, in survival, mode check
Works as a data pack?
Yes. A vanilla data pack does this exactly as the plugin does.
What you give it
- Player