World Start Commands and Global Gamerules
by acewins
This server-side mod runs a list of commands from a config file the first time a world loads, so a server can apply settings without manual setup.
What it does
The mod reads a WSCommands config file in the config folder and runs its commands in order when a new world loads. Each entry can be set to run once per world, to run for a random player, or to run when a player joins for the first time, depending on the flags in the file. Commands that set gamerules are run after the world is created, so commands that depend on an existing world state behave as written. Gamerule names are matched exactly as Minecraft expects them, so the spelling and capitalization in the config have to match the game's own names.
World Start Commands and Global Gamerules is a Server-side only mod, so only the server needs to run it and players join without installing anything. It is released under the GNU General Public License v3.0 only and is open source, with source code publicly available. Files exist for Forge and NeoForge across 21 release versions 1.19 – 1.21.11, and the latest Forge file is 2.0.0 for 1.20.1, published on 2025-04-09.
Key features
Commands run on world load
Entries in the config file run in the order they are listed as soon as a world loads.
Run once or for every load
A Repeat flag decides whether a command runs a single time for the world or on each load.
Join-based triggers
Entries can run when a player joins for the first time or when a random player joins, and the dedicated server mode can be set separately.
Global gamerule settings
Gamerules such as keepInventory and doInsomnia can be set from the config, with examples given in the file.
Config file generation
The config file WSCommands.toml is generated in the config folder, with the main options and an example of the command format.
Compatibility
Latest build for each game version and loader.
1.21.x12 of 12 versions with builds
1.20.x4 of 4 versions with builds
1.19.x5 of 5 versions with builds
Only full game releases are shown. This mod publishes no snapshot builds.
How it compares
Global Gamerules (Neoforge) is a NeoForge-only server mod for 1.21.1, open source under the GNU Lesser General Public License v3.0 or later. Per-Dimension Game Rules applies to Fabric, Forge, NeoForge and Quilt for 1.19.2 – 1.21.1, is server-side only and is not open source. Selective Keepinventory covers 1.19 – 1.21 on four loaders, is server required with client optional, and is released under the MIT License.
| Mod | Loaders | Game versions | Environment | Updated |
|---|---|---|---|---|
| World Start Commands and Global Gamerules | Forge and NeoForge | 1.19 – 1.21.11 | Server-side only | 2025-04-09 |
| Global Gamerules (Neoforge) | NeoForge | 1.21.1 | Server-side only | 2026-04-20 |
| Per-Dimension Game Rules | Fabric, Forge, NeoForge and Quilt | 1.19.2 – 1.21.1 | Server-side only | 2025-10-18 |
| Selective Keepinventory | Fabric, Forge, NeoForge and Quilt | 1.19 – 1.21 | Server required, client optional | 2024-12-12 |
Questions
Does the server need this mod installed for its commands to run?
Why do commands not run after the config is edited?
Do gamerule names need exact capitalization?
In the catalog
World Start Commands and Global Gamerules is one of 8,016 Management mods on ModsFinder, and one of 2,698 Management mods for Forge. 19,862 mods support Minecraft 1.21.11.
More from acewins
Similar mods
What the author says
Check out BoxToPlay for cheap and powerful minecraft servers (seriously, it's the one I use daily, it's great) This mod is originally made for setting global gamerules that will apply to every world but it works with any other commands.
Official listing
- Owner
- acewins
- Published
- 2024-09-27
- Updated on Modrinth
- 2025-04-09
- Facts verified
- 2026-10-15
