Skip to content

Commit

Permalink
Merge branch '1.21.2' into 1.21.4
Browse files Browse the repository at this point in the history
  • Loading branch information
AViewFromTheTop committed Jan 8, 2025
2 parents e5d8613 + b932d2b commit f3fcfe2
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@ protected SoundEvent getAmbientSound() {

@Override
protected SoundEvent getHurtSound(@NotNull DamageSource source) {
return WWSounds.ENTITY_FIREFLY_HURT;
return WWSounds.ENTITY_BUTTERFLY_HURT;
}

@Override
protected SoundEvent getDeathSound() {
return WWSounds.ENTITY_FIREFLY_HURT;
return WWSounds.ENTITY_BUTTERFLY_DEATH;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public class DataFixersMixin {
builder.addFixer(new AddNewChoices(schema, WWConstants.string("chest_bubbler"), References.ENTITY));
builder.addFixer(new AddNewChoices(schema, WWConstants.string("sculk_spreader"), References.ENTITY));
builder.addFixer(new AddNewChoices(schema, WWConstants.string("scorched"), References.ENTITY));
builder.addFixer(new AddNewChoices(schema, WWConstants.string("moobloom"), References.ENTITY));
builder.addFixer(new AddNewChoices(schema, WWConstants.string("falling_leaves"), References.ENTITY));
return schema;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ public class V3328Mixin {
WWConstants.string("scorched"),
() -> V100.equipment(schema)
);
schema.register(
map,
WWConstants.string("moobloom"),
() -> V100.equipment(schema)
);
schema.register(
map,
WWConstants.string("falling_leaves"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ public final class WWSounds {
//ENTITY
public static final SoundEvent ENTITY_FIREFLY_HIDE = register("entity.firefly.hide");
public static final SoundEvent ENTITY_FIREFLY_HURT = register("entity.firefly.hurt");
public static final SoundEvent ENTITY_BUTTERFLY_HURT = register("entity.butterfly.hurt");
public static final SoundEvent ENTITY_BUTTERFLY_DEATH = register("entity.butterfly.death");
public static final SoundEvent ENTITY_ENDERMAN_ANGER_LOOP = register("entity.enderman.anger_loop");
public static final SoundEvent ENTITY_JELLYFISH_STING = register("entity.jellyfish.sting");
public static final SoundEvent ENTITY_JELLYFISH_AMBIENT_WATER = register("entity.jellyfish.ambient_water");
Expand Down
86 changes: 45 additions & 41 deletions src/main/java/net/frozenblock/wilderwild/worldgen/biome/Tundra.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
import java.util.function.Consumer;
import net.frozenblock.lib.worldgen.biome.api.FrozenBiome;
import net.frozenblock.lib.worldgen.biome.api.FrozenGrassColorModifiers;
import net.frozenblock.lib.worldgen.biome.api.parameters.Continentalness;
import net.frozenblock.lib.worldgen.biome.api.parameters.Erosion;
import net.frozenblock.lib.worldgen.biome.api.parameters.OverworldBiomeBuilderParameters;
import net.frozenblock.lib.worldgen.biome.api.parameters.Weirdness;
import net.frozenblock.wilderwild.WWConstants;
import net.frozenblock.wilderwild.config.WWWorldgenConfig;
import net.frozenblock.wilderwild.worldgen.WWSharedWorldgen;
Expand All @@ -42,6 +46,7 @@
import net.minecraft.world.level.biome.AmbientParticleSettings;
import net.minecraft.world.level.biome.Biome;
import net.minecraft.world.level.biome.BiomeGenerationSettings;
import net.minecraft.world.level.biome.Biomes;
import net.minecraft.world.level.biome.Climate;
import net.minecraft.world.level.biome.MobSpawnSettings;
import net.minecraft.world.level.levelgen.GenerationStep;
Expand All @@ -54,10 +59,8 @@
public final class Tundra extends FrozenBiome {
public static final Climate.Parameter TEMPERATURE = Climate.Parameter.span(-0.45F, -0.255F);
public static final Climate.Parameter HUMIDITY = Climate.Parameter.span(-1F, -0.2F);
public static final Climate.Parameter WEIRDNESS_A = Climate.Parameter.span(-0.4F, -0.05F);
public static final Climate.Parameter WEIRDNESS_B = Climate.Parameter.span(0.05F, 0.4F);
public static final Climate.Parameter EROSION_A = Climate.Parameter.span(-0.223F, 0.450F);
public static final Climate.Parameter CONTINENTALNESS = Climate.Parameter.span(0.030F, 0.550F);
public static final Climate.Parameter EROSION_A = Climate.Parameter.span(-2.233F, 0.450F);
public static final Climate.Parameter CONTINENTALNESS = Climate.Parameter.span(-0.110F, 0.030F);

public static final Climate.Parameter TEMPERATURE_B = Climate.Parameter.span(-1.000F, -0.450F);
public static final Climate.Parameter HUMIDITY_C = Climate.Parameter.span(0.300F, 0.700F);
Expand Down Expand Up @@ -211,45 +214,46 @@ public void addSpawns(MobSpawnSettings.Builder spawns) {
@Override
public void injectToOverworld(Consumer<Pair<Climate.ParameterPoint, ResourceKey<Biome>>> parameters) {
if (WWWorldgenConfig.get().biomeGeneration.generateTundra) {
this.addSurfaceBiome(
parameters,
TEMPERATURE,
HUMIDITY,
CONTINENTALNESS,
EROSION_A,
WEIRDNESS_A,
0F
);
this.addSurfaceBiome(
parameters,
TEMPERATURE,
HUMIDITY,
CONTINENTALNESS,
EROSION_A,
WEIRDNESS_B,
0F
);
this.addSurfaceBiome(
parameters,
TEMPERATURE_B,
HUMIDITY_C,
CONTINENTALNESS_B,
EROSION_B,
WEIRDNESS_C,
0F
);
this.addSurfaceBiome(
parameters,
TEMPERATURE_C,
HUMIDITY_D,
CONTINENTALNESS_C,
EROSION_C,
WEIRDNESS_D,
0F
);
for (Climate.ParameterPoint point : OverworldBiomeBuilderParameters.points(Biomes.PLAINS)) {
this.addSurfaceBiome(
parameters,
TEMPERATURE,
HUMIDITY,
CONTINENTALNESS,
EROSION_A,
point.weirdness(),
0F
);
this.addSurfaceBiome(
parameters,
TEMPERATURE,
HUMIDITY,
CONTINENTALNESS,
EROSION_A,
point.weirdness(),
0F
);
this.addSurfaceBiome(
parameters,
TEMPERATURE_B,
HUMIDITY_C,
CONTINENTALNESS_B,
EROSION_B,
WEIRDNESS_C,
0F
);
this.addSurfaceBiome(
parameters,
TEMPERATURE_C,
HUMIDITY_D,
CONTINENTALNESS_C,
EROSION_C,
WEIRDNESS_D,
0F
);

}
}
}

}

16 changes: 16 additions & 0 deletions src/main/resources/assets/wilderwild/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -2359,6 +2359,22 @@
],
"subtitle": "subtitles.entity.firefly.hurt"
},
"entity.butterfly.hurt": {
"sounds": [
"wilderwild:mob/firefly/hurt_1",
"wilderwild:mob/firefly/hurt_2",
"wilderwild:mob/firefly/hurt_3"
],
"subtitle": "subtitles.entity.butterfly.hurt"
},
"entity.butterfly.death": {
"sounds": [
"wilderwild:mob/firefly/hurt_1",
"wilderwild:mob/firefly/hurt_2",
"wilderwild:mob/firefly/hurt_3"
],
"subtitle": "subtitles.entity.butterfly.death"
},
"entity.enderman.anger_loop": {
"sounds": [
"wilderwild:mob/enderman/stare_loop"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/credits.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Soro:
- Beta Beaches.
- Water Pools generating near Rivers.
- Scorched Sand concept.
- Baobab Nuts.
- Baobab Nut concept.
- Help with Maple tree variants in worldgen.
- Huge help implementing and tweaking the Tundra biome.

Expand Down

0 comments on commit f3fcfe2

Please sign in to comment.