forked from DaFuqs/Spectrum
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSpectrumCompostableBlocks.java
More file actions
85 lines (69 loc) · 4.78 KB
/
SpectrumCompostableBlocks.java
File metadata and controls
85 lines (69 loc) · 4.78 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package de.dafuqs.spectrum.registries;
import de.dafuqs.spectrum.blocks.conditional.colored_tree.*;
import de.dafuqs.spectrum.helpers.*;
import net.fabricmc.fabric.api.registry.*;
import net.minecraft.util.*;
public class SpectrumCompostableBlocks {
private static final float LOW = 0.3F;
private static final float MEDIUM = 0.5F;
private static final float HIGH = 0.65F;
private static final float HIGHER = 0.85F;
private static final float ALWAYS = 1.0F;
public static void register() {
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.VEGETAL, ALWAYS);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.BONE_ASH, ALWAYS);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.CLOVER, MEDIUM);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.FOUR_LEAF_CLOVER, MEDIUM);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.BLOOD_ORCHID_PETAL, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.BLOOD_ORCHID, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.HIBERNATING_JADE_VINE_BULB, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.GERMINATED_JADE_VINE_BULB, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.JADE_VINE_PETALS, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.JADE_VINE_PETAL_BLOCK, ALWAYS);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.JADE_VINE_PETAL_CARPET, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.VARIA_SPROUT, MEDIUM);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.WEEPING_GALA_SPRIG, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.WEEPING_GALA_LEAVES, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.JADEITE_LOTUS_BULB, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.JADEITE_LOTUS_FLOWER, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.JADEITE_PETALS, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.JADEITE_PETAL_BLOCK, ALWAYS);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.JADEITE_PETAL_CARPET, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SWEET_PEA, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.APRICOTTI, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.HUMMING_BELL, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.RESONANT_LILY, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.MOSS_BALL, MEDIUM);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.GIANT_MOSS_BALL, ALWAYS);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.NIGHTDEW_SPROUT, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.NECTARDEW_BURGEON, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.NEPHRITE_BLOSSOM_BULB, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.NEPHRITE_BLOSSOM_LEAVES, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.FISSURE_PLUM, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.ALOE_LEAF, MEDIUM);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.BRISTLE_SPROUTS, MEDIUM);
CompostingChanceRegistry.INSTANCE.add(SpectrumItems.SAWBLADE_HOLLY_BERRY, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SNAPPING_IVY, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SMALL_RED_DRAGONJAG, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SMALL_YELLOW_DRAGONJAG, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SMALL_PINK_DRAGONJAG, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SMALL_PURPLE_DRAGONJAG, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SMALL_BLACK_DRAGONJAG, LOW);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SLATE_NOXSHROOM, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.EBONY_NOXSHROOM, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.IVORY_NOXSHROOM, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.CHESTNUT_NOXSHROOM, HIGH);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SLATE_NOXCAP_BLOCK, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.SLATE_NOXCAP_GILLS, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.EBONY_NOXCAP_BLOCK, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.EBONY_NOXCAP_GILLS, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.IVORY_NOXCAP_BLOCK, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.IVORY_NOXCAP_GILLS, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.CHESTNUT_NOXCAP_BLOCK, HIGHER);
CompostingChanceRegistry.INSTANCE.add(SpectrumBlocks.CHESTNUT_NOXCAP_GILLS, HIGHER);
for (DyeColor dyeColor : ColorHelper.VANILLA_DYE_COLORS) {
CompostingChanceRegistry.INSTANCE.add(ColoredSaplingBlock.byColor(dyeColor), LOW);
CompostingChanceRegistry.INSTANCE.add(ColoredLeavesBlock.byColor(dyeColor), LOW);
}
}
}