Skip to content

Commit

Permalink
Preliminary 1.19.3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed Dec 10, 2022
1 parent ff08ec4 commit d2b26e3
Show file tree
Hide file tree
Showing 603 changed files with 39,513 additions and 1,073 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
/.settings/
/.classpath
/.project
/src/generated/

# OS generated files
*.DS_Store
Expand Down
7 changes: 5 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@ minecraft {
workingDirectory = project.file("run")
source sourceSets.main
}
data {
workingDirectory = project.file("run")
source sourceSets.main
args '--mod', mod_id, '--all', '--output', file('src/generated/resources/'), '--existing', file('src/main/resources/')
}
}


}

// Configure the source folders
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

# Project
mod_version=17.1.2
mod_version=17.2.0
mod_id=biomesoplenty
mod_name=BiomesOPlenty
mod_display_name=Biomes O' Plenty
Expand All @@ -16,6 +16,6 @@ mod_scm_url=scm:git:[email protected]:Glitchfiend/BiomesOPlenty.git
mod_curseforge_id=220318

# Dependencies
minecraft_version=1.19.2
forge_version=43.1.25
terrablender_version=1.19.2-2.0.1.128
minecraft_version=1.19.3
forge_version=44.0.4
terrablender_version=1.19.3-2.1.0.132
6 changes: 3 additions & 3 deletions src/main/java/biomesoplenty/api/biome/BOPBiomes.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import biomesoplenty.core.BiomesOPlenty;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.Lists;
import net.minecraft.core.Registry;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.biome.Biome;
Expand Down Expand Up @@ -97,15 +97,15 @@ public static List<ResourceKey<Biome>> getAllBiomes()

private static ResourceKey<Biome> registerOverworld(String name)
{
ResourceKey<Biome> key = ResourceKey.create(Registry.BIOME_REGISTRY, new ResourceLocation(BiomesOPlenty.MOD_ID, name));
ResourceKey<Biome> key = ResourceKey.create(Registries.BIOME, new ResourceLocation(BiomesOPlenty.MOD_ID, name));
overworldBiomes.add(key);
allBiomes.add(key);
return key;
}

