All versions
1.0.4
Release
StrikeAfterSwing 1.0.4 - forge 1.18.2last month 4
Compatibility
Minecraft: Java Edition
1.18.2
Platform
Forge
Supported environments
Client and server
Changes
New
- config/strikeafterswing/limits.json sets a floor for the final swing duration, so fast mobs can no longer attack faster than players can react to: {"minWindupTicks": 12} The value is in ticks (20 = 1 second) and defaults to 0, which means "no floor" - an absent file changes nothing, exactly like 1.0.3.
- The floor applies to the final duration (after the windup attribute and the windup.json multiplier), so it only raises short swings. A mob that already swings slowly (Mining Fatigue, and on 26.1.2 the held item's swing animation) keeps its own timing: this is a lower bound, not a replacement.
- The swing animation and the hit timing are driven by the same value, so the animation really does get longer instead of the damage merely arriving late - the dodge/parry window grows as requested.
- Per-mob control keeps working and is layered underneath: the strikeafterswing:attack_windup attribute and the windup.json multipliers still apply, and other mods or datapacks can keep raising individual mobs with attribute modifiers.
- Hot-reloaded like the other config files (a couple of seconds), and deleting the file turns the floor off again. An invalid value (not a number, negative, NaN) is ignored with a log warning and the floor falls back to 0.
Compatibility
- Same nine builds as 1.0.3: Forge 1.16.5 / 1.18.2 / 1.19.2 / 1.20.1, Fabric 1.20.1 / 1.21.1 / 26.1.2, NeoForge 1.21.1 / 26.1.2.
- No config change is required when updating: a missing limits.json, or minWindupTicks 0, keeps 1.0.3 behaviour exactly.
- Blacklisted mobs and player swings ignore the floor.
Verified
- All nine targets build with their own JDK and pass the full behaviour suite (12 scenarios on a live dedicated server), including the new minimum scenario with a 200 tick floor: a vanilla 6 tick husk lands its first hit at 200-223 ticks, a zombie whose x0.01 entry computes a fraction of a tick at 220-240, and a husk at maximum Mining Fatigue keeps its 518-558 tick swing.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:SS4Ij1nB:OjQtvhnx"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:SS4Ij1nB:OjQtvhnx"
}

