ModLocker
About this datapack:
This data pack allows you to "lock" the gamemode for all players on the server. Perfect for adventure maps, mini-games, or any server where you need full control over player permissions!
README
Becoming an exception:
To exclude yourself from the gamemode lock (e.g. as an admin), run:
/function gamemode:admin_tag
Locking a game mode:
/function gamemode:survival (Survival | default)
/function gamemode:adventure (Adventure)
/function gamemode:spectator (Spectator)
/function gamemode:creative (Creative)
Note:
If you find any bugs, please report them in the "#🪲report-bugs" channel on our Discord server using the "ModLocker" tag!