onModeChange
mod.macros.events.player.onmodechange
Raised when your game mode changes, for example when switching from creative to survival
Only fired when switching to or from creative mode