Enforce Gamemode
by macbrayne
Enforce Gamemode lets server owners lock each player to one game mode using permission nodes, including per-dimension rules, on Fabric for 1.18.1.
What it does
Permission nodes set the game mode a player is held to. The mod reads four nodes, enforcegamemode.force.survival, enforcegamemode.force.creative, enforcegamemode.force.adventure and enforcegamemode.force.spectator, each matching game mode ID 0, 1, 2 and 3. When a player holds a node, changes to other modes are overridden and the player is returned to the enforced one.
Rules can also be scoped to a dimension by appending a namespace and dimension, such as enforcegamemode.force.adventure.minecraft:the_end. Dimension-specific checks are evaluated before the global ones, so they overwrite the global game mode permissions for that dimension. Checks run from the top of the list to the bottom, and a player who holds both the survival and creative nodes is put into survival mode.
The mod is server-side only and does not take effect in LAN worlds run by a client. It is released under the MIT License and is open source. Builds exist only for Fabric and only for 1.18.1, with 0.1 as the latest file, published on 2022-01-14.
Key features
Game mode enforcement
Nodes for survival, creative, adventure and spectator force players into the chosen mode.
Bypass forced changes
A player can be given a bypass so that forced game mode changes do not apply to them.
Dimension-specific rules
Enforcement can be limited to one dimension by adding its namespace and name to the node.
Rule precedence
Dimension rules are checked before global ones and override them, so a server can set exceptions per world.
Compatibility
Latest build for each game version and loader.
Only full game releases are shown. This mod publishes no snapshot builds.
Use cases
Who it’s for: Server owners who want to control game modes per player or per dimension using permission nodes. It needs no client install, but it does nothing in single-player or LAN worlds.
How it compares
GameMode Permissions is server-side only and uses the CC BY-NC-SA 4.0 license, so it is not open source; its files target 1.21. Gamemode Unrestrictor is the opposite, a client-side only mod under the MIT License, open source, covering 1.16.2 – 1.21.4, and it lifts game mode limits rather than enforcing them.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| Enforce Gamemode | Fabric | 1.18.1 | Server-side only | 2022-01-14 |
| GameMode Permissions | Fabric | 1.21 | Server-side only | 2024-07-07 |
| Gamemode Unrestrictor | Fabric | 1.16.2 – 1.21.4 | Client-side only | 2024-11-26 |
Questions
Does Enforce Gamemode need Fabric API?
Does the mod work in single-player?
Which game versions does Enforce Gamemode support?
How are dimension rules written?
In the catalog
Enforce Gamemode is one of 36,990 Utility mods on ModsFinder, and one of 25,772 Utility mods for Fabric. 4,416 mods support Minecraft 1.18.1.
More from macbrayne
Similar mods
What the author says
This mod is server-side only and won't be active in LAN worlds or on clients. The order the mod checks for the applicable game mode is from top to bottom. That means if a player has both enforcegamemode.force.survival and enforcegamemode.force.creative set they'll be put into survival mode.
Official listing
- Modrinth page
- modrinth.com/mod/enforce-gamemode
- Owner
- macbrayne
- Published
- 2022-01-14
- Updated on Modrinth
- 2022-01-14
- Facts verified
- 2026-10-15
