1use crate::jukebox_song::{JukeboxSong, JukeboxSongRegistry, JukeboxSongValue};
2use steel_utils::Identifier;
3use text_components::{TextComponent, translation::TranslatedMessage};
4pub static STAL: JukeboxSong = JukeboxSong::new(
5 Identifier::vanilla_static("stal"),
6 JukeboxSongValue {
7 sound_event: crate::sound_event::SoundEventHolder::registry(
8 &crate::sound_events::MUSIC_DISC_STAL,
9 ),
10 description: TextComponent::translated(
11 TranslatedMessage::new("jukebox_song.minecraft.stal", None),
12 ),
13 length_in_seconds: 150f32,
14 comparator_output: 8i32,
15 },
16);
17pub static CAT: JukeboxSong = JukeboxSong::new(
18 Identifier::vanilla_static("cat"),
19 JukeboxSongValue {
20 sound_event: crate::sound_event::SoundEventHolder::registry(
21 &crate::sound_events::MUSIC_DISC_CAT,
22 ),
23 description: TextComponent::translated(
24 TranslatedMessage::new("jukebox_song.minecraft.cat", None),
25 ),
26 length_in_seconds: 185f32,
27 comparator_output: 2i32,
28 },
29);
30pub static MUSIC_DISC_5: JukeboxSong = JukeboxSong::new(
31 Identifier::vanilla_static("5"),
32 JukeboxSongValue {
33 sound_event: crate::sound_event::SoundEventHolder::registry(
34 &crate::sound_events::MUSIC_DISC_5,
35 ),
36 description: TextComponent::translated(
37 TranslatedMessage::new("jukebox_song.minecraft.5", None),
38 ),
39 length_in_seconds: 178f32,
40 comparator_output: 15i32,
41 },
42);
43pub static MUSIC_DISC_13: JukeboxSong = JukeboxSong::new(
44 Identifier::vanilla_static("13"),
45 JukeboxSongValue {
46 sound_event: crate::sound_event::SoundEventHolder::registry(
47 &crate::sound_events::MUSIC_DISC_13,
48 ),
49 description: TextComponent::translated(
50 TranslatedMessage::new("jukebox_song.minecraft.13", None),
51 ),
52 length_in_seconds: 178f32,
53 comparator_output: 1i32,
54 },
55);
56pub static CHIRP: JukeboxSong = JukeboxSong::new(
57 Identifier::vanilla_static("chirp"),
58 JukeboxSongValue {
59 sound_event: crate::sound_event::SoundEventHolder::registry(
60 &crate::sound_events::MUSIC_DISC_CHIRP,
61 ),
62 description: TextComponent::translated(
63 TranslatedMessage::new("jukebox_song.minecraft.chirp", None),
64 ),
65 length_in_seconds: 185f32,
66 comparator_output: 4i32,
67 },
68);
69pub static MUSIC_DISC_11: JukeboxSong = JukeboxSong::new(
70 Identifier::vanilla_static("11"),
71 JukeboxSongValue {
72 sound_event: crate::sound_event::SoundEventHolder::registry(
73 &crate::sound_events::MUSIC_DISC_11,
74 ),
75 description: TextComponent::translated(
76 TranslatedMessage::new("jukebox_song.minecraft.11", None),
77 ),
78 length_in_seconds: 71f32,
79 comparator_output: 11i32,
80 },
81);
82pub static CREATOR_MUSIC_BOX: JukeboxSong = JukeboxSong::new(
83 Identifier::vanilla_static("creator_music_box"),
84 JukeboxSongValue {
85 sound_event: crate::sound_event::SoundEventHolder::registry(
86 &crate::sound_events::MUSIC_DISC_CREATOR_MUSIC_BOX,
87 ),
88 description: TextComponent::translated(
89 TranslatedMessage::new("jukebox_song.minecraft.creator_music_box", None),
90 ),
91 length_in_seconds: 73f32,
92 comparator_output: 11i32,
93 },
94);
95pub static TEARS: JukeboxSong = JukeboxSong::new(
96 Identifier::vanilla_static("tears"),
97 JukeboxSongValue {
98 sound_event: crate::sound_event::SoundEventHolder::registry(
99 &crate::sound_events::MUSIC_DISC_TEARS,
100 ),
101 description: TextComponent::translated(
102 TranslatedMessage::new("jukebox_song.minecraft.tears", None),
103 ),
104 length_in_seconds: 175f32,
105 comparator_output: 10i32,
106 },
107);
108pub static WAIT: JukeboxSong = JukeboxSong::new(
109 Identifier::vanilla_static("wait"),
110 JukeboxSongValue {
111 sound_event: crate::sound_event::SoundEventHolder::registry(
112 &crate::sound_events::MUSIC_DISC_WAIT,
113 ),
114 description: TextComponent::translated(
115 TranslatedMessage::new("jukebox_song.minecraft.wait", None),
116 ),
117 length_in_seconds: 238f32,
118 comparator_output: 12i32,
119 },
120);
121pub static PRECIPICE: JukeboxSong = JukeboxSong::new(
122 Identifier::vanilla_static("precipice"),
123 JukeboxSongValue {
124 sound_event: crate::sound_event::SoundEventHolder::registry(
125 &crate::sound_events::MUSIC_DISC_PRECIPICE,
126 ),
127 description: TextComponent::translated(
128 TranslatedMessage::new("jukebox_song.minecraft.precipice", None),
129 ),
130 length_in_seconds: 299f32,
131 comparator_output: 13i32,
132 },
133);
134pub static OTHERSIDE: JukeboxSong = JukeboxSong::new(
135 Identifier::vanilla_static("otherside"),
136 JukeboxSongValue {
137 sound_event: crate::sound_event::SoundEventHolder::registry(
138 &crate::sound_events::MUSIC_DISC_OTHERSIDE,
139 ),
140 description: TextComponent::translated(
141 TranslatedMessage::new("jukebox_song.minecraft.otherside", None),
142 ),
143 length_in_seconds: 195f32,
144 comparator_output: 14i32,
145 },
146);
147pub static CREATOR: JukeboxSong = JukeboxSong::new(
148 Identifier::vanilla_static("creator"),
149 JukeboxSongValue {
150 sound_event: crate::sound_event::SoundEventHolder::registry(
151 &crate::sound_events::MUSIC_DISC_CREATOR,
152 ),
153 description: TextComponent::translated(
154 TranslatedMessage::new("jukebox_song.minecraft.creator", None),
155 ),
156 length_in_seconds: 176f32,
157 comparator_output: 12i32,
158 },
159);
160pub static FAR: JukeboxSong = JukeboxSong::new(
161 Identifier::vanilla_static("far"),
162 JukeboxSongValue {
163 sound_event: crate::sound_event::SoundEventHolder::registry(
164 &crate::sound_events::MUSIC_DISC_FAR,
165 ),
166 description: TextComponent::translated(
167 TranslatedMessage::new("jukebox_song.minecraft.far", None),
168 ),
169 length_in_seconds: 174f32,
170 comparator_output: 5i32,
171 },
172);
173pub static RELIC: JukeboxSong = JukeboxSong::new(
174 Identifier::vanilla_static("relic"),
175 JukeboxSongValue {
176 sound_event: crate::sound_event::SoundEventHolder::registry(
177 &crate::sound_events::MUSIC_DISC_RELIC,
178 ),
179 description: TextComponent::translated(
180 TranslatedMessage::new("jukebox_song.minecraft.relic", None),
181 ),
182 length_in_seconds: 218f32,
183 comparator_output: 14i32,
184 },
185);
186pub static BOUNCE: JukeboxSong = JukeboxSong::new(
187 Identifier::vanilla_static("bounce"),
188 JukeboxSongValue {
189 sound_event: crate::sound_event::SoundEventHolder::registry(
190 &crate::sound_events::MUSIC_DISC_BOUNCE,
191 ),
192 description: TextComponent::translated(
193 TranslatedMessage::new("jukebox_song.minecraft.bounce", None),
194 ),
195 length_in_seconds: 234f32,
196 comparator_output: 8i32,
197 },
198);
199pub static PIGSTEP: JukeboxSong = JukeboxSong::new(
200 Identifier::vanilla_static("pigstep"),
201 JukeboxSongValue {
202 sound_event: crate::sound_event::SoundEventHolder::registry(
203 &crate::sound_events::MUSIC_DISC_PIGSTEP,
204 ),
205 description: TextComponent::translated(
206 TranslatedMessage::new("jukebox_song.minecraft.pigstep", None),
207 ),
208 length_in_seconds: 149f32,
209 comparator_output: 13i32,
210 },
211);
212pub static MALL: JukeboxSong = JukeboxSong::new(
213 Identifier::vanilla_static("mall"),
214 JukeboxSongValue {
215 sound_event: crate::sound_event::SoundEventHolder::registry(
216 &crate::sound_events::MUSIC_DISC_MALL,
217 ),
218 description: TextComponent::translated(
219 TranslatedMessage::new("jukebox_song.minecraft.mall", None),
220 ),
221 length_in_seconds: 197f32,
222 comparator_output: 6i32,
223 },
224);
225pub static LAVA_CHICKEN: JukeboxSong = JukeboxSong::new(
226 Identifier::vanilla_static("lava_chicken"),
227 JukeboxSongValue {
228 sound_event: crate::sound_event::SoundEventHolder::registry(
229 &crate::sound_events::MUSIC_DISC_LAVA_CHICKEN,
230 ),
231 description: TextComponent::translated(
232 TranslatedMessage::new("jukebox_song.minecraft.lava_chicken", None),
233 ),
234 length_in_seconds: 134f32,
235 comparator_output: 9i32,
236 },
237);
238pub static STRAD: JukeboxSong = JukeboxSong::new(
239 Identifier::vanilla_static("strad"),
240 JukeboxSongValue {
241 sound_event: crate::sound_event::SoundEventHolder::registry(
242 &crate::sound_events::MUSIC_DISC_STRAD,
243 ),
244 description: TextComponent::translated(
245 TranslatedMessage::new("jukebox_song.minecraft.strad", None),
246 ),
247 length_in_seconds: 188f32,
248 comparator_output: 9i32,
249 },
250);
251pub static WARD: JukeboxSong = JukeboxSong::new(
252 Identifier::vanilla_static("ward"),
253 JukeboxSongValue {
254 sound_event: crate::sound_event::SoundEventHolder::registry(
255 &crate::sound_events::MUSIC_DISC_WARD,
256 ),
257 description: TextComponent::translated(
258 TranslatedMessage::new("jukebox_song.minecraft.ward", None),
259 ),
260 length_in_seconds: 251f32,
261 comparator_output: 10i32,
262 },
263);
264pub static BLOCKS: JukeboxSong = JukeboxSong::new(
265 Identifier::vanilla_static("blocks"),
266 JukeboxSongValue {
267 sound_event: crate::sound_event::SoundEventHolder::registry(
268 &crate::sound_events::MUSIC_DISC_BLOCKS,
269 ),
270 description: TextComponent::translated(
271 TranslatedMessage::new("jukebox_song.minecraft.blocks", None),
272 ),
273 length_in_seconds: 345f32,
274 comparator_output: 3i32,
275 },
276);
277pub static MELLOHI: JukeboxSong = JukeboxSong::new(
278 Identifier::vanilla_static("mellohi"),
279 JukeboxSongValue {
280 sound_event: crate::sound_event::SoundEventHolder::registry(
281 &crate::sound_events::MUSIC_DISC_MELLOHI,
282 ),
283 description: TextComponent::translated(
284 TranslatedMessage::new("jukebox_song.minecraft.mellohi", None),
285 ),
286 length_in_seconds: 96f32,
287 comparator_output: 7i32,
288 },
289);
290pub fn register_jukebox_songs(registry: &mut JukeboxSongRegistry) {
291 registry.register(&STAL);
292 registry.register(&CAT);
293 registry.register(&MUSIC_DISC_5);
294 registry.register(&MUSIC_DISC_13);
295 registry.register(&CHIRP);
296 registry.register(&MUSIC_DISC_11);
297 registry.register(&CREATOR_MUSIC_BOX);
298 registry.register(&TEARS);
299 registry.register(&WAIT);
300 registry.register(&PRECIPICE);
301 registry.register(&OTHERSIDE);
302 registry.register(&CREATOR);
303 registry.register(&FAR);
304 registry.register(&RELIC);
305 registry.register(&BOUNCE);
306 registry.register(&PIGSTEP);
307 registry.register(&MALL);
308 registry.register(&LAVA_CHICKEN);
309 registry.register(&STRAD);
310 registry.register(&WARD);
311 registry.register(&BLOCKS);
312 registry.register(&MELLOHI);
313}