mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-27 08:14:45 +00:00
The built-ins no longer travel as one iris-builtins.jar that a pack has to copy by hand. IrisModule builds one jar per module (the eight placement stages share one) with an index of the id and version each module reports, and Iris bundles that folder. A pack lists the modules it uses in modules.json, with the version it was built with and an optional pinned list. Before a pack loads, Iris installs the jars of listed modules and replaces a jar that differs from the one it ships. It keeps a jar when the module is pinned, when the pack holds a newer version than Iris ships, and, in a world's copy of a pack, when the major version changed, because new chunks would not match the old ones. A jar that shares classes with a kept jar stays with it, since the two were compiled against each other. /iris pack update takes the kept terrain changes for a world. What is installed is recorded in modules.lock.json. Module versions are now major.minor.patch per module, starting at 1.0.0, with major meaning "places different blocks or stops loading settings".