-
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_groups.rendering_mod]
name = "Rendering Mod"
description = "Which rendering mod you'd like to use.\nIncreases or decreases performance depending on choices."
side = "client"
[[unsup.flavor_groups.rendering_mod.choices]]
id = "none"
name = "None"
description = "No rendering mods."
[[unsup.flavor_groups.rendering_mod.choices]]
id = "sodium"
name = "Sodium"
description = "Installs Sodium and Indium, greatly increasing performance."
[[unsup.flavor_groups.rendering_mod.choices]]
id = "iris"
name = "Iris"
description = "Installs Sodium, Indium, and Iris, increasing performance and providing support for OptiFine shaderpacks."
[[unsup.flavor_groups.rendering_mod.choices]]
id = "canvas"
name = "Canvas"
description = "Installs Canvas, providing support for Canvas shaderpacks."
[unsup.flavor_groups.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.