Skip to content

Shipping your pack ​

You finished your rules, templates and settings in the pack editor. This page shows what to put into your modpack, what to leave out, and what locks do for your players afterwards.

1. What to ship ​

Everything the pack editor saves is in one folder of your development instance:

config/whathitme/
  pack/                             ship: rules, templates, settings, locks
  whathitme-common.cfg              optional (see below)
  whathitme-client.cfg              do NOT ship
  whathitme-client-templates.json   do NOT ship
  .cache/                           do NOT ship (your own changed settings)
  .backup/                          leave out (pack editor backups)
File / folderShip?Why
pack/YesYour rules, pack templates, setting values, locks, switched-off variables and unlock conditions
whathitme-common.cfgOnly if you changed world settings thereSettings in the pack (Settings tab) do the same job and can be locked; prefer them
whathitme-client.cfgNoThe player's own file: display switches, panel layout and their own names, tips and hidden damage (personal mode, [Mute])
whathitme-client-templates.jsonNoThe player's own templates
.cache/NoCatalog cache (rebuilt on start) and changed-settings.json, the list of settings you changed in /whm config. Shipped, it would mark those settings as the player's own choice, and your unlocked pack defaults would not apply to them
.backup/NoCopies the pack editor makes before converting or deleting files

Also ship what your rules depend on: quest files (FTB Quests, Better Questing, Heracles), Game Stages setup, and the KubeJS / CraftTweaker scripts that use the script API (setSetting, addLock, script: conditions...).

Your updates never reset player choices

Your settings live in pack/, the player's choices in the client files. When you release an update, the launcher replaces pack/ and the player keeps their own layout, names and templates. You do not need Default Options or similar mods for What Hit Me?.

Shipping whathitme-client.cfg breaks this: every pack update would overwrite the player's file. To change a default, set it in the Settings tab instead (unlocked = default the player may change, locked = forced).

2. Export ​

  • CurseForge app / Prism Launcher / Modrinth app: tick config/whathitme/pack/ (or the whole config/ folder, minus the files above) when you export.
  • Server pack: put the same config/whathitme/pack/ folder into the server files. On a server, the server's folder decides for everyone.
  • Clients and server need the same major version of What Hit Me? (2.x). Players without the mod can still join unless requireClientMod is on. See Versions & requireClientMod.

Before you export, run /whm reload once: it lists files with errors and warnings (wrong keys, switched-off variables still in use, 1.3 files). A clean reload means the files you ship are read the same way on every machine.

3. What locks do after release ​

A lock forces your value and hides or refuses the feature. How strong it is depends on where the game runs, the same as for every other mod:

WherePlayers without opOperators
ServerCannot change locked values or use locked commands. Editing their own client files does not help: the server sends the effective values to every modded clientCan open /whm pack and change the lock; this edits the server's pack folder for everyone
Single player, cheats offCannot change locked values in /whm config, cannot open /whm pack—
Single player, cheats on (or edited files)—Can open /whm pack and change anything, like any config of any mod

So locks keep the experience you designed for normal play and are fully enforced on servers, while a single player who turns on cheats can still change their own game. This is the same line other big packs draw: FTB Quests needs op (cheats in single player) for its edit mode, and Forge server configs are forced by the server but editable in your own single player world.

Locks beat op inside the game

Even an operator cannot use a locked command or change a locked value in /whm config. To change it, they unlock it in the pack editor's Settings tab (or edit the pack file and run /whm reload). Locks added by scripts cannot be removed in the editor at all.

Checklist ​

  • [ ] /whm reload shows no errors or warnings
  • [ ] config/whathitme/pack/ is in the client export and the server pack
  • [ ] whathitme-client.cfg, whathitme-client-templates.json, .cache/, .backup/ are not in the export
  • [ ] Quest files and scripts your rules use are included
  • [ ] Every player and the server use What Hit Me? 2.x

Made by junjun1z. The mods are MIT licensed.