private static ResourceKey<Biome> register(String name)
{
ResourceKey<Biome> key = ResourceKey.create(Registry.BIOME_REGISTRY, new ResourceLocation(BiomesOPlenty.MOD_ID, name));
ResourceKey<Biome> key = ResourceKey.create(Registries.BIOME, new ResourceLocation(BiomesOPlenty.MOD_ID, name));
allBiomes.add(key);
return key;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import biomesoplenty.common.entity.ChestBoatBOP;
import biomesoplenty.core.BiomesOPlenty;
import net.minecraft.client.model.BoatModel;
import net.minecraft.client.model.ChestBoatModel;
import net.minecraft.client.model.geom.builders.LayerDefinition;
import net.minecraft.client.renderer.blockentity.SignRenderer;
import net.minecraft.world.entity.EntityType;
Expand All @@ -29,8 +30,8 @@ public class EntityRendererHandler
public static void onRegisterRenderers(EntityRenderersEvent.RegisterRenderers event)
{
// Register boat layer definitions
LayerDefinition boatLayerDefinition = BoatModel.createBodyModel(false);
LayerDefinition chestBoatLayerDefinition = BoatModel.createBodyModel(true);
LayerDefinition boatLayerDefinition = BoatModel.createBodyModel();
LayerDefinition chestBoatLayerDefinition = ChestBoatModel.createBodyModel();

for (BoatBOP.ModelType type : BoatBOP.ModelType.values())
{
Expand Down
10 changes: 7 additions & 3 deletions src/main/java/biomesoplenty/client/renderer/BoatRendererBOP.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
import com.google.common.collect.ImmutableMap;
import com.mojang.datafixers.util.Pair;
import net.minecraft.client.model.BoatModel;
import net.minecraft.client.model.ChestBoatModel;
import net.minecraft.client.model.ListModel;
import net.minecraft.client.model.geom.ModelLayerLocation;
import net.minecraft.client.model.geom.ModelPart;
import net.minecraft.client.renderer.entity.BoatRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.resources.ResourceLocation;
Expand All @@ -21,7 +24,7 @@

public class BoatRendererBOP extends BoatRenderer
{
private final Map<BoatBOP.ModelType, Pair<ResourceLocation, BoatModel>> boatResources;
private final Map<BoatBOP.ModelType, Pair<ResourceLocation, ListModel<Boat>>> boatResources;

public BoatRendererBOP(EntityRendererProvider.Context context, boolean hasChest)
{
Expand All @@ -32,7 +35,7 @@ public BoatRendererBOP(EntityRendererProvider.Context context, boolean hasChest)
}

@Override
public Pair<ResourceLocation, BoatModel> getModelWithLocation(Boat boat)
public Pair<ResourceLocation, ListModel<Boat>> getModelWithLocation(Boat boat)
{
if (boat instanceof ChestBoatBOP)
return this.boatResources.get(((ChestBoatBOP)boat).getModel());
Expand Down Expand Up @@ -63,6 +66,7 @@ public static ModelLayerLocation createChestBoatModelName(BoatBOP.ModelType mode
private BoatModel createBoatModel(EntityRendererProvider.Context context, BoatBOP.ModelType model, boolean hasChest)
{
ModelLayerLocation modellayerlocation = hasChest ? createChestBoatModelName(model) : createBoatModelName(model);
return new BoatModel(context.bakeLayer(modellayerlocation), hasChest);
ModelPart baked = context.bakeLayer(modellayerlocation);
return hasChest ? new ChestBoatModel(baked) : new BoatModel(baked);
}
}
36 changes: 19 additions & 17 deletions src/main/java/biomesoplenty/common/biome/BOPNetherBiomes.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@

import biomesoplenty.api.sound.BOPSounds;
import biomesoplenty.common.worldgen.placement.BOPNetherPlacements;
import net.minecraft.core.Holder;
import net.minecraft.core.HolderGetter;
import net.minecraft.core.particles.ParticleTypes;
import net.minecraft.data.worldgen.BiomeDefaultFeatures;
import net.minecraft.data.worldgen.Carvers;
import net.minecraft.data.worldgen.placement.NetherPlacements;
import net.minecraft.data.worldgen.placement.OrePlacements;
import net.minecraft.data.worldgen.placement.VegetationPlacements;
import net.minecraft.resources.ResourceKey;
import net.minecraft.sounds.Musics;
import net.minecraft.sounds.SoundEvents;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.MobCategory;
import net.minecraft.world.level.biome.*;
import net.minecraft.world.level.levelgen.GenerationStep;
import net.minecraft.world.level.levelgen.carver.ConfiguredWorldCarver;
import net.minecraft.world.level.levelgen.placement.PlacedFeature;
import net.minecraftforge.registries.RegistryObject;

Expand All @@ -31,19 +33,19 @@ private static void addFeature(BiomeGenerationSettings.Builder builder, Generati
builder.addFeature(step, feature.getHolder().orElseThrow());
}

private static void addFeature(BiomeGenerationSettings.Builder builder, GenerationStep.Decoration step, Holder<PlacedFeature> feature)
private static void addFeature(BiomeGenerationSettings.Builder builder, GenerationStep.Decoration step, ResourceKey<PlacedFeature> feature)
{
builder.addFeature(step, feature);
}

public static Biome crystallineChasm()
public static Biome crystallineChasm(HolderGetter<PlacedFeature> placedFeatureGetter, HolderGetter<ConfiguredWorldCarver<?>> carverGetter)
{
// Mob spawns
MobSpawnSettings.Builder spawnBuilder = new MobSpawnSettings.Builder();
spawnBuilder.addSpawn(MobCategory.CREATURE, new MobSpawnSettings.SpawnerData(EntityType.STRIDER, 60, 1, 2));

// Biome features
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder();
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder(placedFeatureGetter, carverGetter);
biomeBuilder.addCarver(GenerationStep.Carving.AIR, Carvers.NETHER_CAVE);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.SPRING_OPEN);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.GLOWSTONE_EXTRA);
Expand All @@ -58,11 +60,11 @@ public static Biome crystallineChasm()

return new Biome.BiomeBuilder()
.precipitation(Biome.Precipitation.NONE).temperature(2.0F).downfall(0.0F)
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x59002C).skyColor(calculateSkyColor(2.0F)).ambientParticle(new AmbientParticleSettings(ParticleTypes.ELECTRIC_SPARK, 0.0008925F)).ambientLoopSound(SoundEvents.AMBIENT_CRIMSON_FOREST_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_BASALT_DELTAS_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMETHYST_BLOCK_CHIME, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_CRYSTALLINE_CHASM.get())).build())
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x59002C).skyColor(calculateSkyColor(2.0F)).ambientParticle(new AmbientParticleSettings(ParticleTypes.ELECTRIC_SPARK, 0.0008925F)).ambientLoopSound(SoundEvents.AMBIENT_CRIMSON_FOREST_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_BASALT_DELTAS_MOOD, 6000, 8, 2.0D))/* TODO: .ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMETHYST_BLOCK_CHIME, 0.0111D))*/.backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_CRYSTALLINE_CHASM.getHolder().get())).build())
.mobSpawnSettings(spawnBuilder.build()).generationSettings(biomeBuilder.build()).build();
}

