From 48cd171b0959615ff47b221b635b883a5da272b9 Mon Sep 17 00:00:00 2001 From: Mrbysco Date: Sat, 2 Nov 2024 15:03:44 +0100 Subject: [PATCH] Change the sound type of the crystal related blocks Implements #1427 --- .../de/ellpeck/actuallyadditions/mod/blocks/BlockCrystal.java | 3 ++- .../actuallyadditions/mod/blocks/CrystalClusterBlock.java | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCrystal.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCrystal.java index c4f84daa9..53d28b041 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCrystal.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/BlockCrystal.java @@ -11,12 +11,13 @@ package de.ellpeck.actuallyadditions.mod.blocks; import net.minecraft.world.item.ItemStack; +import net.minecraft.world.level.block.SoundType; public class BlockCrystal extends ActuallyBlock { private final boolean isEmpowered; public BlockCrystal(boolean isEmpowered) { - super(ActuallyBlocks.defaultPickProps()); + super(ActuallyBlocks.defaultPickProps().sound(SoundType.AMETHYST)); this.isEmpowered = isEmpowered; } diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/CrystalClusterBlock.java b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/CrystalClusterBlock.java index 0805959ee..a565f73be 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/CrystalClusterBlock.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/blocks/CrystalClusterBlock.java @@ -45,7 +45,7 @@ public class CrystalClusterBlock extends FullyDirectionalBlock { super(Block.Properties.of() .instrument(NoteBlockInstrument.HAT) .lightLevel((e) -> 7) - .sound(SoundType.GLASS) + .sound(SoundType.AMETHYST_CLUSTER) .noOcclusion() .strength(0.25f, 1.0f)); }