HomeJavaModsWorld Start Commands and Global Gamerules
World Start Commands and Global Gamerules
ModsJava

World Start Commands and Global Gamerules

by sheepsquadace · on CurseForge

⬇ Download on CurseForge

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

also available on modrinth (much better)

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

description for version 1 is available on modrinth and github

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

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!!)

Join my discord server for support about my mods! comments here work too but I will be much slower to reply.

icon was taken on game-icons.net

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

World Start Commands and Global Gamerules is a free Minecraft Java mod. Compatible with Minecraft 1.21, 1.21.4, 1.21.3, 1.21.1 and newer. Downloaded 621,477 times (via CurseForge). Download it and open it directly in the game.

Explore more