Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save maruohon/41648539981ae7dbb8fb30b2ab12d126 to your computer and use it in GitHub Desktop.
Save maruohon/41648539981ae7dbb8fb30b2ab12d126 to your computer and use it in GitHub Desktop.
{
"mod_features":
[
{
// Optional. If not specified, then targets all mods by default. Accepts a regex targeting mod IDs.
"mod": ".*",
// Optional. If present, forces a default policy for all the features from the matched mods. Allowed values are "allow" or "deny".
// The overrides list below can be used to override the default policy for select features.
"policy": "deny",
// Optional. Can add a message that is visible to the user in the config menu for each overridden config option. Note that this only makes sense when disallowing/overriding features.
"message": "This server does now allow using this feature, as it's considered too powerful and cheaty and non-vanilla",
// Optional. If set to true, indicates that the config value is inversed, and instead of overriding the value to false, it should be overridden to true to disable it.
"inverse": false,
// Optional. Can target multiple features via a regex.
"feature_filter": "debug.*", // Optional. Can target multiple features via a regex.
// Optional. Can be used to append a common prefix to all the names on the "features" list.
"name_prefix": "tweak",
// Optional. Can be used to append a common suffix to all the names on the "features" list.
"name_suffix": "Config",
// Optional. Targets individual features by name.
"features": [ "FooBar", "SomeThing" ],
// Optional. Overrides the default policy for specific mods or features.
// The overrides are applied in the list order, so it's valid to first target a broader feature set and then revert that for individual features.
// Note that the overrides will inherit the mod and message values from the upper definition, if they are not set here.
"overrides":
[
{
// Optional. If not specified, then this is done for all mods targeted by the above mod filter.
"mod": "tweakeroo",
// Required for each override. Specifies the policy. Allowed values are "allow" or "deny".
// Usually should be the opposite of the default_policy for it to do anything. However subsequent overrides may want to revert a previous more broad override specification.
"policy": "allow",
// Optional. If set to true, indicates that the config value is inversed, and instead of overriding the value to false, it should be overridden to true to disable it.
"inverse": false,
// Optional. Can add a message that is visible to the user in the config menu for each overridden config option. Note that this only makes sense when disallowing/overriding features.
"message": "This server does now allow using this feature, as it's considered too powerful and cheaty and non-vanilla",
// Optional. Can target multiple features via a regex.
"feature_filter": "debug.*", // Optional. Can target multiple features via a regex.
// Optional. Can be used to append a common prefix to all the names on the "features" list.
"name_prefix": "tweak",
// Optional. Can be used to append a common suffix to all the names on the "features" list.
"name_suffix": "Config",
// Optional. Targets individual features by name.
// Note that one of "feature_filter" or "features" should be present for the override to be able to target a different set of configs than the parent definition.
"features": [ "FooBar", "SomeThing" ]
}
]
},
{
"mod": "minihud",
"policy": "allow",
"overrides":
[
{
"policy": "deny",
"features": [ "infoSlimeChunk", "infoFooBar" ]
}
]
},
{
"mod": "litematica",
"policy": "allow",
"overrides":
[
{
"policy": "deny",
"features": [ "easyPlaceMode" ]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment