1
1
package com .faboslav .friendsandfoes .init ;
2
2
3
+ import com .faboslav .friendsandfoes .block .CopperButtonBlock ;
3
4
import com .faboslav .friendsandfoes .block .Oxidizable ;
4
- import com .faboslav .friendsandfoes .block .*;
5
+ import com .faboslav .friendsandfoes .block .OxidizableButtonBlock ;
6
+ import com .faboslav .friendsandfoes .block .OxidizableLightningRodBlock ;
5
7
import com .faboslav .friendsandfoes .platform .RegistryHelper ;
6
8
import net .minecraft .block .*;
9
+ import net .minecraft .block .enums .Instrument ;
10
+ import net .minecraft .block .piston .PistonBehavior ;
7
11
import net .minecraft .entity .effect .StatusEffects ;
8
12
import net .minecraft .sound .BlockSoundGroup ;
9
13
@@ -17,7 +21,9 @@ public final class FriendsAndFoesBlocks
17
21
public static final Supplier <Block > BUTTERCUP ;
18
22
public static final Supplier <Block > POTTED_BUTTERCUP ;
19
23
public static final Supplier <Block > ACACIA_BEEHIVE ;
24
+ public static final Supplier <Block > BAMBOO_BEEHIVE ;
20
25
public static final Supplier <Block > BIRCH_BEEHIVE ;
26
+ public static final Supplier <Block > CHERRY_BEEHIVE ;
21
27
public static final Supplier <Block > CRIMSON_BEEHIVE ;
22
28
public static final Supplier <Block > DARK_OAK_BEEHIVE ;
23
29
public static final Supplier <Block > JUNGLE_BEEHIVE ;
@@ -41,24 +47,26 @@ public final class FriendsAndFoesBlocks
41
47
public static final Supplier <Block > WAXED_OXIDIZED_LIGHTNING_ROD ;
42
48
43
49
static {
44
- BUTTERCUP = RegistryHelper .registerBlock ("buttercup" , () -> new FlowerBlock (StatusEffects .SATURATION , 6 , AbstractBlock .Settings .of (Material .PLANT ).noCollision ().breakInstantly ().sounds (BlockSoundGroup .GRASS )));
45
- POTTED_BUTTERCUP = RegistryHelper .registerBlock ("potted_buttercup" , () -> new FlowerPotBlock (BUTTERCUP .get (), AbstractBlock .Settings .of (Material .DECORATION ).breakInstantly ()));
46
- ACACIA_BEEHIVE = RegistryHelper .registerBlock ("acacia_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .WOOD ).mapColor (MapColor .ORANGE ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
47
- BIRCH_BEEHIVE = RegistryHelper .registerBlock ("birch_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .WOOD ).mapColor (MapColor .PALE_YELLOW ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
48
- CRIMSON_BEEHIVE = RegistryHelper .registerBlock ("crimson_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .NETHER_WOOD ).mapColor (MapColor .DULL_PINK ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
49
- DARK_OAK_BEEHIVE = RegistryHelper .registerBlock ("dark_oak_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .WOOD ).mapColor (MapColor .BROWN ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
50
- JUNGLE_BEEHIVE = RegistryHelper .registerBlock ("jungle_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .WOOD ).mapColor (MapColor .DIRT_BROWN ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
51
- MANGROVE_BEEHIVE = RegistryHelper .registerBlock ("mangrove_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .WOOD ).mapColor (MapColor .RED ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
52
- SPRUCE_BEEHIVE = RegistryHelper .registerBlock ("spruce_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .WOOD ).mapColor (MapColor .SPRUCE_BROWN ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
53
- WARPED_BEEHIVE = RegistryHelper .registerBlock ("warped_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .of (Material .NETHER_WOOD ).mapColor (MapColor .DARK_AQUA ).strength (0.6F ).sounds (BlockSoundGroup .WOOD )));
54
- COPPER_BUTTON = RegistryHelper .registerBlock ("copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .UNAFFECTED , AbstractBlock .Settings .of (Material .DECORATION ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER )));
55
- EXPOSED_COPPER_BUTTON = RegistryHelper .registerBlock ("exposed_copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .EXPOSED , AbstractBlock .Settings .of (Material .DECORATION ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER )));
56
- WEATHERED_COPPER_BUTTON = RegistryHelper .registerBlock ("weathered_copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .WEATHERED , AbstractBlock .Settings .of (Material .DECORATION ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER )));
57
- OXIDIZED_COPPER_BUTTON = RegistryHelper .registerBlock ("oxidized_copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .OXIDIZED , AbstractBlock .Settings .of (Material .DECORATION ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER )));
58
- WAXED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_copper_button" , () -> new CopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ())));
59
- WAXED_EXPOSED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_exposed_copper_button" , () -> new ExposedCopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ())));
60
- WAXED_WEATHERED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_weathered_copper_button" , () -> new WeatheredCopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ())));
61
- WAXED_OXIDIZED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_oxidized_copper_button" , () -> new OxidizedCopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ())));
50
+ BUTTERCUP = RegistryHelper .registerBlock ("buttercup" , () -> new FlowerBlock (StatusEffects .SATURATION , 6 , AbstractBlock .Settings .create ().mapColor (MapColor .DARK_GREEN ).noCollision ().breakInstantly ().sounds (BlockSoundGroup .GRASS ).offset (AbstractBlock .OffsetType .XZ ).pistonBehavior (PistonBehavior .DESTROY )));
51
+ POTTED_BUTTERCUP = RegistryHelper .registerBlock ("potted_buttercup" , () -> new FlowerPotBlock (BUTTERCUP .get (), AbstractBlock .Settings .create ().breakInstantly ().nonOpaque ().pistonBehavior (PistonBehavior .DESTROY )));
52
+ ACACIA_BEEHIVE = RegistryHelper .registerBlock ("acacia_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .ORANGE ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
53
+ BAMBOO_BEEHIVE = RegistryHelper .registerBlock ("bamboo_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .YELLOW ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
54
+ BIRCH_BEEHIVE = RegistryHelper .registerBlock ("birch_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .PALE_YELLOW ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
55
+ CHERRY_BEEHIVE = RegistryHelper .registerBlock ("cherry_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .TERRACOTTA_WHITE ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
56
+ CRIMSON_BEEHIVE = RegistryHelper .registerBlock ("crimson_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .DULL_PINK ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
57
+ DARK_OAK_BEEHIVE = RegistryHelper .registerBlock ("dark_oak_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .BROWN ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
58
+ JUNGLE_BEEHIVE = RegistryHelper .registerBlock ("jungle_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .DIRT_BROWN ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
59
+ MANGROVE_BEEHIVE = RegistryHelper .registerBlock ("mangrove_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .RED ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
60
+ SPRUCE_BEEHIVE = RegistryHelper .registerBlock ("spruce_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .SPRUCE_BROWN ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
61
+ WARPED_BEEHIVE = RegistryHelper .registerBlock ("warped_beehive" , () -> new BeehiveBlock (AbstractBlock .Settings .create ().mapColor (MapColor .DARK_AQUA ).strength (0.6F ).sounds (BlockSoundGroup .WOOD ).instrument (Instrument .BASS ).burnable ()));
62
+ COPPER_BUTTON = RegistryHelper .registerBlock ("copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .UNAFFECTED , AbstractBlock .Settings .create ().noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER ), 10 ));
63
+ EXPOSED_COPPER_BUTTON = RegistryHelper .registerBlock ("exposed_copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .EXPOSED , AbstractBlock .Settings .create ().pistonBehavior (PistonBehavior .DESTROY ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER ), 7 ));
64
+ WEATHERED_COPPER_BUTTON = RegistryHelper .registerBlock ("weathered_copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .WEATHERED , AbstractBlock .Settings .create ().pistonBehavior (PistonBehavior .DESTROY ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER ), 4 ));
65
+ OXIDIZED_COPPER_BUTTON = RegistryHelper .registerBlock ("oxidized_copper_button" , () -> new OxidizableButtonBlock (Oxidizable .OxidationLevel .OXIDIZED , AbstractBlock .Settings .create ().pistonBehavior (PistonBehavior .DESTROY ).noCollision ().strength (0.5F ).sounds (BlockSoundGroup .COPPER ), 1 ));
66
+ WAXED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_copper_button" , () -> new CopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ()), 10 ));
67
+ WAXED_EXPOSED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_exposed_copper_button" , () -> new CopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ()), 7 ));
68
+ WAXED_WEATHERED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_weathered_copper_button" , () -> new CopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ()), 4 ));
69
+ WAXED_OXIDIZED_COPPER_BUTTON = RegistryHelper .registerBlock ("waxed_oxidized_copper_button" , () -> new CopperButtonBlock (AbstractBlock .Settings .copy (COPPER_BUTTON .get ()), 1 ));
62
70
EXPOSED_LIGHTNING_ROD = RegistryHelper .registerBlock ("exposed_lightning_rod" , () -> new OxidizableLightningRodBlock (Oxidizable .OxidationLevel .EXPOSED , AbstractBlock .Settings .copy (Blocks .LIGHTNING_ROD )));
63
71
WEATHERED_LIGHTNING_ROD = RegistryHelper .registerBlock ("weathered_lightning_rod" , () -> new OxidizableLightningRodBlock (Oxidizable .OxidationLevel .WEATHERED , AbstractBlock .Settings .copy (Blocks .LIGHTNING_ROD )));
64
72
OXIDIZED_LIGHTNING_ROD = RegistryHelper .registerBlock ("oxidized_lightning_rod" , () -> new OxidizableLightningRodBlock (Oxidizable .OxidationLevel .OXIDIZED , AbstractBlock .Settings .copy (Blocks .LIGHTNING_ROD )));
@@ -80,7 +88,9 @@ private static void registerFlammableBlocks() {
80
88
int beehiveSpreadChance = 20 ;
81
89
82
90
RegistryHelper .registerFlammableBlock (ACACIA_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
91
+ RegistryHelper .registerFlammableBlock (BAMBOO_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
83
92
RegistryHelper .registerFlammableBlock (BIRCH_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
93
+ RegistryHelper .registerFlammableBlock (CHERRY_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
84
94
RegistryHelper .registerFlammableBlock (CRIMSON_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
85
95
RegistryHelper .registerFlammableBlock (DARK_OAK_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
86
96
RegistryHelper .registerFlammableBlock (JUNGLE_BEEHIVE , beehiveBurnChance , beehiveSpreadChance );
0 commit comments