Stope 2.8.0 for Fabric (1.20-1.20.1)
Curse Maven Snippet
What's new
New API for mod developers: DataGenRuns ends a Fabric data generator run once it finishes,
GameTestPlayers joins test players to a GameTest server on every loader, and a settings
screen bound to a file can show any setting as an on/off row. The mod's icon has a light
hairline border inside its edge, like Ancient Trees', Beneficiate's, Elsewood's, and
TrailWright's icons. Nothing else changes in game until a mod uses the new API. Mods built
for 2.0 through 2.7 run on 2.8.0 unchanged.
API
- Added
DataGenRuns(experimental, data generation):exitWhenFinishedends a Fabric data generator run once the generator finishes, sorunDatagenends; it refuses to run outside a data generator run. - Added
GameTestPlayers(experimental, GameTests):join(by name, or standing at a block),joinMock, andleaveadd a test player to the GameTest server's player list and remove it, on Fabric and Forge alike. - Added two
SettingsScreen.Builder#toggleoverloads (experimental, client) that take a key and the values that read as on and off: an on/off row over a setting of any type on a file-bound settings screen, whose value Done saves. - Changed
SettingsScreen#setToggle: on a toggle that already shows the value it does nothing, as a player would not click, where it used to report the value to the row again.

