All versions
2.1.0
Release
Gun Scaling 2.1.05 months ago 342.1K
Uploaded by
Compatibility
Minecraft: Java Edition
1.20.1
Platform
Fabric
Supported environments
Client and server
Changes
Changelog
[2.1.0]
Added
- Power enchantment scaling for the Create Potato Launcher, matching the gun scaling math formula.
- Fetch logic to check the player's main hand or off-hand for the
PotatoCannonItemto determine the Power enchantment level before a potato hits an entity. - Reflection logic to dynamically fetch the
power_enchantment_multiplier_per_levelconfig value from ArchersMod (net.archers.ArchersMod). This gracefully defaults to an0.08value if the mod is not installed. - Configuration for
accelerationCardScale(defaulting to 12.5% or0.125f) insideGunScalingConfigunder thematterCannonsection. - Mixin functionality in
MatterCannonItemMixin.javato count and apply the number ofSPEED_CARD(Acceleration Cards) installed in a player's Matter Cannon.
Changed
- Refactored
PotatoProjectileMixin.javato inject damage modifiers beforeEntity.damage(...)is successfully executed. - Reworked the final damage formula for the Potato Launcher so that the Power calculation compounds multiplicatively:
Final Damage = True Base Damage × Power Term × Attribute Multiplier. - Updated the Matter Cannon damage calculation to retrieve raw base damage by isolating AE2's built-in penetration.
- Applied custom scaling formula for Matter Cannons:
Current_Damage = Raw_Base_Dmg * (1 + attr / scaling) * (1 + Acceleration_Card_Multiplier * Acceleration_Card_Number).
Fixed
- Built-in Create Mod power scaling logic. The
PotatoProjectileEntitynatively scales damage upwards by1 + (Power Level * 0.2)internally before passing the value to theonEntityHitmethod. The mixin now intercepts this damage and mathematically reverses this 20% calculation by dividing the original damage by(1 + powerLevel * 0.2f)to return the true raw base damage before applying the custom scaling.
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:dbVomK9Z:xObOj5b9"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:dbVomK9Z:xObOj5b9"
}

