1414import net .minecraft .core .item .Items ;
1515import turniplabs .halplibe .helper .RecipeBuilder ;
1616import turniplabs .halplibe .util .RecipeEntrypoint ;
17+ import useless .moonsteel .MoonSteelBlocks ;
18+ import useless .moonsteel .MoonSteelItems ;
1719
1820
1921public class FeaturesCraft implements RecipeEntrypoint {
@@ -32,6 +34,19 @@ public class FeaturesCraft implements RecipeEntrypoint {
3234 Blocks .FLOWER_ORANGE .id ()
3335 };
3436
37+ public static int [] flowerMaterial2 = {
38+ FeaturesBlocks .white_Flower .id (),
39+ FeaturesBlocks .magenta_Flower .id (),
40+ FeaturesBlocks .lime_Flower .id (),
41+ FeaturesBlocks .gray_Flower .id (),
42+ FeaturesBlocks .silver_Flower .id (),
43+ FeaturesBlocks .cyan_Flower .id (),
44+ FeaturesBlocks .blue_Flower .id (),
45+ FeaturesBlocks .brown_Flower .id (),
46+ FeaturesBlocks .green_Flower .id (),
47+ FeaturesBlocks .black_Flower .id ()
48+ };
49+
3550 public static Item [] flowercrownResult = {
3651 FeaturesItems .dandelion_Crown ,
3752 FeaturesItems .rose_Crown ,
@@ -43,6 +58,19 @@ public class FeaturesCraft implements RecipeEntrypoint {
4358 FeaturesItems .marigold_Crown
4459 };
4560
61+ public static Item [] flowercrownResult2 = {
62+ FeaturesItems .daisy_Crown ,
63+ FeaturesItems .delphiniums_Crown ,
64+ FeaturesItems .angelica_Crown ,
65+ FeaturesItems .allium_Crown ,
66+ FeaturesItems .dustymiller_Crown ,
67+ FeaturesItems .cyanrose_Crown ,
68+ FeaturesItems .bluepoppy_Crown ,
69+ FeaturesItems .dahlia_Crown ,
70+ FeaturesItems .barrelcactus_Crown ,
71+ FeaturesItems .blacktulip_Crown
72+ };
73+
4674 public static int [] regularMaterial = {
4775 Items .LEATHER .id ,
4876 Items .INGOT_IRON .id ,
@@ -504,6 +532,16 @@ public void onRecipesReady() {
504532 .addInput ('H' , material )
505533 .create ("rown" , new ItemStack (flowercrownResult [j ], 1 ));
506534 }
535+
536+ if (FeaturesBlocks .newFlowersEnabled == 1 ){
537+ for (int j = 0 ; j < flowerMaterial2 .length ; j ++) {
538+ Item material = Item .itemsList [flowerMaterial2 [j ]];
539+ RecipeBuilder .Shaped (MOD_ID )
540+ .setShape ("HHH" , "H H" , "HHH" )
541+ .addInput ('H' , material )
542+ .create ("rown" , new ItemStack (flowercrownResult2 [j ], 1 ));
543+ }
544+ }
507545 }
508546 //regular crown crafting
509547 if (FeaturesItems .normalCrownsEnabled == 1 ) {
@@ -823,5 +861,86 @@ public void onRecipesReady() {
823861 workbenchGroup .register ("ladderdyeing" , new RecipeEntryDyeing (new RecipeSymbol ("morefeatures:ladders" ) , new ItemStack (FeaturesBlocks .vanilla_Colored_Ladder ), true , false ));
824862 workbenchGroup .register ("ladderundyeing" , new RecipeEntryUndyeing (new RecipeSymbol ("morefeatures:ladders" ) , new ItemStack (Blocks .LADDER_OAK )));
825863 }
864+
865+ if (FeaturesItems .glassSwordEnabled == 1 ){
866+ RecipeBuilder .Shaped (MOD_ID )
867+ .setShape ("G" , "G" , "S" )
868+ .addInput ('S' , Items .STICK )
869+ .addInput ('G' , Blocks .GLASS )
870+ .create ("glasssword" , new ItemStack (FeaturesItems .glass_Sword ));
871+ }
872+
873+ if (FeaturesMain .moonmoonmoonOn ){
874+ RecipeBuilder .Shaped (MOD_ID )
875+ .setShape ("APH" , " W " , " S " )
876+ .addInput ('S' , Items .STICK )
877+ .addInput ('A' , MoonSteelItems .TOOL_AXE_MOONSTEEL )
878+ .addInput ('P' , MoonSteelItems .TOOL_PICKAXE_MOONSTEEL )
879+ .addInput ('H' , MoonSteelItems .TOOL_SHOVEL_MOONSTEEL )
880+ .addInput ('W' , MoonSteelItems .TOOL_SWORD_MOONSTEEL )
881+ .create ("paxelcraft" , new ItemStack (FeaturesItems .paxel_Moonsteel ));
882+
883+ RecipeBuilder .Shaped (MOD_ID )
884+ .setShape ("MM " , "MSH" , " S " )
885+ .addInput ('S' , Items .STICK )
886+ .addInput ('M' , MoonSteelItems .INGOT_MOONSTEEL )
887+ .addInput ('H' , MoonSteelBlocks .BLOCK_MOONSTEEL )
888+ .create ("climbpickcraft" , new ItemStack (FeaturesItems .climb_pickaxe_Monnsteel ));
889+
890+ RecipeBuilder .Shaped (MOD_ID )
891+ .setShape ("HMH" , "MSM" , " S " )
892+ .addInput ('S' , Items .STICK )
893+ .addInput ('M' , MoonSteelItems .INGOT_MOONSTEEL )
894+ .addInput ('H' , MoonSteelBlocks .BLOCK_MOONSTEEL )
895+ .create ("hammercraft" , new ItemStack (FeaturesItems .mining_hammer_MoonSteel ));
896+
897+ RecipeBuilder .Shaped (MOD_ID )
898+ .setShape ("HCH" , "HHH" )
899+ .addInput ('H' , MoonSteelItems .INGOT_MOONSTEEL )
900+ .addInput ('C' , Items .CLOTH )
901+ .create ("crown" , new ItemStack (FeaturesItems .moonsteel_Crown , 1 ));
902+ }
903+
904+ if (FeaturesBlocks .newFlowersEnabled == 1 ){
905+ RecipeBuilder .Shapeless (MOD_ID )
906+ .addInput (FeaturesBlocks .white_Flower )
907+ .create ("whiteflowertodye" , new ItemStack (Items .DYE , 2 , 15 ));
908+
909+ RecipeBuilder .Shapeless (MOD_ID )
910+ .addInput (FeaturesBlocks .magenta_Flower )
911+ .create ("magentaflowertodye" , new ItemStack (Items .DYE , 2 , 13 ));
912+
913+ RecipeBuilder .Shapeless (MOD_ID )
914+ .addInput (FeaturesBlocks .lime_Flower )
915+ .create ("limeflowertodye" , new ItemStack (Items .DYE , 2 , 10 ));
916+
917+ RecipeBuilder .Shapeless (MOD_ID )
918+ .addInput (FeaturesBlocks .gray_Flower )
919+ .create ("grayflowertodye" , new ItemStack (Items .DYE , 2 , 8 ));
920+
921+ RecipeBuilder .Shapeless (MOD_ID )
922+ .addInput (FeaturesBlocks .silver_Flower )
923+ .create ("silverflowertodye" , new ItemStack (Items .DYE , 2 , 7 ));
924+
925+ RecipeBuilder .Shapeless (MOD_ID )
926+ .addInput (FeaturesBlocks .cyan_Flower )
927+ .create ("cyanflowertodye" , new ItemStack (Items .DYE , 2 , 6 ));
928+
929+ RecipeBuilder .Shapeless (MOD_ID )
930+ .addInput (FeaturesBlocks .blue_Flower )
931+ .create ("blueflowertodye" , new ItemStack (Items .DYE , 2 , 4 ));
932+
933+ RecipeBuilder .Shapeless (MOD_ID )
934+ .addInput (FeaturesBlocks .brown_Flower )
935+ .create ("brownflowertodye" , new ItemStack (Items .DYE , 2 , 3 ));
936+
937+ RecipeBuilder .Shapeless (MOD_ID )
938+ .addInput (FeaturesBlocks .green_Flower )
939+ .create ("greenflowertodye" , new ItemStack (Items .DYE , 2 , 2 ));
940+
941+ RecipeBuilder .Shapeless (MOD_ID )
942+ .addInput (FeaturesBlocks .black_Flower )
943+ .create ("blackflowertodye" , new ItemStack (Items .DYE , 2 , 0 ));
944+ }
826945 }
827946}
0 commit comments