-
Notifications
You must be signed in to change notification settings - Fork 0
Packwiz extensions
Una edited this page Feb 3, 2023
·
14 revisions
To provide support for unsup's "flavor groups" in a Packwiz manifest, you can add a structure like the following to pack.toml
:
[unsup]
flavor_groups = true
[[unsup.flavor_group]]
id = "rendering_mod"
name = "Rendering Mod"
side = "client"
choices = ["none", "sodium", "iris", "canvas"]
[[unsup.flavor_group]]
id = "hard_mode"
name = "Hard Mode"
side = "both"
choices = ["off", "on"]
This extends Packwiz' existing optional mod support. So, to an existing optional metafile, you can configure which unsup flavor it belongs to:
[option]
optional = true
default = false
[unsup]
flavor_group = "hard_mode"
when = "on"
Any optional mods that do not have this section will have a flavor group automatically generated for them, named after the optional mod and with two choices; "on" and "off". This will render as a checkbox in the GUI.
If Packwiz adds support for optional mod groups, unsup will gain support for this and this functionality will be deprecated.