Skip to content

Commit

Permalink
Tweak splash droplet spawn radius
Browse files Browse the repository at this point in the history
  • Loading branch information
doctor4t committed Jan 3, 2025
1 parent ebc5f4c commit 72278c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ dependencies {
modLocalImplementation "com.terraformersmc:modmenu:${mod_menu_version}"

// iris and sodium
modImplementation("maven.modrinth:sodium:${project.sodium_version}") { transitive = true }
modImplementation("maven.modrinth:iris:${project.iris_version}") { transitive = true }
modImplementation("maven.modrinth:sodium:${project.sodium_version}")
modImplementation("maven.modrinth:iris:${project.iris_version}")
runtimeOnly("org.anarres:jcpp:${project.jcpp_version}")
implementation("io.github.douira:glsl-transformer:${project.glslTransformer_version}")
}

processClientResources {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ public void tick() {

if (this.age == 1) {
for (int i = 0; i < this.widthMultiplier * 10f; i++) {
this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 2.5f, random.nextFloat() / 10f + this.heightMultiplier / 2.8f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 2.5f);
this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 5f * this.widthMultiplier / 2.5f, random.nextFloat() / 10f + this.heightMultiplier / 2.8f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 2.5f);
}
} else if (this.age == wave2Start) {
for (int i = 0; i < this.widthMultiplier * 5f; i++) {
this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f * .5f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 10f * .5f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f, random.nextFloat() / 10f + this.heightMultiplier / 2.2f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f);
this.world.addParticle(this.getDropletParticle(), this.x + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f * .5f), this.y, this.z + (EffectiveUtils.getRandomFloatOrNegative(this.random) * this.widthMultiplier / 5f * .5f), EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f, random.nextFloat() / 10f + this.heightMultiplier / 2.2f, EffectiveUtils.getRandomFloatOrNegative(this.random) / 10f * this.widthMultiplier / 5f);
}
}
}
Expand Down

0 comments on commit 72278c4

Please sign in to comment.