@@ -110,29 +110,29 @@ private static void generateMineableByPickaxeTag() {
110110
111111 BLOCKS .forEach (block -> { if (!IsLog .isLog (block .id ())) tag .addValue (block .id ().toString ()); });
112112 ArchitectureExtensions .RESOURCE_PACK .put (ResourceType .SERVER_DATA , Identifier .parse ("tags/block/mineable/pickaxe.json" ), tag .serialize ().toString ());
113- // ArchitectureExtensions.LOGGER.info("our pickaxe mineable tag: {}", tag.serialize());
113+ ArchitectureExtensions .LOGGER .info ("our pickaxe mineable tag: {}" , tag .serialize ());
114114 }
115115
116116 private static void generateMineableByAxeTag () {
117117 var tag = TagTemplate .DEFAULT .get ();
118118 BLOCKS .forEach (block -> { if (IsLog .isLog (block .id ())) tag .addValue (block .id ().toString ()); });
119119 ArchitectureExtensions .RESOURCE_PACK .put (ResourceType .SERVER_DATA , Identifier .parse ("tags/block/mineable/axe.json" ), tag .serialize ().toString ());
120- // ArchitectureExtensions.LOGGER.info("our axe mineable tag: {}", tag.serialize());
120+ ArchitectureExtensions .LOGGER .info ("our axe mineable tag: {}" , tag .serialize ());
121121 }
122122
123123 private static void generateNeedsStoneToolTag () {
124124 var tag = TagTemplate .DEFAULT .get ();
125125 BLOCKS .forEach (block -> tag .addValue (block .id ().toString ()));
126126 ArchitectureExtensions .RESOURCE_PACK .put (ResourceType .SERVER_DATA , Identifier .parse ("tags/block/needs_stone_tool.json" ), tag .serialize ().toString ());
127- // ArchitectureExtensions.LOGGER.info("our stone tool tag: {}", tag.serialize());
127+ ArchitectureExtensions .LOGGER .info ("our stone tool tag: {}" , tag .serialize ());
128128 }
129129
130130 private static void generateLootTables () {
131131 for (TypedGroupedBlock block : BLOCKS ) {
132132 var lootTable = LootTableTemplate .BLOCK_BREAK .get ();
133133 lootTable .addPool (JPool .ofItems (block .id ()).addCondition (JCondition .SURVIVES_EXPLOSION .get ()));
134134 ArchitectureExtensions .RESOURCE_PACK .put (ResourceType .SERVER_DATA , Identifier .of (block .id ().getNamespace (), "loot_table/blocks/" + block .id ().getPath () + ".json" ), lootTable .serialize ().toString ());
135- // ArchitectureExtensions.LOGGER.info("loot table: {}", lootTable.serialize());
135+ ArchitectureExtensions .LOGGER .info ("loot table: {}" , lootTable .serialize ());
136136 }
137137 }
138138
@@ -152,8 +152,8 @@ private static void generateRecipes() {
152152 final var path = template .tablesaw () ? "custom_recipes/tablesaw/" : "recipe/" ;
153153 final var prefix = template .simple () ? "" : block .id ().getPath () + "_" ;
154154 ArchitectureExtensions .RESOURCE_PACK .put (ResourceType .SERVER_DATA , Identifier .of (block .id ().getNamespace (), path + prefix + template .id () + ".json" ), recipe .serialize ().toString ());
155- // ArchitectureExtensions.LOGGER.info("{} recipe path: {}", template.id(), Identifier.of(block.id().getNamespace(), path + prefix + template.id() + ".json"));
156- // ArchitectureExtensions.LOGGER.info("{} recipe contents: {}", template.id(), recipe.serialize());
155+ ArchitectureExtensions .LOGGER .info ("{} recipe path: {}" , template .id (), Identifier .of (block .id ().getNamespace (), path + prefix + template .id () + ".json" ));
156+ ArchitectureExtensions .LOGGER .info ("{} recipe contents: {}" , template .id (), recipe .serialize ());
157157 }
158158 templates .clear ();
159159 }
@@ -162,24 +162,26 @@ private static void generateRecipes() {
162162 public static void generate (ResourceType resourceType ) {
163163 if (resourceType == ResourceType .SERVER_DATA ) {
164164 //needs to be a count since for some reason server data tries to get generated 4 TIMES??!??!!?!
165- ++ serverLoadCount ;
166- if ( serverLoadCount % 4 == 1 ) return ;
167- if (serverLoadCount > 4 ) ResourceUtils . refreshCaches ( ResourceType . SERVER_DATA ) ;
168-
165+ ArchitectureExtensions . LOGGER . info ( "are we going to actually load this stuff?" ) ;
166+ //++ serverLoadCount;
167+ // if (serverLoadCount % 4 == 1) return ;
168+ //if (serverLoadCount > 4) ResourceUtils.refreshCaches(ResourceType.SERVER_DATA);
169169 generateMineableByPickaxeTag ();
170170 generateMineableByAxeTag ();
171171 generateNeedsStoneToolTag ();
172172 generateLootTables ();
173173 generateRecipes ();
174+
175+ ArchitectureExtensions .LOGGER .info ("excuse me, what?" );
174176
175177 return ;
176178 }
177179
178180 if (resourceType == ResourceType .CLIENT_RESOURCES ) {
179181 // needs to be a count since for some reason client resources try to get generated 2 times!
180- ++clientLoadCount ;
181- if (clientLoadCount % 2 == 1 ) return ;
182- if (clientLoadCount > 1 ) ResourceUtils .refreshCaches (ResourceType .CLIENT_RESOURCES );
182+ // ++clientLoadCount;
183+ // if (clientLoadCount % 2 == 1) return;
184+ // if (clientLoadCount > 1) ResourceUtils.refreshCaches(ResourceType.CLIENT_RESOURCES);
183185
184186 for (TypedGroupedBlock block : BLOCKS ) {
185187 generateModels (block );
0 commit comments