Перейти к содержимому
Mineforgian

World Start Commands and Global Gamerules

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

72K загрузок8 подписчиковGPL-3.0-onlyforgeneoforge

Обновлён 9 апреля 2025 г. · опубликован 27 сентября 2024 г.

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

Центр версий

19 версий
  • Релиз21 КБ
  • Релиз21 КБ
  • Релиз17 КБ
  • Релиз17 КБ
  • Релиз17 КБ
  • Релиз16 КБ
  • Релиз18 КБ
  • Релиз18 КБ
  • Релиз17 КБ
  • Релиз18 КБ
  • Релиз17 КБ
  • Релиз18 КБ
  • Релиз17 КБ
  • Релиз19 КБ
  • Релиз19 КБ
  • Релиз17 КБ
  • Релиз17 КБ
  • Релиз17 КБ
  • Релиз17 КБ

Ченджлог

2.0.0Релиз1.21.9, 1.21.10, 1.21.11 · 9 апреля 2025 г.

rewrote the whole thing, the config now works differently  

added a new setting to only run the commands when the full game is restarted  

you now have 3 different arrays of commands that use different settings

2.0.0Релиз1.19.4, 1.20, 1.20.1 · 9 апреля 2025 г.

rewrote the whole thing, the config now works differently  

added a new setting to only run the commands when the full game is restarted  

you now have 3 different arrays of commands that use different settings

1.0.7Релиз1.21.2, 1.21.3, 1.21.4 · 15 марта 2025 г.

supposedly fixed a bug

1.0.7Релиз1.19.4, 1.20, 1.20.1 · 15 марта 2025 г.

supposedly fixed a bug

1.0.6Релиз1.21.2, 1.21.3, 1.21.4 · 3 марта 2025 г.

fixed a bug that caused the config file to generate in the wrong folder

not compatible with neo 1.20.2-1.20.6 unfortunately but I'm fairly sure noone uses those versions anyway

1.0.6Релиз1.19.4, 1.20, 1.20.1 · 3 марта 2025 г.

made the mod compatible with 1.19 

fixed a bug that caused the config file to generate in the wrong folder  

I will release the neoforge 1.20.2-1.21.4 version tomorrow

1.0.5Релиз1.21.1 · 17 ноября 2024 г.

1.21.1 release, doesn't work on 1.21 or 1.21.2 unfortunately and probably won't work on regular forge

1.0.5Релиз1.20.6 · 1 ноября 2024 г.

fixed a bug that caused forcerun to always return an error message

Комментарии

Загружаем…