3
3
import net .fabricmc .fabric .api .object .builder .v1 .block .FabricBlockSettings ;
4
4
import net .fabricmc .fabric .api .object .builder .v1 .block .type .BlockSetTypeBuilder ;
5
5
import net .minecraft .block .*;
6
+ import net .minecraft .registry .tag .BlockTags ;
6
7
import org .infernalstudios .infernalexp .InfernalExpansion ;
8
+ import org .infernalstudios .infernalexp .block .custom .DullthornsBlock ;
9
+ import org .infernalstudios .infernalexp .block .custom .FungusCapBlock ;
7
10
import org .infernalstudios .infernalexp .block .custom .LuminousFungusBlock ;
8
11
import org .infernalstudios .infernalexp .setup .ModRegistry ;
9
12
@@ -28,13 +31,16 @@ public static void register() {
28
31
private static final BlockSetType dullStoneSet =
29
32
new BlockSetTypeBuilder ().register (InfernalExpansion .makeID ("dullstone" ));
30
33
34
+ private static final FabricBlockSettings dullthorns =
35
+ FabricBlockSettings .create ().mapColor (MapColor .SPRUCE_BROWN ).strength (0.4f );
36
+
31
37
32
38
public static final Block SHIMMER_SAND = ModRegistry .ofBlock ("shimmer_sand" ,
33
- new SandBlock (0xffffaa , FabricBlockSettings .copyOf (Blocks .SAND )))
39
+ new SandBlock (0xffffaa , FabricBlockSettings .copyOf (Blocks .SAND )))
34
40
.model (ModRegistry .Models .ROTATABLE ).drop ().tool ("wood_shovel" ).build ();
35
41
36
42
public static final Block SHIMMER_SHEET = ModRegistry .ofBlock ("shimmer_sheet" ,
37
- new SnowBlock (FabricBlockSettings .copyOf (Blocks .SAND )))
43
+ new SnowBlock (FabricBlockSettings .copyOf (Blocks .SAND )))
38
44
.tool ("wood_shovel" ).build ();
39
45
40
46
public static final Block GLOWLIGHT_GLASS = ModRegistry .ofBlock ("glowlight_glass" ,
@@ -100,8 +106,25 @@ public static void register() {
100
106
.model ().drop ().tool ("stone_hoe" ).build ();
101
107
102
108
109
+ public static final Block DULLTHORNS = ModRegistry .ofBlock ("dullthorns" ,
110
+ new DullthornsBlock (Block .createCuboidShape (3 , 0 , 3 , 13 , 16 , 13 ),
111
+ FabricBlockSettings .copyOf (dullthorns ).collidable (false ).nonOpaque ()))
112
+ .model (ModRegistry .Models .CROSS ).drop ().tool ("wood_axe" )
113
+ .tag (BlockTags .CLIMBABLE ).cutout ().build ();
114
+
115
+ public static final Block DULLTHORNS_BLOCK = ModRegistry .ofBlock ("dullthorns_block" ,
116
+ new DullthornsBlock (Block .createCuboidShape (0.1 , 0 , 0.1 , 15.9 , 16 , 15.9 ), dullthorns ))
117
+ .model ().drop ().tool ("wood_axe" )
118
+ .tag (BlockTags .CLIMBABLE ).build ();
119
+
120
+
103
121
public static final Block LUMINOUS_FUNGUS = ModRegistry .ofBlock ("luminous_fungus" ,
104
- new LuminousFungusBlock (FabricBlockSettings .copyOf (Blocks .WARPED_FUNGUS )
105
- .luminance (a -> a .get (LuminousFungusBlock .IS_LIT ) ? 15 : 0 ).ticksRandomly ()))
122
+ new LuminousFungusBlock (FabricBlockSettings .copyOf (Blocks .WARPED_FUNGUS )
123
+ .luminance (a -> a .get (LuminousFungusBlock .IS_LIT ) ? 15 : 0 ).ticksRandomly ()))
106
124
.drop ().cutout ().build ();
125
+
126
+ public static final Block LUMINOUS_FUNGUS_CAP = ModRegistry .ofBlock ("luminous_fungus_cap" ,
127
+ new FungusCapBlock (FabricBlockSettings .copyOf (Blocks .WARPED_FUNGUS )
128
+ .luminance (8 ).collidable (true )))
129
+ .tool ("wood_hoe" ).drop ().build ();
107
130
}
0 commit comments