Closed ApexModder closed 58 minutes ago
Last commit published: a532e439eae683949a5897d25eb69ff436d55a54.
Closing as this does not seem possible, thought I had it implemented and working but turns out initial world/server load reports the incorrect status for feature flag states causing the test recipe to not be enabled. Subsequent /reload
after the world/server has loaded does fix this.
I have tried many different ways to pass the enabled feature set to the conditions context object, but nothing seems to work, and flags are always reporting back as disabled.
Modders who maintain multi-jar mods, that being mods whose feature set is split across multiple jars, may want a single flag in their common jar which toggles features across all of their mod jars. Due to the nature of how feature packs work and are enabled, this is not possible.
While you can have multiple packs which all enable the same flag, they will all display as individual selections in the "experiments" screen, when the intention is to have 1 toggle for all these packs.
To work around that, modders can make use of the newly added condition in this PR, which takes in a set of feature flags and whether to validate for them being enabled or disabled to conditionally load their desired elements without needing to be in the same feature pack.