Skip to content

Commit

Permalink
Fix #164
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 authored Nov 26, 2023
2 parents 2cbb658 + 3d9a2a5 commit 9207a9a
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@
import net.minecraft.item.ItemGroups;
import net.minecraft.item.Items;
import net.minecraft.particle.DefaultParticleType;
import net.minecraft.registry.Registries;
import net.minecraft.registry.Registry;
import net.minecraft.registry.RegistryKey;
import net.minecraft.sound.BlockSoundGroup;
import net.minecraft.sound.SoundEvent;
import net.minecraft.sound.SoundEvents;
import net.minecraft.util.Identifier;
import net.minecraft.world.biome.Biome;
import net.minecraft.world.biome.BiomeKeys;

Expand Down Expand Up @@ -98,6 +102,8 @@ public static void register(Registrar r) {
r.add(("cotton_sakura_blossom_pile"), COTTON_SAKURA_BLOSSOM_PILE);
r.add(("cotton_sakura_blossom"), COTTON_SAKURA_BLOSSOM);

registerMusic();

appendItemGroups();
appendVillagerTrades();
appendWorldGen();
Expand Down Expand Up @@ -145,4 +151,10 @@ private static void appendWorldGen() {
BiomePlacement.replaceOverworld(BiomeKeys.FOREST, BLUSH_SAKURA_GROVE, weight);
BiomePlacement.replaceOverworld(BiomeKeys.BIRCH_FOREST, COTTON_SAKURA_GROVE, weight);
}

private static void registerMusic() {
Identifier id = Promenade.id("music.overworld.sakura_groves");
Registry.registerReference(Registries.SOUND_EVENT, id, SoundEvent.of(id));

}
}

0 comments on commit 9207a9a

Please sign in to comment.