1313import net .minecraft .data .recipes .ShapelessRecipeBuilder ;
1414import net .minecraft .tags .ItemTags ;
1515import net .minecraft .world .item .Items ;
16+ import net .minecraft .world .level .ItemLike ;
1617import net .minecraft .world .level .block .Blocks ;
18+ import com .simibubi .create .AllBlocks ;
19+ import com .simibubi .create .AllItems ;
1720
1821import java .util .function .Consumer ;
1922
@@ -25,81 +28,86 @@ public IMPRecipeProviderWrapper(PackOutput packOutput, CrossDataGeneratorAccess
2528
2629 @ Override
2730 public void generateRecipe (Consumer <FinishedRecipe > exporter , RecipeProviderAccess providerAccess ) {
28- ShapelessRecipeBuilder .shapeless (RecipeCategory .MISC , IMPItems .MANUAL .get ())
29- .requires (Items .BOOK )
30- .requires (IMPItemTags .CASSETTE_TAPE )
31- .unlockedBy (providerAccess .getHasName (Items .BOOK ), providerAccess .has (Items .BOOK ))
32- .save (exporter );
33-
34- ShapelessRecipeBuilder .shapeless (RecipeCategory .MISC , IMPItems .CASSETTE_TAPE .get ())
35- .requires (PlatformItemTags .ironNuggets ().getKey ())
36- .requires (PlatformItemTags .stone ().getKey ())
37- .requires (PlatformItemTags .redstoneDusts ())
38- .requires (Items .DRIED_KELP )
31+ ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPItems .CASSETTE_TAPE_GLASS .get ())
32+ .define ('B' , AllBlocks .BELT )
33+ .define ('C' , AllBlocks .COGWHEEL )
34+ .define ('K' , Items .COPPER_INGOT )
35+ .define ('G' , PlatformItemTags .glassBlocks ())
36+ .pattern (" B " )
37+ .pattern ("CKC" )
38+ .pattern (" G " )
3939 .unlockedBy (providerAccess .getHasName (Items .DRIED_KELP ), providerAccess .has (Items .DRIED_KELP ))
4040 .save (exporter );
4141
42- ShapelessRecipeBuilder .shapeless (RecipeCategory .MISC , IMPItems .CASSETTE_TAPE_GLASS .get ())
43- .requires (PlatformItemTags .ironNuggets ().getKey ())
44- .requires (PlatformItemTags .glassBlocks ())
45- .requires (PlatformItemTags .redstoneDusts ())
46- .requires (Items .DRIED_KELP )
42+ ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPItems .CASSETTE_TAPE .get ())
43+ .define ('B' , AllBlocks .BELT )
44+ .define ('C' , AllBlocks .COGWHEEL )
45+ .define ('K' , Items .COPPER_INGOT )
46+ .pattern (" B " )
47+ .pattern ("CKC" )
48+ .pattern (" B " )
4749 .unlockedBy (providerAccess .getHasName (Items .DRIED_KELP ), providerAccess .has (Items .DRIED_KELP ))
4850 .save (exporter );
4951
5052 ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPItems .RADIO_ANTENNA .get ())
51- .define ('E' , PlatformItemTags .enderPearls ().getKey ())
52- .define ('I' , PlatformItemTags .ironIngots ())
53- .pattern ("E" )
54- .pattern ("I" )
55- .pattern ("I" )
53+ .define ('R' , Items .REDSTONE_TORCH )
54+ .define ('S' , AllBlocks .SHAFT )
55+ .define ('P' , AllItems .IRON_SHEET )
56+ .pattern ("R" )
57+ .pattern ("S" )
58+ .pattern ("P" )
5659 .group ("antenna" )
5760 .unlockedBy (providerAccess .getHasName (Items .ENDER_PEARL ), providerAccess .has (PlatformItemTags .enderPearls ().getKey ()))
5861 .save (exporter );
5962
6063 ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPItems .PARABOLIC_ANTENNA .get ())
61- .define ('E ' , PlatformItemTags . enderPearls (). getKey ())
62- .define ('I ' , PlatformItemTags . ironIngots () )
63- .define ('B ' , Blocks . IRON_BLOCK )
64- .pattern ("IEI " )
65- .pattern ("I I " )
66- .pattern (" B " )
64+ .define ('A ' , IMPItems . RADIO_ANTENNA . get ())
65+ .define ('P ' , AllItems . IRON_SHEET )
66+ .define ('L ' , AllBlocks . REDSTONE_LINK )
67+ .pattern ("APA " )
68+ .pattern ("PLP " )
69+ .pattern ("APA " )
6770 .group ("antenna" )
68- .unlockedBy (providerAccess .getHasName (Items . ENDER_PEARL ), providerAccess .has (PlatformItemTags .enderPearls ().getKey ()))
71+ .unlockedBy (providerAccess .getHasName (AllBlocks . REDSTONE_LINK ), providerAccess .has (PlatformItemTags .enderPearls ().getKey ()))
6972 .save (exporter );
7073
7174 ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPBlocks .BOOMBOX .get ())
72- .define ('T ' , PlatformItemTags . ironNuggets (). getKey () )
73- .define ('I ' , PlatformItemTags . ironIngots () )
75+ .define ('E ' , AllItems . ELECTRON_TUBE )
76+ .define ('P ' , AllItems . IRON_SHEET )
7477 .define ('N' , Items .NOTE_BLOCK )
7578 .define ('J' , Items .JUKEBOX )
7679 .define ('B' , ItemTags .BUTTONS )
77- .pattern ("TBT " )
80+ .pattern ("CBC " )
7881 .pattern ("NJN" )
79- .pattern ("III " )
82+ .pattern ("PEP " )
8083 .unlockedBy (providerAccess .getHasName (Items .JUKEBOX ), providerAccess .has (Items .JUKEBOX ))
8184 .save (exporter );
8285
8386 ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPBlocks .CASSETTE_DECK .get ())
84- .define ('R ' , PlatformItemTags . redstoneDusts () )
85- .define ('I ' , PlatformItemTags . ironIngots () )
87+ .define ('E ' , AllItems . ELECTRON_TUBE )
88+ .define ('P ' , AllItems . IRON_SHEET )
8689 .define ('N' , Items .NOTE_BLOCK )
8790 .define ('J' , Items .JUKEBOX )
88- .pattern ("IRI" )
89- .pattern ("NJN" )
90- .pattern ("III" )
91+ .define ('Z' , AllBlocks .COGWHEEL )
92+ .define ('B' , ItemTags .BUTTONS )
93+ .define ('C' , PlatformItemTags .copperIngots ())
94+ .pattern ("ZNZ" )
95+ .pattern ("BJC" )
96+ .pattern ("PEP" )
9197 .unlockedBy (providerAccess .getHasName (Items .JUKEBOX ), providerAccess .has (Items .JUKEBOX ))
9298 .save (exporter );
9399
94100 ShapedRecipeBuilder .shaped (RecipeCategory .MISC , IMPBlocks .MUSIC_MANAGER .get ())
95- .define ('D ' , PlatformItemTags . diamonds () )
96- .define ('I ' , PlatformItemTags . ironIngots () )
101+ .define ('C ' , AllBlocks . BRASS_CASING )
102+ .define ('P ' , AllItems . IRON_SHEET )
97103 .define ('G' , PlatformItemTags .glassPanes ())
98- .define ('R' , PlatformItemTags .redstoneDusts ())
99- .define ('B' , PlatformItemTags .diamonds ())
100- .pattern ("III" )
101- .pattern ("DGR" )
102- .pattern ("BII" )
104+ .define ('R' , AllBlocks .REDSTONE_LINK )
105+ .define ('B' , AllBlocks .BELT )
106+ .define ('K' , Items .COPPER_INGOT )
107+ .define ('E' , AllItems .ELECTRON_TUBE )
108+ .pattern ("PPC" )
109+ .pattern ("GKR" )
110+ .pattern ("BBE" )
103111 .unlockedBy (providerAccess .getHasName (Items .DIAMOND ), providerAccess .has (Items .DIAMOND ))
104112 .save (exporter );
105113 }
0 commit comments