1use crate::enchantment::{Enchantment, EnchantmentCost, EnchantmentRegistry};
2use crate::loot_table::EquipmentSlotGroup;
3use steel_utils::Identifier;
4pub static AQUA_AFFINITY: Enchantment = Enchantment {
5 key: Identifier::vanilla_static("aqua_affinity"),
6 max_level: 1,
7 min_cost: EnchantmentCost {
8 base: 1,
9 per_level_above_first: 0,
10 },
11 max_cost: EnchantmentCost {
12 base: 41,
13 per_level_above_first: 0,
14 },
15 anvil_cost: 4,
16 weight: 2,
17 slots: &[EquipmentSlotGroup::Head],
18 supported_items: "#minecraft:enchantable/head_armor",
19 primary_items: None,
20 exclusive_set: None,
21};
22pub static BANE_OF_ARTHROPODS: Enchantment = Enchantment {
23 key: Identifier::vanilla_static("bane_of_arthropods"),
24 max_level: 5,
25 min_cost: EnchantmentCost {
26 base: 5,
27 per_level_above_first: 8,
28 },
29 max_cost: EnchantmentCost {
30 base: 25,
31 per_level_above_first: 8,
32 },
33 anvil_cost: 2,
34 weight: 5,
35 slots: &[EquipmentSlotGroup::MainHand],
36 supported_items: "#minecraft:enchantable/weapon",
37 primary_items: Some("#minecraft:enchantable/melee_weapon"),
38 exclusive_set: Some("#minecraft:exclusive_set/damage"),
39};
40pub static BINDING_CURSE: Enchantment = Enchantment {
41 key: Identifier::vanilla_static("binding_curse"),
42 max_level: 1,
43 min_cost: EnchantmentCost {
44 base: 25,
45 per_level_above_first: 0,
46 },
47 max_cost: EnchantmentCost {
48 base: 50,
49 per_level_above_first: 0,
50 },
51 anvil_cost: 8,
52 weight: 1,
53 slots: &[EquipmentSlotGroup::Armor],
54 supported_items: "#minecraft:enchantable/equippable",
55 primary_items: None,
56 exclusive_set: None,
57};
58pub static BLAST_PROTECTION: Enchantment = Enchantment {
59 key: Identifier::vanilla_static("blast_protection"),
60 max_level: 4,
61 min_cost: EnchantmentCost {
62 base: 5,
63 per_level_above_first: 8,
64 },
65 max_cost: EnchantmentCost {
66 base: 13,
67 per_level_above_first: 8,
68 },
69 anvil_cost: 4,
70 weight: 2,
71 slots: &[EquipmentSlotGroup::Armor],
72 supported_items: "#minecraft:enchantable/armor",
73 primary_items: None,
74 exclusive_set: Some("#minecraft:exclusive_set/armor"),
75};
76pub static BREACH: Enchantment = Enchantment {
77 key: Identifier::vanilla_static("breach"),
78 max_level: 4,
79 min_cost: EnchantmentCost {
80 base: 15,
81 per_level_above_first: 9,
82 },
83 max_cost: EnchantmentCost {
84 base: 65,
85 per_level_above_first: 9,
86 },
87 anvil_cost: 4,
88 weight: 2,
89 slots: &[EquipmentSlotGroup::MainHand],
90 supported_items: "#minecraft:enchantable/mace",
91 primary_items: None,
92 exclusive_set: Some("#minecraft:exclusive_set/damage"),
93};
94pub static CHANNELING: Enchantment = Enchantment {
95 key: Identifier::vanilla_static("channeling"),
96 max_level: 1,
97 min_cost: EnchantmentCost {
98 base: 25,
99 per_level_above_first: 0,
100 },
101 max_cost: EnchantmentCost {
102 base: 50,
103 per_level_above_first: 0,
104 },
105 anvil_cost: 8,
106 weight: 1,
107 slots: &[EquipmentSlotGroup::MainHand],
108 supported_items: "#minecraft:enchantable/trident",
109 primary_items: None,
110 exclusive_set: None,
111};
112pub static DENSITY: Enchantment = Enchantment {
113 key: Identifier::vanilla_static("density"),
114 max_level: 5,
115 min_cost: EnchantmentCost {
116 base: 5,
117 per_level_above_first: 8,
118 },
119 max_cost: EnchantmentCost {
120 base: 25,
121 per_level_above_first: 8,
122 },
123 anvil_cost: 2,
124 weight: 5,
125 slots: &[EquipmentSlotGroup::MainHand],
126 supported_items: "#minecraft:enchantable/mace",
127 primary_items: None,
128 exclusive_set: Some("#minecraft:exclusive_set/damage"),
129};
130pub static DEPTH_STRIDER: Enchantment = Enchantment {
131 key: Identifier::vanilla_static("depth_strider"),
132 max_level: 3,
133 min_cost: EnchantmentCost {
134 base: 10,
135 per_level_above_first: 10,
136 },
137 max_cost: EnchantmentCost {
138 base: 25,
139 per_level_above_first: 10,
140 },
141 anvil_cost: 4,
142 weight: 2,
143 slots: &[EquipmentSlotGroup::Feet],
144 supported_items: "#minecraft:enchantable/foot_armor",
145 primary_items: None,
146 exclusive_set: Some("#minecraft:exclusive_set/boots"),
147};
148pub static EFFICIENCY: Enchantment = Enchantment {
149 key: Identifier::vanilla_static("efficiency"),
150 max_level: 5,
151 min_cost: EnchantmentCost {
152 base: 1,
153 per_level_above_first: 10,
154 },
155 max_cost: EnchantmentCost {
156 base: 51,
157 per_level_above_first: 10,
158 },
159 anvil_cost: 1,
160 weight: 10,
161 slots: &[EquipmentSlotGroup::MainHand],
162 supported_items: "#minecraft:enchantable/mining",
163 primary_items: None,
164 exclusive_set: None,
165};
166pub static FEATHER_FALLING: Enchantment = Enchantment {
167 key: Identifier::vanilla_static("feather_falling"),
168 max_level: 4,
169 min_cost: EnchantmentCost {
170 base: 5,
171 per_level_above_first: 6,
172 },
173 max_cost: EnchantmentCost {
174 base: 11,
175 per_level_above_first: 6,
176 },
177 anvil_cost: 2,
178 weight: 5,
179 slots: &[EquipmentSlotGroup::Armor],
180 supported_items: "#minecraft:enchantable/foot_armor",
181 primary_items: None,
182 exclusive_set: None,
183};
184pub static FIRE_ASPECT: Enchantment = Enchantment {
185 key: Identifier::vanilla_static("fire_aspect"),
186 max_level: 2,
187 min_cost: EnchantmentCost {
188 base: 10,
189 per_level_above_first: 20,
190 },
191 max_cost: EnchantmentCost {
192 base: 60,
193 per_level_above_first: 20,
194 },
195 anvil_cost: 4,
196 weight: 2,
197 slots: &[EquipmentSlotGroup::MainHand],
198 supported_items: "#minecraft:enchantable/fire_aspect",
199 primary_items: Some("#minecraft:enchantable/melee_weapon"),
200 exclusive_set: None,
201};
202pub static FIRE_PROTECTION: Enchantment = Enchantment {
203 key: Identifier::vanilla_static("fire_protection"),
204 max_level: 4,
205 min_cost: EnchantmentCost {
206 base: 10,
207 per_level_above_first: 8,
208 },
209 max_cost: EnchantmentCost {
210 base: 18,
211 per_level_above_first: 8,
212 },
213 anvil_cost: 2,
214 weight: 5,
215 slots: &[EquipmentSlotGroup::Armor],
216 supported_items: "#minecraft:enchantable/armor",
217 primary_items: None,
218 exclusive_set: Some("#minecraft:exclusive_set/armor"),
219};
220pub static FLAME: Enchantment = Enchantment {
221 key: Identifier::vanilla_static("flame"),
222 max_level: 1,
223 min_cost: EnchantmentCost {
224 base: 20,
225 per_level_above_first: 0,
226 },
227 max_cost: EnchantmentCost {
228 base: 50,
229 per_level_above_first: 0,
230 },
231 anvil_cost: 4,
232 weight: 2,
233 slots: &[EquipmentSlotGroup::MainHand],
234 supported_items: "#minecraft:enchantable/bow",
235 primary_items: None,
236 exclusive_set: None,
237};
238pub static FORTUNE: Enchantment = Enchantment {
239 key: Identifier::vanilla_static("fortune"),
240 max_level: 3,
241 min_cost: EnchantmentCost {
242 base: 15,
243 per_level_above_first: 9,
244 },
245 max_cost: EnchantmentCost {
246 base: 65,
247 per_level_above_first: 9,
248 },
249 anvil_cost: 4,
250 weight: 2,
251 slots: &[EquipmentSlotGroup::MainHand],
252 supported_items: "#minecraft:enchantable/mining_loot",
253 primary_items: None,
254 exclusive_set: Some("#minecraft:exclusive_set/mining"),
255};
256pub static FROST_WALKER: Enchantment = Enchantment {
257 key: Identifier::vanilla_static("frost_walker"),
258 max_level: 2,
259 min_cost: EnchantmentCost {
260 base: 10,
261 per_level_above_first: 10,
262 },
263 max_cost: EnchantmentCost {
264 base: 25,
265 per_level_above_first: 10,
266 },
267 anvil_cost: 4,
268 weight: 2,
269 slots: &[EquipmentSlotGroup::Feet],
270 supported_items: "#minecraft:enchantable/foot_armor",
271 primary_items: None,
272 exclusive_set: Some("#minecraft:exclusive_set/boots"),
273};
274pub static IMPALING: Enchantment = Enchantment {
275 key: Identifier::vanilla_static("impaling"),
276 max_level: 5,
277 min_cost: EnchantmentCost {
278 base: 1,
279 per_level_above_first: 8,
280 },
281 max_cost: EnchantmentCost {
282 base: 21,
283 per_level_above_first: 8,
284 },
285 anvil_cost: 4,
286 weight: 2,
287 slots: &[EquipmentSlotGroup::MainHand],
288 supported_items: "#minecraft:enchantable/trident",
289 primary_items: None,
290 exclusive_set: Some("#minecraft:exclusive_set/damage"),
291};
292pub static INFINITY: Enchantment = Enchantment {
293 key: Identifier::vanilla_static("infinity"),
294 max_level: 1,
295 min_cost: EnchantmentCost {
296 base: 20,
297 per_level_above_first: 0,
298 },
299 max_cost: EnchantmentCost {
300 base: 50,
301 per_level_above_first: 0,
302 },
303 anvil_cost: 8,
304 weight: 1,
305 slots: &[EquipmentSlotGroup::MainHand],
306 supported_items: "#minecraft:enchantable/bow",
307 primary_items: None,
308 exclusive_set: Some("#minecraft:exclusive_set/bow"),
309};
310pub static KNOCKBACK: Enchantment = Enchantment {
311 key: Identifier::vanilla_static("knockback"),
312 max_level: 2,
313 min_cost: EnchantmentCost {
314 base: 5,
315 per_level_above_first: 20,
316 },
317 max_cost: EnchantmentCost {
318 base: 55,
319 per_level_above_first: 20,
320 },
321 anvil_cost: 2,
322 weight: 5,
323 slots: &[EquipmentSlotGroup::MainHand],
324 supported_items: "#minecraft:enchantable/melee_weapon",
325 primary_items: None,
326 exclusive_set: None,
327};
328pub static LOOTING: Enchantment = Enchantment {
329 key: Identifier::vanilla_static("looting"),
330 max_level: 3,
331 min_cost: EnchantmentCost {
332 base: 15,
333 per_level_above_first: 9,
334 },
335 max_cost: EnchantmentCost {
336 base: 65,
337 per_level_above_first: 9,
338 },
339 anvil_cost: 4,
340 weight: 2,
341 slots: &[EquipmentSlotGroup::MainHand],
342 supported_items: "#minecraft:enchantable/melee_weapon",
343 primary_items: None,
344 exclusive_set: None,
345};
346pub static LOYALTY: Enchantment = Enchantment {
347 key: Identifier::vanilla_static("loyalty"),
348 max_level: 3,
349 min_cost: EnchantmentCost {
350 base: 12,
351 per_level_above_first: 7,
352 },
353 max_cost: EnchantmentCost {
354 base: 50,
355 per_level_above_first: 0,
356 },
357 anvil_cost: 2,
358 weight: 5,
359 slots: &[EquipmentSlotGroup::MainHand],
360 supported_items: "#minecraft:enchantable/trident",
361 primary_items: None,
362 exclusive_set: None,
363};
364pub static LUCK_OF_THE_SEA: Enchantment = Enchantment {
365 key: Identifier::vanilla_static("luck_of_the_sea"),
366 max_level: 3,
367 min_cost: EnchantmentCost {
368 base: 15,
369 per_level_above_first: 9,
370 },
371 max_cost: EnchantmentCost {
372 base: 65,
373 per_level_above_first: 9,
374 },
375 anvil_cost: 4,
376 weight: 2,
377 slots: &[EquipmentSlotGroup::MainHand],
378 supported_items: "#minecraft:enchantable/fishing",
379 primary_items: None,
380 exclusive_set: None,
381};
382pub static LUNGE: Enchantment = Enchantment {
383 key: Identifier::vanilla_static("lunge"),
384 max_level: 3,
385 min_cost: EnchantmentCost {
386 base: 5,
387 per_level_above_first: 8,
388 },
389 max_cost: EnchantmentCost {
390 base: 25,
391 per_level_above_first: 8,
392 },
393 anvil_cost: 2,
394 weight: 5,
395 slots: &[EquipmentSlotGroup::Hand],
396 supported_items: "#minecraft:enchantable/lunge",
397 primary_items: None,
398 exclusive_set: None,
399};
400pub static LURE: Enchantment = Enchantment {
401 key: Identifier::vanilla_static("lure"),
402 max_level: 3,
403 min_cost: EnchantmentCost {
404 base: 15,
405 per_level_above_first: 9,
406 },
407 max_cost: EnchantmentCost {
408 base: 65,
409 per_level_above_first: 9,
410 },
411 anvil_cost: 4,
412 weight: 2,
413 slots: &[EquipmentSlotGroup::MainHand],
414 supported_items: "#minecraft:enchantable/fishing",
415 primary_items: None,
416 exclusive_set: None,
417};
418pub static MENDING: Enchantment = Enchantment {
419 key: Identifier::vanilla_static("mending"),
420 max_level: 1,
421 min_cost: EnchantmentCost {
422 base: 25,
423 per_level_above_first: 25,
424 },
425 max_cost: EnchantmentCost {
426 base: 75,
427 per_level_above_first: 25,
428 },
429 anvil_cost: 4,
430 weight: 2,
431 slots: &[EquipmentSlotGroup::Any],
432 supported_items: "#minecraft:enchantable/durability",
433 primary_items: None,
434 exclusive_set: None,
435};
436pub static MULTISHOT: Enchantment = Enchantment {
437 key: Identifier::vanilla_static("multishot"),
438 max_level: 1,
439 min_cost: EnchantmentCost {
440 base: 20,
441 per_level_above_first: 0,
442 },
443 max_cost: EnchantmentCost {
444 base: 50,
445 per_level_above_first: 0,
446 },
447 anvil_cost: 4,
448 weight: 2,
449 slots: &[EquipmentSlotGroup::MainHand],
450 supported_items: "#minecraft:enchantable/crossbow",
451 primary_items: None,
452 exclusive_set: Some("#minecraft:exclusive_set/crossbow"),
453};
454pub static PIERCING: Enchantment = Enchantment {
455 key: Identifier::vanilla_static("piercing"),
456 max_level: 4,
457 min_cost: EnchantmentCost {
458 base: 1,
459 per_level_above_first: 10,
460 },
461 max_cost: EnchantmentCost {
462 base: 50,
463 per_level_above_first: 0,
464 },
465 anvil_cost: 1,
466 weight: 10,
467 slots: &[EquipmentSlotGroup::MainHand],
468 supported_items: "#minecraft:enchantable/crossbow",
469 primary_items: None,
470 exclusive_set: Some("#minecraft:exclusive_set/crossbow"),
471};
472pub static POWER: Enchantment = Enchantment {
473 key: Identifier::vanilla_static("power"),
474 max_level: 5,
475 min_cost: EnchantmentCost {
476 base: 1,
477 per_level_above_first: 10,
478 },
479 max_cost: EnchantmentCost {
480 base: 16,
481 per_level_above_first: 10,
482 },
483 anvil_cost: 1,
484 weight: 10,
485 slots: &[EquipmentSlotGroup::MainHand],
486 supported_items: "#minecraft:enchantable/bow",
487 primary_items: None,
488 exclusive_set: None,
489};
490pub static PROJECTILE_PROTECTION: Enchantment = Enchantment {
491 key: Identifier::vanilla_static("projectile_protection"),
492 max_level: 4,
493 min_cost: EnchantmentCost {
494 base: 3,
495 per_level_above_first: 6,
496 },
497 max_cost: EnchantmentCost {
498 base: 9,
499 per_level_above_first: 6,
500 },
501 anvil_cost: 2,
502 weight: 5,
503 slots: &[EquipmentSlotGroup::Armor],
504 supported_items: "#minecraft:enchantable/armor",
505 primary_items: None,
506 exclusive_set: Some("#minecraft:exclusive_set/armor"),
507};
508pub static PROTECTION: Enchantment = Enchantment {
509 key: Identifier::vanilla_static("protection"),
510 max_level: 4,
511 min_cost: EnchantmentCost {
512 base: 1,
513 per_level_above_first: 11,
514 },
515 max_cost: EnchantmentCost {
516 base: 12,
517 per_level_above_first: 11,
518 },
519 anvil_cost: 1,
520 weight: 10,
521 slots: &[EquipmentSlotGroup::Armor],
522 supported_items: "#minecraft:enchantable/armor",
523 primary_items: None,
524 exclusive_set: Some("#minecraft:exclusive_set/armor"),
525};
526pub static PUNCH: Enchantment = Enchantment {
527 key: Identifier::vanilla_static("punch"),
528 max_level: 2,
529 min_cost: EnchantmentCost {
530 base: 12,
531 per_level_above_first: 20,
532 },
533 max_cost: EnchantmentCost {
534 base: 37,
535 per_level_above_first: 20,
536 },
537 anvil_cost: 4,
538 weight: 2,
539 slots: &[EquipmentSlotGroup::MainHand],
540 supported_items: "#minecraft:enchantable/bow",
541 primary_items: None,
542 exclusive_set: None,
543};
544pub static QUICK_CHARGE: Enchantment = Enchantment {
545 key: Identifier::vanilla_static("quick_charge"),
546 max_level: 3,
547 min_cost: EnchantmentCost {
548 base: 12,
549 per_level_above_first: 20,
550 },
551 max_cost: EnchantmentCost {
552 base: 50,
553 per_level_above_first: 0,
554 },
555 anvil_cost: 2,
556 weight: 5,
557 slots: &[EquipmentSlotGroup::MainHand, EquipmentSlotGroup::OffHand],
558 supported_items: "#minecraft:enchantable/crossbow",
559 primary_items: None,
560 exclusive_set: None,
561};
562pub static RESPIRATION: Enchantment = Enchantment {
563 key: Identifier::vanilla_static("respiration"),
564 max_level: 3,
565 min_cost: EnchantmentCost {
566 base: 10,
567 per_level_above_first: 10,
568 },
569 max_cost: EnchantmentCost {
570 base: 40,
571 per_level_above_first: 10,
572 },
573 anvil_cost: 4,
574 weight: 2,
575 slots: &[EquipmentSlotGroup::Head],
576 supported_items: "#minecraft:enchantable/head_armor",
577 primary_items: None,
578 exclusive_set: None,
579};
580pub static RIPTIDE: Enchantment = Enchantment {
581 key: Identifier::vanilla_static("riptide"),
582 max_level: 3,
583 min_cost: EnchantmentCost {
584 base: 17,
585 per_level_above_first: 7,
586 },
587 max_cost: EnchantmentCost {
588 base: 50,
589 per_level_above_first: 0,
590 },
591 anvil_cost: 4,
592 weight: 2,
593 slots: &[EquipmentSlotGroup::Hand],
594 supported_items: "#minecraft:enchantable/trident",
595 primary_items: None,
596 exclusive_set: Some("#minecraft:exclusive_set/riptide"),
597};
598pub static SHARPNESS: Enchantment = Enchantment {
599 key: Identifier::vanilla_static("sharpness"),
600 max_level: 5,
601 min_cost: EnchantmentCost {
602 base: 1,
603 per_level_above_first: 11,
604 },
605 max_cost: EnchantmentCost {
606 base: 21,
607 per_level_above_first: 11,
608 },
609 anvil_cost: 1,
610 weight: 10,
611 slots: &[EquipmentSlotGroup::MainHand],
612 supported_items: "#minecraft:enchantable/sharp_weapon",
613 primary_items: Some("#minecraft:enchantable/melee_weapon"),
614 exclusive_set: Some("#minecraft:exclusive_set/damage"),
615};
616pub static SILK_TOUCH: Enchantment = Enchantment {
617 key: Identifier::vanilla_static("silk_touch"),
618 max_level: 1,
619 min_cost: EnchantmentCost {
620 base: 15,
621 per_level_above_first: 0,
622 },
623 max_cost: EnchantmentCost {
624 base: 65,
625 per_level_above_first: 0,
626 },
627 anvil_cost: 8,
628 weight: 1,
629 slots: &[EquipmentSlotGroup::MainHand],
630 supported_items: "#minecraft:enchantable/mining_loot",
631 primary_items: None,
632 exclusive_set: Some("#minecraft:exclusive_set/mining"),
633};
634pub static SMITE: Enchantment = Enchantment {
635 key: Identifier::vanilla_static("smite"),
636 max_level: 5,
637 min_cost: EnchantmentCost {
638 base: 5,
639 per_level_above_first: 8,
640 },
641 max_cost: EnchantmentCost {
642 base: 25,
643 per_level_above_first: 8,
644 },
645 anvil_cost: 2,
646 weight: 5,
647 slots: &[EquipmentSlotGroup::MainHand],
648 supported_items: "#minecraft:enchantable/weapon",
649 primary_items: Some("#minecraft:enchantable/melee_weapon"),
650 exclusive_set: Some("#minecraft:exclusive_set/damage"),
651};
652pub static SOUL_SPEED: Enchantment = Enchantment {
653 key: Identifier::vanilla_static("soul_speed"),
654 max_level: 3,
655 min_cost: EnchantmentCost {
656 base: 10,
657 per_level_above_first: 10,
658 },
659 max_cost: EnchantmentCost {
660 base: 25,
661 per_level_above_first: 10,
662 },
663 anvil_cost: 8,
664 weight: 1,
665 slots: &[EquipmentSlotGroup::Feet],
666 supported_items: "#minecraft:enchantable/foot_armor",
667 primary_items: None,
668 exclusive_set: None,
669};
670pub static SWEEPING_EDGE: Enchantment = Enchantment {
671 key: Identifier::vanilla_static("sweeping_edge"),
672 max_level: 3,
673 min_cost: EnchantmentCost {
674 base: 5,
675 per_level_above_first: 9,
676 },
677 max_cost: EnchantmentCost {
678 base: 20,
679 per_level_above_first: 9,
680 },
681 anvil_cost: 4,
682 weight: 2,
683 slots: &[EquipmentSlotGroup::MainHand],
684 supported_items: "#minecraft:enchantable/sweeping",
685 primary_items: None,
686 exclusive_set: None,
687};
688pub static SWIFT_SNEAK: Enchantment = Enchantment {
689 key: Identifier::vanilla_static("swift_sneak"),
690 max_level: 3,
691 min_cost: EnchantmentCost {
692 base: 25,
693 per_level_above_first: 25,
694 },
695 max_cost: EnchantmentCost {
696 base: 75,
697 per_level_above_first: 25,
698 },
699 anvil_cost: 8,
700 weight: 1,
701 slots: &[EquipmentSlotGroup::Legs],
702 supported_items: "#minecraft:enchantable/leg_armor",
703 primary_items: None,
704 exclusive_set: None,
705};
706pub static THORNS: Enchantment = Enchantment {
707 key: Identifier::vanilla_static("thorns"),
708 max_level: 3,
709 min_cost: EnchantmentCost {
710 base: 10,
711 per_level_above_first: 20,
712 },
713 max_cost: EnchantmentCost {
714 base: 60,
715 per_level_above_first: 20,
716 },
717 anvil_cost: 8,
718 weight: 1,
719 slots: &[EquipmentSlotGroup::Any],
720 supported_items: "#minecraft:enchantable/armor",
721 primary_items: Some("#minecraft:enchantable/chest_armor"),
722 exclusive_set: None,
723};
724pub static UNBREAKING: Enchantment = Enchantment {
725 key: Identifier::vanilla_static("unbreaking"),
726 max_level: 3,
727 min_cost: EnchantmentCost {
728 base: 5,
729 per_level_above_first: 8,
730 },
731 max_cost: EnchantmentCost {
732 base: 55,
733 per_level_above_first: 8,
734 },
735 anvil_cost: 2,
736 weight: 5,
737 slots: &[EquipmentSlotGroup::Any],
738 supported_items: "#minecraft:enchantable/durability",
739 primary_items: None,
740 exclusive_set: None,
741};
742pub static VANISHING_CURSE: Enchantment = Enchantment {
743 key: Identifier::vanilla_static("vanishing_curse"),
744 max_level: 1,
745 min_cost: EnchantmentCost {
746 base: 25,
747 per_level_above_first: 0,
748 },
749 max_cost: EnchantmentCost {
750 base: 50,
751 per_level_above_first: 0,
752 },
753 anvil_cost: 8,
754 weight: 1,
755 slots: &[EquipmentSlotGroup::Any],
756 supported_items: "#minecraft:enchantable/vanishing",
757 primary_items: None,
758 exclusive_set: None,
759};
760pub static WIND_BURST: Enchantment = Enchantment {
761 key: Identifier::vanilla_static("wind_burst"),
762 max_level: 3,
763 min_cost: EnchantmentCost {
764 base: 15,
765 per_level_above_first: 9,
766 },
767 max_cost: EnchantmentCost {
768 base: 65,
769 per_level_above_first: 9,
770 },
771 anvil_cost: 4,
772 weight: 2,
773 slots: &[EquipmentSlotGroup::MainHand],
774 supported_items: "#minecraft:enchantable/mace",
775 primary_items: None,
776 exclusive_set: None,
777};
778pub fn register_enchantments(registry: &mut EnchantmentRegistry) {
779 registry.register(&AQUA_AFFINITY);
780 registry.register(&BANE_OF_ARTHROPODS);
781 registry.register(&BINDING_CURSE);
782 registry.register(&BLAST_PROTECTION);
783 registry.register(&BREACH);
784 registry.register(&CHANNELING);
785 registry.register(&DENSITY);
786 registry.register(&DEPTH_STRIDER);
787 registry.register(&EFFICIENCY);
788 registry.register(&FEATHER_FALLING);
789 registry.register(&FIRE_ASPECT);
790 registry.register(&FIRE_PROTECTION);
791 registry.register(&FLAME);
792 registry.register(&FORTUNE);
793 registry.register(&FROST_WALKER);
794 registry.register(&IMPALING);
795 registry.register(&INFINITY);
796 registry.register(&KNOCKBACK);
797 registry.register(&LOOTING);
798 registry.register(&LOYALTY);
799 registry.register(&LUCK_OF_THE_SEA);
800 registry.register(&LUNGE);
801 registry.register(&LURE);
802 registry.register(&MENDING);
803 registry.register(&MULTISHOT);
804 registry.register(&PIERCING);
805 registry.register(&POWER);
806 registry.register(&PROJECTILE_PROTECTION);
807 registry.register(&PROTECTION);
808 registry.register(&PUNCH);
809 registry.register(&QUICK_CHARGE);
810 registry.register(&RESPIRATION);
811 registry.register(&RIPTIDE);
812 registry.register(&SHARPNESS);
813 registry.register(&SILK_TOUCH);
814 registry.register(&SMITE);
815 registry.register(&SOUL_SPEED);
816 registry.register(&SWEEPING_EDGE);
817 registry.register(&SWIFT_SNEAK);
818 registry.register(ÞS);
819 registry.register(&UNBREAKING);
820 registry.register(&VANISHING_CURSE);
821 registry.register(&WIND_BURST);
822}