File tree Expand file tree Collapse file tree
java/net/morceaudebois/apolloparrot Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,15 +57,22 @@ private static void injected(CallbackInfoReturnable<SoundEvent> cir) {
5757
5858 ModSounds .ITS_A_BELL ,
5959 ModSounds .BOWL ,
60- ModSounds .ITS_A_BUG
60+ ModSounds .ITS_A_BUG ,
61+
62+ ModSounds .BALL ,
63+ ModSounds .SHROCK_QUESTION ,
64+ ModSounds .BALL ,
65+ ModSounds .BURP ,
66+ ModSounds .FIRE ,
67+ ModSounds .HAT
6168 };
6269
6370 // Create a Random object
6471 Random random = new Random ();
6572
6673 if (random .nextInt (3 ) < 1 ) {
6774 // Generate a random number from 0 to 2 (inclusive) to select one of three values
68- int randomNumber = random .nextInt (40 );
75+ int randomNumber = random .nextInt (46 );
6976 cir .setReturnValue (ApolloSounds [randomNumber ]);
7077 }
7178
Original file line number Diff line number Diff line change @@ -52,6 +52,13 @@ public class ModSounds {
5252 public static SoundEvent ITS_A_BELL = registerSound ("its_a_bell" );
5353 public static SoundEvent ITS_A_BUG = registerSound ("its_a_bug" );
5454
55+ public static SoundEvent BALL = registerSound ("ball" );
56+ public static SoundEvent BLOCK = registerSound ("block" );
57+ public static SoundEvent BURP = registerSound ("burp" );
58+ public static SoundEvent FIRE = registerSound ("fire" );
59+ public static SoundEvent HAT = registerSound ("hat" );
60+ public static SoundEvent SHROCK_QUESTION = registerSound ("shrock_question" );
61+
5562 // actual registration of all the custom SoundEvents
5663 static SoundEvent registerSound (String id ) {
5764 SoundEvent sound = SoundEvent .of (new Identifier (ApolloParrot .MOD_ID , id ));
Original file line number Diff line number Diff line change 240240 "sounds" : [
241241 " apolloparrot:its_a_bug"
242242 ]
243- }
243+ },
244+
244245
246+ "block" : {
247+ "subtitle" : " Parrot says \" block\" " ,
248+ "sounds" : [
249+ " apolloparrot:block"
250+ ]
251+ },
252+ "burp" : {
253+ "subtitle" : " Parrot burps" ,
254+ "sounds" : [
255+ " apolloparrot:burp"
256+ ]
257+ },
258+ "shrock_question" : {
259+ "subtitle" : " Parrot asks \" shrock\" " ,
260+ "sounds" : [
261+ " apolloparrot:shrock_question"
262+ ]
263+ },
264+ "hat" : {
265+ "subtitle" : " Parrot says \" hat\" " ,
266+ "sounds" : [
267+ " apolloparrot:hat"
268+ ]
269+ },
270+ "fire" : {
271+ "subtitle" : " Parrot says \" fire\" " ,
272+ "sounds" : [
273+ " apolloparrot:fire"
274+ ]
275+ },
276+ "ball" : {
277+ "subtitle" : " Parrot says \" ball\" " ,
278+ "sounds" : [
279+ " apolloparrot:ball"
280+ ]
281+ }
245282}
Original file line number Diff line number Diff line change 3333 "fabricloader" : " >=0.14.22" ,
3434 "minecraft" : " ~1.20.1" ,
3535 "java" : " >=17" ,
36- "fabric-api" : " *" ,
37- "entity_texture_features" : " >=2.0"
36+ "fabric-api" : " *"
3837 }
3938}
You can’t perform that action at this time.
0 commit comments