Backported game mode switcher from 1.16+
https://www.curseforge.com/minecraft/mc-mods/legacy-gamemode-switcher
Credits: beecupbe and GTNH Team
A compact Forge mod (Minecraft 1.7.10) that restores the modern gamemode switching UX for older clients.
This project is a minimal and compatibility-focused backport of the Legacy Game Mode Switcher, adapted to the GTNewHorizons build setup. It:
- Adds a convenient in-game UI for switching game modes (creative/survival/adventure).
- Keeps compatibility with 1.7.10 Forge and GTNH tooling.
- Is small, well-tested and intended for server operators or players that want the newer UX on older Minecraft versions.
- Backported UI for game mode switching
- Syncs permissions and state across client/server
- Uses GTNH example build system for reproducible builds and CI
- Edit
gradle.propertiesto setmodName,modId, and optionallyversion. - Build:
./gradlew build— the mod JAR will be inbuild/libs/. - Test locally:
./gradlew runClient(client) or./gradlew runServer(server).
- Set
version=1.0.0ingradle.propertiesor create a Git tag (e.g.,git tag 1.0.0 && git push --tags) to trigger CI releases. mcmod.infoalready includes${modVersion}which is substituted from the build setup.
Contributions are welcome! Please fork the repo, make changes, and open a pull request. Follow the code style and run ./gradlew build to ensure everything compiles.
Consider adding tests or a small changelog entry for notable fixes and features.
This project is licensed under the GNU License — see the LICENSE file for details.
For more details about the build setup and advanced topics, see gradle.properties and the GTNewHorizons ExampleMod documentation.
