Add USSR anthem music disc

This commit is contained in:
Andrew-71 2024-01-22 19:11:28 +03:00
parent a385d76352
commit 5bbb26ce81
11 changed files with 35 additions and 18 deletions

View file

@ -25,6 +25,6 @@ public class ItemTagGenerator extends FabricTagProvider.ItemTagProvider {
.add(NSE_Items.DICE_D20);
getOrCreateTagBuilder(ItemTags.MUSIC_DISCS)
.add(NSE_Items.MUSIC_DISC_HEARTBEAT);
.add(NSE_Items.MUSIC_DISC_USSR_ANTHEM);
}
}

View file

@ -34,7 +34,8 @@ public class NSE_Items extends NSE_BaseRegistration {
public static final Item CIGARETTE_BUTT = new Item(new Item.Settings());
public static final CigaretteItem CIGARETTE = new CigaretteItem(200, NSE_Items.CIGARETTE_BUTT, "item.new_soviet.tooltip.salute", new Item.Settings());
// public static final MusicDiscItem BATTLE_IS_GOING_AGAIN = new MusicDiscItem(1, NSE_Sounds.MUSIC_LENIN, 123) TODO: Music pls?
public static final MusicDiscItem MUSIC_DISC_USSR_ANTHEM = new MusicDiscItem(1, NSE_Sounds.MUSIC_USSR_ANTHEM, new Item.Settings().maxCount(1), 206);
private static final ItemGroup NSE_ITEMS_TAB = FabricItemGroup.builder()
.icon(() -> new ItemStack(SICKLE))
@ -57,5 +58,7 @@ public class NSE_Items extends NSE_BaseRegistration {
registerPattern("sickle_pattern", Rarity.UNCOMMON, NSE_ITEMS_TAB);
registerPattern("star_pattern", Rarity.UNCOMMON, NSE_ITEMS_TAB);
registerPattern("grain_pattern", Rarity.UNCOMMON, NSE_ITEMS_TAB);
registerItem("music_disc_ussr_anthem", () -> MUSIC_DISC_USSR_ANTHEM, NSE_ITEMS_TAB);
}
}

View file

@ -48,4 +48,6 @@ public class NSE_Sounds extends NSE_BaseRegistration {
public static final SoundEvent TV_ON_SOUND = registerSoundEvent("tv_on_sound");
public static final SoundEvent TV_OFF_SOUND = registerSoundEvent("tv_off_sound");
public static final SoundEvent TV_BREAK_SOUND = registerSoundEvent("tv_break_sound");
public static final SoundEvent MUSIC_USSR_ANTHEM = registerSoundEvent("ussr_anthem");
}