ServerPackCreator-Help Help

File Exclusions

Excluding files

Using exclusion-filters

You can specify exclusion-filters for every inclusion-specification of your server pack config. There are two ways of telling SPC to exclude files.

  1. Inclusion-specific exclusion

This will exclude files only for the inclusion at hand. So if you specify an exclusion for, say, config, then only files from config will be excluded.

Setting config.brandon3055.servers.1234-5678-91011-121314.dat as the exclusion-filter for config will exclude said file from the config-directory during server pack generation.

  1. Global exclusion

If you specify an exclusion-filter for an inclusion-spec without setting a source, then it will be treated as a global exclusion-filter, which can and will affect every single inclusion-spec in your server pack.

Setting .*.png, for example, will exclude every .png-file from your server pack.

From ZIP-archives

You can globally configure files which should be excluded from ZIP-archives. To do so, you need to edit your serverpackcreator.properties-file and change the de.griefed.serverpackcreator.serverpack.zip.exclude-property to your liking.

There are some filters you can make use of if you want to, for example, exclude a files which has the Minecraft version, modloader name, or modloader version in its name.

These filters are to be used in plain text, meaning:

  1. MINECRAFT_VERSION

  2. MODLOADER

  3. MODLOADER_VERSION

If any file you specify contains any of these three strings, they will be replaced respectively. Example: minecraft_server.MINECRAFT_VERSION.jar becomes minecraft_server.1.16.5.jar when generating a server pack for a modpack which uses Minecraft version 1.16.5.

The default setting is minecraft_server.MINECRAFT_VERSION.jar,server.jar,libraries/net/minecraft/server/MINECRAFT_VERSION/server-MINECRAFT_VERSION.jar and will exclude the Minecraft server jar, a file called server.jar, as well as the Minecraft server jar should it be present in the libraries-folder.

To deactivate the exclusion alltogether, set de.griefed.serverpackcreator.serverpack.zip.exclude.enabled to false

Last modified: 01 March 2025