Skip to Content
Foundry Apparatus

Commands

Available since 0.1.0

The /foundry command. Export your modpack's catalog of blocks, items, fluids, tags and assets so the validator can check ids from other mods.

Foundry Apparatus adds one command, /foundry. It also answers to /fa, /apparatus and /foundryapparatus, so use whichever you like. It needs operator permission (level 2), because it writes files.

Why export a catalog?

When the validator checks your files, it knows every block, item, fluid and tag of vanilla Minecraft. It does not know the ones added by the other mods in your pack, so it cannot tell whether mekanism:ingot_osmium exists. An exported catalog is a list of everything your modpack has, which gives the validator that knowledge.

Export the full catalog

In game (or in the server console), type:

/foundry export

This writes exports/pack-catalog-<version>.json inside your foundry_apparatus folder, listing every registered block, item, fluid, tag, data component and mod. In singleplayer it also lists the models, textures and sounds of Minecraft and of every mod; a dedicated server has no client assets, so it leaves them out.

The chat message shows the file, what it contains, and a button that copies the command to validate your pack against it.

If the file already exists, the command stops instead of replacing it. To replace it, add overwrite:

/foundry export overwrite

On a dedicated server, run the command from the server console: players cannot write files on the server.

Export one list

To look up ids while writing your files, export just one list:

/foundry export items

The lists are blocks, items, fluids, tags, components, mods and assets. Add a namespace to keep only one mod's entries:

/foundry export items mekanism

This writes exports/items-mekanism-<version>.json. Press Tab after the list name to see the namespaces you can use. overwrite works here too:

/foundry export items mekanism overwrite

/reload

/reload is a vanilla command, and Foundry Apparatus takes part in it: it reloads your recipes and screens, and sends operators a summary of what changed and of any problems. See Restart or /reload? for what it can and cannot apply.

On this page