public static Biome eruptingInferno()
public static Biome eruptingInferno(HolderGetter<PlacedFeature> placedFeatureGetter, HolderGetter<ConfiguredWorldCarver<?>> carverGetter)
{
// Mob spawns
MobSpawnSettings.Builder spawnBuilder = new MobSpawnSettings.Builder();
Expand All @@ -74,7 +76,7 @@ public static Biome eruptingInferno()
spawnBuilder.addSpawn(MobCategory.CREATURE, new MobSpawnSettings.SpawnerData(EntityType.STRIDER, 60, 1, 2));

// Biome features
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder();
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder(placedFeatureGetter, carverGetter);
biomeBuilder.addCarver(GenerationStep.Carving.AIR, Carvers.NETHER_CAVE);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.SPRING_OPEN);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.PATCH_FIRE);
Expand All @@ -94,11 +96,11 @@ public static Biome eruptingInferno()

return new Biome.BiomeBuilder()
.precipitation(Biome.Precipitation.NONE).temperature(2.0F).downfall(0.0F)
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x4F2B13).skyColor(calculateSkyColor(2.0F)).ambientParticle(new AmbientParticleSettings(ParticleTypes.SMOKE, 0.00023065104F)).ambientLoopSound(SoundEvents.AMBIENT_BASALT_DELTAS_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_BASALT_DELTAS_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMBIENT_BASALT_DELTAS_ADDITIONS, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_ERUPTING_INFERNO.get())).build())
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x4F2B13).skyColor(calculateSkyColor(2.0F)).ambientParticle(new AmbientParticleSettings(ParticleTypes.SMOKE, 0.00023065104F)).ambientLoopSound(SoundEvents.AMBIENT_BASALT_DELTAS_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_BASALT_DELTAS_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMBIENT_BASALT_DELTAS_ADDITIONS, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_ERUPTING_INFERNO.getHolder().get())).build())
.mobSpawnSettings(spawnBuilder.build()).generationSettings(biomeBuilder.build()).build();
}

public static Biome undergrowth()
public static Biome undergrowth(HolderGetter<PlacedFeature> placedFeatureGetter, HolderGetter<ConfiguredWorldCarver<?>> carverGetter)
{
// Mob spawns
MobSpawnSettings.Builder spawnBuilder = new MobSpawnSettings.Builder();
Expand All @@ -108,7 +110,7 @@ public static Biome undergrowth()
spawnBuilder.addSpawn(MobCategory.CREATURE, new MobSpawnSettings.SpawnerData(EntityType.STRIDER, 60, 1, 2));

// Biome features
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder();
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder(placedFeatureGetter, carverGetter);
biomeBuilder.addCarver(GenerationStep.Carving.AIR, Carvers.NETHER_CAVE);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.SPRING_OPEN);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.PATCH_FIRE);
Expand All @@ -129,11 +131,11 @@ public static Biome undergrowth()

return new Biome.BiomeBuilder()
.precipitation(Biome.Precipitation.NONE).temperature(2.0F).downfall(0.0F)
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x1C2109).skyColor(calculateSkyColor(2.0F)).ambientParticle(new AmbientParticleSettings(ParticleTypes.SPORE_BLOSSOM_AIR, 0.00357F)).ambientLoopSound(SoundEvents.AMBIENT_WARPED_FOREST_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_CRIMSON_FOREST_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMBIENT_NETHER_WASTES_ADDITIONS, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_UNDERGROWTH.get())).build())
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x1C2109).skyColor(calculateSkyColor(2.0F)).ambientParticle(new AmbientParticleSettings(ParticleTypes.SPORE_BLOSSOM_AIR, 0.00357F)).ambientLoopSound(SoundEvents.AMBIENT_WARPED_FOREST_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_CRIMSON_FOREST_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMBIENT_NETHER_WASTES_ADDITIONS, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_UNDERGROWTH.getHolder().get())).build())
.mobSpawnSettings(spawnBuilder.build()).generationSettings(biomeBuilder.build()).build();
}

