Skip to content

Commit

Permalink
Added sound to distillery (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
minecraft7771 authored Mar 22, 2023
1 parent 9474600 commit 5857de7
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/main/java/gregtech/api/enums/SoundResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public enum SoundResource {
IC2_MACHINES_MAGNETIZER_LOOP(212, MOD_ID_IC2, "machines.MagnetizerLoop"),

GT_MACHINES_FUSION_LOOP(230, MOD_ID, "machines.FusionLoop"),
GT_MACHINES_DISTILLERY_LOOP(231, MOD_ID, "machines.DistilleryLoop"),

GUI_BUTTON_DOWN(-1, MOD_ID, "gui.buttonDown"),
GUI_BUTTON_UP(-1, MOD_ID, "gui.buttonUp"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.gtnewhorizon.structurelib.structure.StructureDefinition;

import gregtech.api.GregTech_API;
import gregtech.api.enums.SoundResource;
import gregtech.api.enums.Textures;
import gregtech.api.enums.Textures.BlockIcons;
import gregtech.api.interfaces.IHatchElement;
Expand Down Expand Up @@ -376,4 +377,9 @@ public int survivalConstruct(ItemStack stackSize, int elementBudget, ISurvivalBu
false,
true);
}

@Override
protected SoundResource getProcessStartSound() {
return SoundResource.GT_MACHINES_DISTILLERY_LOOP;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public static void registerDefaultGregtechMaps() {
// Distillery
GT_ProcessingArray_Manager.addRecipeMapToPA("basicmachine.distillery", GT_Recipe_Map.sDistilleryRecipes);
GT_ProcessingArray_Manager
.addSoundResourceToPA("basicmachine.distillery", SoundResource.IC2_MACHINES_EXTRACTOR_OP);
.addSoundResourceToPA("basicmachine.distillery", SoundResource.GT_MACHINES_DISTILLERY_LOOP);
// Electrolyzer
GT_ProcessingArray_Manager
.addRecipeMapToPA("basicmachine.electrolyzer", GT_Recipe_Map.sMultiblockElectrolyzerRecipes);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6375,7 +6375,7 @@ private static void run2() {
0,
1,
"Distillery.png",
SoundResource.IC2_MACHINES_EXTRACTOR_OP,
SoundResource.GT_MACHINES_DISTILLERY_LOOP,
false,
false,
SpecialEffects.NONE,
Expand All @@ -6401,7 +6401,7 @@ private static void run2() {
0,
1,
"Distillery.png",
SoundResource.IC2_MACHINES_EXTRACTOR_OP,
SoundResource.GT_MACHINES_DISTILLERY_LOOP,
false,
false,
SpecialEffects.NONE,
Expand All @@ -6427,7 +6427,7 @@ private static void run2() {
0,
1,
"Distillery.png",
SoundResource.IC2_MACHINES_EXTRACTOR_OP,
SoundResource.GT_MACHINES_DISTILLERY_LOOP,
false,
false,
SpecialEffects.NONE,
Expand All @@ -6453,7 +6453,7 @@ private static void run2() {
0,
1,
"Distillery.png",
SoundResource.IC2_MACHINES_EXTRACTOR_OP,
SoundResource.GT_MACHINES_DISTILLERY_LOOP,
false,
false,
SpecialEffects.NONE,
Expand All @@ -6479,7 +6479,7 @@ private static void run2() {
0,
1,
"Distillery.png",
SoundResource.IC2_MACHINES_EXTRACTOR_OP,
SoundResource.GT_MACHINES_DISTILLERY_LOOP,
false,
false,
SpecialEffects.NONE,
Expand Down
9 changes: 9 additions & 0 deletions src/main/resources/assets/gregtech/sounds.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,14 @@
"stream": false
}
]
},
"machines.DistilleryLoop": {
"category": "block",
"sounds": [
{
"name": "DistilleryLoop",
"stream": false
}
]
}
}
Binary file not shown.

0 comments on commit 5857de7

Please sign in to comment.