11package cc .cassian .pyrite ;
22
3+ import cc .cassian .pyrite .functions .ModHelpers ;
34import net .minecraft .block .*;
45import net .minecraft .particle .DustParticleEffect ;
56import net .minecraft .particle .ParticleTypes ;
@@ -16,91 +17,113 @@ public class Pyrite {
1617
1718
1819 public static void init () {
19- //Framed Glass
20+ // Framed Glass
2021 createPyriteBlock ("framed_glass" ,"glass" , 2.0f , MapColor .CLEAR , 0 );
21- //Framed Glass Pane
22+ // Framed Glass Pane
2223 createPyriteBlock ( "framed_glass_pane" ,"glass_pane" , 2.0f , MapColor .CLEAR , 0 );
23- //Cobblestone Bricks
24+ // Switchable Glass
25+ createPyriteBlock ("switchable_glass" , "switchable_glass" , Blocks .GLASS );
26+ // Cobblestone Bricks
2427 generateBrickSet ("cobblestone_brick" , Blocks .COBBLESTONE , MapColor .STONE_GRAY , 0 );
25- //Mossy Cobblestone Bricks
28+ // Mossy Cobblestone Bricks
2629 generateBrickSet ("mossy_cobblestone_brick" , Blocks .MOSSY_COBBLESTONE , MapColor .STONE_GRAY , 0 );
2730 generateBrickSet ("smooth_stone_brick" , Blocks .COBBLESTONE , MapColor .STONE_GRAY , 0 );
28- //Grass Set
31+ // Grass Set
2932 generateTurfSets ();
30- //Nether Brick Fence Gate
33+ // Nether Brick Fence Gate
3134 createPyriteBlock ("nether_brick_fence_gate" ,"fence_gate" , Blocks .NETHER_BRICK_FENCE );
32- //Resource Blocks
35+ // Resource Blocks
3336 generateResourceBlocks ();
34- //Torch Levers
37+ // Torch Levers
3538 createTorchLever ("torch_lever" , Blocks .TORCH , ParticleTypes .FLAME );
3639 createTorchLever ("redstone_torch_lever" , Blocks .SOUL_TORCH , DustParticleEffect .DEFAULT );
3740 createTorchLever ("soul_torch_lever" , Blocks .TORCH , ParticleTypes .SOUL_FIRE_FLAME );
38- //Lamps
41+ // Lamps
3942 createPyriteBlock ("lit_redstone_lamp" , "block" , Blocks .REDSTONE_LAMP , 15 );
4043 createPyriteBlock ("glowstone_lamp" ,"block" , 0.3f , MapColor .YELLOW , 15 );
41- //Classic Features
44+ // Classic Features
4245 createPyriteBlock ("glowing_obsidian" ,"obsidian" , 50f , MapColor .RED , 15 );
4346 createPyriteBlock ("nostalgia_glowing_obsidian" ,"obsidian" , 50f , MapColor .RED , 15 );
4447 createPyriteBlock ("locked_chest" , "facing" , Blocks .CHEST , 15 );
4548 generateNostalgiaBlocks ();
46- //Classic Flowers
49+ // Classic Flowers
4750 generateFlowers ();
48- //Charred Nether Bricks
51+ // Charred Nether Bricks
4952 generateBrickSet ("charred_nether_brick" , Blocks .NETHER_BRICKS , MapColor .BLACK , 0 );
50- //Blue Nether Bricks
53+ // Blue Nether Bricks
5154 generateBrickSet ("blue_nether_brick" , Blocks .NETHER_BRICKS , MapColor .BLUE , 0 );
52- //Vanilla Crafting Tables
55+ // Vanilla Crafting Tables
5356 generateVanillaCraftingTables ();
54- //Red Mushroom Blocks
57+ // Modded Crafting Tables
58+ if (ModHelpers .isModLoaded ("aether" )) {
59+ createPyriteBlock ("skyroot_crafting_table" ,"crafting" , Blocks .CRAFTING_TABLE );
60+ createPyriteBlock ( "holystone_wall_gate" ,"fence_gate" , Blocks .STONE );
61+ createPyriteBlock ( "mossy_holystone_wall_gate" ,"fence_gate" , Blocks .STONE );
62+ createPyriteBlock ( "holystone_brick_wall_gate" ,"fence_gate" , Blocks .STONE );
63+ createPyriteBlock ( "icestone_wall_gate" ,"fence_gate" , Blocks .STONE );
64+ createPyriteBlock ( "aerogel_wall_gate" ,"fence_gate" , Blocks .STONE );
65+ createPyriteBlock ( "carved_wall_gate" ,"fence_gate" , Blocks .STONE );
66+ createPyriteBlock ( "angelic_wall_gate" ,"fence_gate" , Blocks .STONE );
67+ createPyriteBlock ( "hellfire_wall_gate" ,"fence_gate" , Blocks .STONE );
68+
69+
70+ }
71+ // Red Mushroom Blocks
5572 createPyriteBlock ("red_mushroom_stem" , "log" , Blocks .MUSHROOM_STEM );
5673 createWoodSet ("red_mushroom" , MapColor .RED , 0 );
57- //Brown Mushroom Blocks
74+ // Brown Mushroom Blocks
5875 createPyriteBlock ("brown_mushroom_stem" , "log" , Blocks .MUSHROOM_STEM );
5976 createWoodSet ("brown_mushroom" , MapColor .BROWN , 0 );
60- //Autogenerate dye blocks.
77+ // Autogenerate dye blocks.
6178 final String [] dyes = getDyes ();
6279 for (int dyeIndex = 0 ; dyeIndex < dyes .length ; dyeIndex ++) {
6380 String dye = dyes [dyeIndex ];
6481 int blockLux = checkDyeLux (dye );
6582 MapColor color = checkDyeMapColour (dye );
6683 if (dyeIndex > 15 ) {
67- //Dye items.
84+ // Dye items.
6885 registerPyriteItem (dye + "_dye" );
69- //Dyed Wool
86+ // Dyed Wool
7087 createPyriteBlock (dye + "_wool" , "block" , Blocks .WHITE_WOOL , color , blockLux );
71- //Terracotta Block
72- createPyriteBlock (dye +"_terracotta" , "block" , Blocks .TERRACOTTA ,color , blockLux );
73-
74- //Glazed Terracotta Block
75- //coming soon - createPyriteBlock(dye+"_glazed_terracotta", "block", Blocks.TERRACOTTA,color, blockLux);
76- //Concrete Powder Block
77- //coming soon - createPyriteBlock(dye+"_concrete", "block", Blocks.TERRACOTTA,color, blockLux);
78- //Concrete Block
79- //coming soon - createPyriteBlock(dye+"_concrete", "block", Blocks.CONCRETE,color, blockLux);
80- //Carpet block
88+ // Dyed Carpet
8189 createPyriteBlock (dye + "_carpet" , "carpet" , Blocks .WHITE_CARPET , color , blockLux );
90+ // Dyed Concrete
91+ createPyriteBlock (dye +"_concrete" , "block" , Blocks .WHITE_CONCRETE , color , blockLux );
92+ // Dyed Concrete Powder
93+ createPyriteBlock (dye +"_concrete_powder" , "concrete_powder" , Blocks .WHITE_CONCRETE_POWDER , color , blockLux );
8294 }
83- //Planks and plank products
95+ // Dyed Concrete Stairs
96+ createPyriteBlock ( dye +"_concrete_stairs" , "stairs" , Blocks .WHITE_CONCRETE , color , blockLux );
97+ // Dyed Concrete Slab
98+ createPyriteBlock ( dye +"_concrete_slab" , "slab" , Blocks .WHITE_CONCRETE , color , blockLux );
99+ //Dyed Planks and plank products
84100 createWoodSet (dye + "_stained" , color , blockLux );
85- //Bricks and brick products
101+ // Dyed Bricks and brick products
86102 generateBrickSet (dye + "_brick" , Blocks .BRICKS , color , blockLux );
87- //Terracotta Bricks
103+ if (dyeIndex > 15 ) {
104+ // Dyed Terracotta
105+ createPyriteBlock (dye +"_terracotta" , "block" , Blocks .TERRACOTTA ,color , blockLux );
106+ // Dyed Glazed Terracotta
107+ //coming soon - createPyriteBlock(dye+"_glazed_terracotta", "block", Blocks.TERRACOTTA,color, blockLux);
108+ }
109+ // Dyed Terracotta Bricks
88110 generateBrickSet (dye +"_terracotta_brick" , Blocks .TERRACOTTA , color , blockLux );
89- //Dyed Framed Glass
111+ // Dyed Torches
112+ createTorch (dye +"_torch" , getTorchParticle (dye ));
113+ // Dyed Lamps
114+ createPyriteBlock (dye + "_lamp" ,"block" , 0.3f , color , 15 );
115+ // Dyed Framed Glass
90116 createPyriteBlock (dye +"_framed_glass" ,"tinted_glass" , 2.0f , color , blockLux );
91- //Dyed Framed Glass Pane
117+ // Dyed Framed Glass Pane
92118 createPyriteBlock ( dye +"_framed_glass_pane" ,"tinted_glass_pane" , 2.0f , color , blockLux );
93- //Dyed Lamps
94- createPyriteBlock (dye + "_lamp" ,"block" , 0.3f , color , 15 );
95- //Dyed Torches
96- createTorch (dye +"_torch" , getTorchParticle (dye ));
97- //Dyed Torch Levers
119+ // Dyed Torch Levers
98120 createTorchLever (dye +"_torch_lever" , Blocks .TORCH , getTorchParticle (dye ));
99121
100122
101123
124+
102125 }
103- //Autogenerate Wall Gates
126+ // Autogenerate Wall Gates
104127 for (Block wallsBlock : getVanillaWalls ()) {
105128 //Find block ID
106129 String block = findVanillaBlockID (wallsBlock );
@@ -111,8 +134,6 @@ public static void init() {
111134 //Create block.
112135 createPyriteBlock (block + "_gate" ,"fence_gate" , wallsBlock );
113136 }
114- register ();
115-
116137 }
117138
118139
0 commit comments