Adding Overrides
Overrides are directories or files that will be bundled with your modpack on exporting.
For example, this can be the config
directory, or CraftTweaker/KubeJS script directories.
An override can also be a single file, in the case that you want to bundle a README.md
or other files with your modpack.
Overrides must be added to the config file's overrides
, server_overrides
or client_overrides
properties for Pakku to be able to recognize them.
Overrides configuration accepts the glob pattern format as input.
Adding the `config` directory as an override
Open the config file (
pakku.json
) and create or find a property calledoverrides
.Add the name of the directory, in our case "
config
", to theoverrides
:{ "overrides": [ "config" ] }
Adding the `resources` directory as a client override
Open the config file (
pakku.json
) and create or find a property calledclient_overrides
.Add the name of the directory, in our case "
resources
", to theclient_overrides
:{ "client_overrides": [ "resources" ] }
Pattern Format
The following rules are used to interpret glob patterns:
The
*
character matches zero or more characters of a path name component without crossing directory boundaries.The
**
characters matches zero or more characters crossing directory boundaries.The
?
character matches exactly one character of a path name component.The backslash character
\
is used to escape characters that would otherwise be interpreted as special characters. The expression\\
matches a single backslash and\{
matches a left brace for example.The
[ ]
characters are a bracket expression that match a single character of a name component out of a set of characters. For example,[abc]
matchesa
,b
, orc
. The hyphen (-
) may be used to specify a range so[a-z]
specifies a range that matches froma
toz
(inclusive). These forms can be mixed so[abce-g]
matchesa
,b
,c
,e
,f
org
. If the character after the[
is a!
then it is used for negation so[!a-c]
matches any character excepta
,b
, orc
.
Within a bracket expression the*
,?
and\
characters match themselves. The-
character matches itself if it is the first character within the brackets, or the first character after the!
if negating.The
{ }
characters are a group of subpatterns, where the group matches if any subpattern in the group matches. The,
character is used to separate the subpatterns. Groups cannot be nested.If the first character is the
!
character, any matching file included by a previous pattern will become excluded again.
Example | Description |
---|---|
| Matches a path that represents a file name ending in |
| Matches file names containing a dot. |
| Matches file names ending with |
| Matches file names starting with |