World Start Commands and Global Gamerules

World Start Commands and Global Gamerules

Run commands on world creation, allows for global gamerules compatible with any mod!

by
70.1K Downloads
forgeneoforgegame-mechanicsmanagementutility
Rent Server with this Mod

About this Mod

BoxToPlay sponsor
Check out BoxToPlay for cheap and powerful minecraft servers (seriously, it's the one I use daily, it's great)

also available on curseforge (much worse)

This mod is originally made for setting global gamerules that will apply to every world but it works with any other commands.

v1 description

When you first start your game the mod will create a file called WSCommands.json in your config folder which is formatted like so:

{
  "Repeat": false,
  "DedicatedMode": false,
  "1": "[command1]",
  "2": "[command2]",
  "3": "[command3]"
}

The mod will run the commands in order every time you load into a new world.
Make sure to not skip any numbers.
Don't forget the commas.
The commands don't include the /

example:

{
  "Repeat": false,
  "DedicatedMode": false,
  "1": "effect give @a minecraft:resistance",
  "2": "gamerule keepInventory true",
  "3": "gamerule doInsomnia false",
  "4": "give @r minecraft:diamond"
}

this will first give the resistance effect to every player, then set keepInventory to true and doInsomnia to false, then give a diamond to a random player in the world

If Repeat is set to true, the commands will run every single time the world is loaded (or every time a player joins the world if DedicatedMode is set to true.)
If DedicatedMode is set to true, the commands will run for every single player that joins the world for the first time.

important:

/wsc [target] forcerun will run the commands directly
/wsc [target] reset will run the commands again the next time you load the current world
/wsc null is a command that does not do anything

Commands don't run at world creation ? Try doing /wsc forcerun (need OP), if it shows a message in red saying it was unable to run the command, you probably forgot a comma somewhere in your config (all lines have a comma except the last one)

Commands do run but gamerules aren't set ? Minecraft is very specific with the capitalization of the gamerules (gamerule keepinventory or gamerule Keepinventory for example will NOT work as the correct capitalization is gamerule keepInventory)

Be very careful when going from a command block directly to the toml file as you have to escape anything inside the command that the json format uses (ex: \ becomes \, " becomes ") (very useful resource here https://www.freeformatter.com/json-escape.html just type the command you want in the box don't press enter and just press "escape JSON" and it should give you exactly what you need to copy paste (don't forget to put what you copied from the website between quotation marks in the command list!!)

A config file called WSCommands.toml will be generated in the config folder, most important information should be contained there

Join my discord server for support about my mods!

icon was taken on game-icons.net

Available Versions

World Start Commands and Global Gamerules 2.0.0release
MC 1.20.5, 1.20.6, 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4, 1.21.5, 1.21.6, 1.21.7, 1.21.8, 1.21.9, 1.21.10, 1.21.11neoforge
April 9, 2025
World Start Commands and Global Gamerules 2.0.0release
MC 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1forge, neoforge
April 9, 2025
World Start Commands and Global Gamerules 1.0.7release
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4neoforge
March 15, 2025
World Start Commands and Global Gamerules 1.0.7release
MC 1.19, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1forge, neoforge
March 15, 2025
World Start Commands and Global Gamerules 1.0.6release
MC 1.21, 1.21.1, 1.21.2, 1.21.3, 1.21.4neoforge
March 3, 2025

How to Install World Start Commands and Global Gamerules on Your Server

1

Order Server

Order a Minecraft Java server with at least 3 GB RAM (4 GB recommended).

2

Set forge Loader

In the panel under "Egg", select the forge loader and matching Minecraft version (1.21.11).

3

Install Mod

Open the mod browser in the dashboard and search for "World Start Commands and Global Gamerules". Click "Install" – done! Alternatively, upload the .jar via SFTP to the /mods folder.

Compatibility

Mod Loaders

forgeneoforge

Minecraft Versions

1.21.11, 1.21.10, 1.21.9 (+18 more)

Server-side

Required

Recommended RAM

4 GB(min. 3 GB)

Frequently Asked Questions

World Start Commands and Global Gamerules server crashes on startup – what to do?

Most common cause: wrong forge version or insufficient RAM. Check the server log (latest.log) for "OutOfMemoryError" or "Mixin" errors. With Mado Hosting: ensure at least 3 GB RAM is allocated and the loader matches the mod version (1.21.11). You can switch loaders with one click in the panel.

Is World Start Commands and Global Gamerules compatible with forge and neoforge?

World Start Commands and Global Gamerules officially supports forge, neoforge for Minecraft 1.21.11, 1.21.10, 1.21.9. The Mado dashboard automatically detects incompatible loader combinations.

Server lagging with World Start Commands and Global Gamerules – how to optimize performance?

Recommended RAM: 4 GB (per 8 players). Use /spark profiler to check if World Start Commands and Global Gamerules consumes the most tick time. Common fixes: reduce server view-distance to 8-10, install "performant" or "starlight" as supplementary mods on Forge. With Mado Hosting, your server runs on NVMe SSDs with dedicated CPU cores for minimal latency.

Rent Modded Server

Install World Start Commands and Global Gamerules with just one click on your server.

Recommended RAM
4 GBab €8/mo
Min. 3 GB | +1 GB pro 8 Spieler
Create Server Now
1-Click Mod Install
NVMe SSD Storage
DDoS Protection included

Details

License
GNU General Public License v3.0 only
Server-side
Required

Supported Versions

1.21.111.21.101.21.91.21.81.21.71.21.61.21.51.21.41.21.31.21.2+11 more