Rewritten under a new multiloader architecture. Uses Forge's `PlayerEvent.BreakSpeed` and config API to improve compatibility with other mods - no Mixins used.
Rewritten under a new multiloader architecture, full feature parity with the Forge version. Uses Neo's `PlayerEvent.BreakSpeed` and config API to improve compatibility with other mods - no Mixins used.
Rewritten under a new multiloader architecture, full feature parity with the Forge version. Uses Mixin and custom code instead of Fabric API because they don't offer the things this mod needs (a config API and an equiv to Forge's `PlayerEvent.BreakSpeed`)
Also: Spawner break speed changes now only affect players on Fabric rather than all mobs. This was an issue specific to the Fabric version of the mod and this fix now brings it more in line with how the mod behaves on other loaders.
Works on MC 26.1.2 and newer, including snapshots.
- Using a switch that returns constant values is faster than indexing on mutable array contents (the array itself was static final, but there's currently no public API way of telling the JVM that the array contents won't change - JDK internals have `@Stable` but can't use it in this mod)
- Grab level data once to reduce the number of untrusted final field reads (level#getDifficulty calls level#getLevelData)
- Backport of 1.4.1 and 1.4.2 to MC 1.20.1
- Performance improvements
- Dropped support for MC 1.20.0
- Please use 1.20.1 instead, all mods made for 1.20.0 should work on 1.20.1 or have updated versions which do
- Raised min Forge build requirement to 47.3.0
- Raised min GML requirement to 4.0.9
- Various performance improvements
- Smaller filesize
- Dropped support for MC 1.21.0
- Minecraft 1.21.0 has a security flaw and you should update to 1.21.1 immediately
- All 1.21.0 mods should work on 1.21.1
- Fixed a build mistake in 1.3.0 that caused a crash on launch in production, whoops! ([#7](https://github.com/PaintNinja/VariableSpawnerHardness/issues/7))
- Removed Mixin/coremod usage, now using pure Forge API stuff for better compatibility with other mods and easier ports (partly thanks to Lex, XFactHD, PlatinPython, diesieben07 and Curle for the help)
- The hardness is now configurable (partly thanks to CalamitousEnd for the initial code)