diff --git a/patches/minecraft/net/minecraft/item/BucketItem.java.patch b/patches/minecraft/net/minecraft/item/BucketItem.java.patch index 1b743702ac..663bf3bf8c 100644 --- a/patches/minecraft/net/minecraft/item/BucketItem.java.patch +++ b/patches/minecraft/net/minecraft/item/BucketItem.java.patch @@ -35,7 +35,7 @@ p_77659_2_.func_71029_a(Stats.field_75929_E.func_199076_b(this)); - p_77659_2_.func_184185_a(fluid.func_207185_a(FluidTags.field_206960_b) ? SoundEvents.field_187633_N : SoundEvents.field_187630_M, 1.0F, 1.0F); + -+ SoundEvent soundevent = this.field_77876_a.getAttributes().getEmptySound(); ++ SoundEvent soundevent = this.field_77876_a.getAttributes().getFillSound(); + if (soundevent == null) soundevent = fluid.func_207185_a(FluidTags.field_206960_b) ? SoundEvents.field_187633_N : SoundEvents.field_187630_M; + p_77659_2_.func_184185_a(soundevent, 1.0F, 1.0F); ItemStack itemstack1 = DrinkHelper.func_242398_a(itemstack, p_77659_2_, new ItemStack(fluid.func_204524_b())); diff --git a/src/main/java/net/minecraftforge/common/ForgeHooks.java b/src/main/java/net/minecraftforge/common/ForgeHooks.java index d5888b4039..bc8eac4a2f 100644 --- a/src/main/java/net/minecraftforge/common/ForgeHooks.java +++ b/src/main/java/net/minecraftforge/common/ForgeHooks.java @@ -93,6 +93,7 @@ import net.minecraft.util.text.*; import net.minecraft.world.spawner.AbstractSpawner; import net.minecraft.tileentity.FurnaceTileEntity; import net.minecraft.tileentity.TileEntity; +import net.minecraft.util.SoundEvents; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.MathHelper; @@ -838,13 +839,17 @@ public class ForgeHooks new ResourceLocation("block/water_flow")) .overlay(new ResourceLocation("block/water_overlay")) .translationKey("block.minecraft.water") - .color(0xFF3F76E4).build(fluid); + .color(0xFF3F76E4) + .sound(SoundEvents.ITEM_BUCKET_FILL, SoundEvents.ITEM_BUCKET_EMPTY) + .build(fluid); if (fluid instanceof LavaFluid) return net.minecraftforge.fluids.FluidAttributes.builder( new ResourceLocation("block/lava_still"), new ResourceLocation("block/lava_flow")) .translationKey("block.minecraft.lava") - .luminosity(15).density(3000).viscosity(6000).temperature(1300).build(fluid); + .luminosity(15).density(3000).viscosity(6000).temperature(1300) + .sound(SoundEvents.ITEM_BUCKET_FILL_LAVA, SoundEvents.ITEM_BUCKET_EMPTY_LAVA) + .build(fluid); throw new RuntimeException("Mod fluids must override createAttributes."); }