public static Biome visceralHeap()
public static Biome visceralHeap(HolderGetter<PlacedFeature> placedFeatureGetter, HolderGetter<ConfiguredWorldCarver<?>> carverGetter)
{
// Mob spawns
MobSpawnSettings.Builder spawnBuilder = new MobSpawnSettings.Builder();
Expand All @@ -142,7 +144,7 @@ public static Biome visceralHeap()
spawnBuilder.addSpawn(MobCategory.CREATURE, new MobSpawnSettings.SpawnerData(EntityType.STRIDER, 60, 1, 2));

// Biome features
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder();
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder(placedFeatureGetter, carverGetter);
biomeBuilder.addCarver(GenerationStep.Carving.AIR, Carvers.NETHER_CAVE);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, NetherPlacements.SPRING_OPEN);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, OrePlacements.ORE_MAGMA);
Expand All @@ -160,19 +162,19 @@ public static Biome visceralHeap()

return new Biome.BiomeBuilder()
.precipitation(Biome.Precipitation.NONE).temperature(2.0F).downfall(0.0F)
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x601F18).skyColor(calculateSkyColor(2.0F)).ambientLoopSound(SoundEvents.AMBIENT_NETHER_WASTES_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_SOUL_SAND_VALLEY_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMBIENT_CRIMSON_FOREST_ADDITIONS, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_VISCERAL_HEAP.get())).build())
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x601F18).skyColor(calculateSkyColor(2.0F)).ambientLoopSound(SoundEvents.AMBIENT_NETHER_WASTES_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_SOUL_SAND_VALLEY_MOOD, 6000, 8, 2.0D)).ambientAdditionsSound(new AmbientAdditionsSettings(SoundEvents.AMBIENT_CRIMSON_FOREST_ADDITIONS, 0.0111D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_VISCERAL_HEAP.getHolder().get())).build())
.mobSpawnSettings(spawnBuilder.build()).generationSettings(biomeBuilder.build()).build();
}

public static Biome witheredAbyss()
public static Biome witheredAbyss(HolderGetter<PlacedFeature> placedFeatureGetter, HolderGetter<ConfiguredWorldCarver<?>> carverGetter)
{
// Mob spawns
MobSpawnSettings.Builder spawnBuilder = new MobSpawnSettings.Builder();
spawnBuilder.addSpawn(MobCategory.MONSTER, new MobSpawnSettings.SpawnerData(EntityType.ENDERMAN, 1, 4, 4));
spawnBuilder.addSpawn(MobCategory.MONSTER, new MobSpawnSettings.SpawnerData(EntityType.WITHER_SKELETON, 1, 1, 1));

// Biome features
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder();
BiomeGenerationSettings.Builder biomeBuilder = new BiomeGenerationSettings.Builder(placedFeatureGetter, carverGetter);
biomeBuilder.addCarver(GenerationStep.Carving.AIR, Carvers.NETHER_CAVE);
BiomeDefaultFeatures.addNetherDefaultOres(biomeBuilder);
addFeature(biomeBuilder, GenerationStep.Decoration.UNDERGROUND_DECORATION, BOPNetherPlacements.OBSIDIAN_SPLATTER);
Expand All @@ -181,7 +183,7 @@ public static Biome witheredAbyss()

return new Biome.BiomeBuilder()
.precipitation(Biome.Precipitation.NONE).temperature(2.0F).downfall(0.0F)
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x0A0711).skyColor(calculateSkyColor(2.0F)).grassColorOverride(0x312C36).foliageColorOverride(0x312C36).ambientLoopSound(SoundEvents.AMBIENT_SOUL_SAND_VALLEY_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_SOUL_SAND_VALLEY_MOOD, 6000, 8, 2.0D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_WITHERED_ABYSS.get())).build())
.specialEffects((new BiomeSpecialEffects.Builder()).waterColor(4159204).waterFogColor(329011).fogColor(0x0A0711).skyColor(calculateSkyColor(2.0F)).grassColorOverride(0x312C36).foliageColorOverride(0x312C36).ambientLoopSound(SoundEvents.AMBIENT_SOUL_SAND_VALLEY_LOOP).ambientMoodSound(new AmbientMoodSettings(SoundEvents.AMBIENT_SOUL_SAND_VALLEY_MOOD, 6000, 8, 2.0D)).backgroundMusic(Musics.createGameMusic(BOPSounds.MUSIC_BIOME_WITHERED_ABYSS.getHolder().get())).build())
.mobSpawnSettings(spawnBuilder.build()).generationSettings(biomeBuilder.build()).build();
}
}
Loading

0 comments on commit d2b26e3

Please sign in to comment.