execute if score $gamemode cnk.dummy matches 0 run return run gamemode survival @s
execute if score $gamemode cnk.dummy matches 1 run return run gamemode creative @s
execute if score $gamemode cnk.dummy matches 2 run return run gamemode adventure @s
execute if score $gamemode cnk.dummy matches 3 run gamemode spectator @s
