Skip to content

Commit

Permalink
remove "smooth" block type as it's unused and useless and has the sam…
Browse files Browse the repository at this point in the history
…e texture as the normal block
  • Loading branch information
screret committed May 3, 2024
1 parent e6f60fe commit 2955d65
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

public enum StoneBlockType {
STONE("stone", "%s"),
SMOOTH("smooth", "smooth_%s"),
COBBLE("cobble", "%s_cobblestone", 2.0f, 6.0f),
COBBLE_MOSSY("cobble_mossy", "mossy_%s_cobblestone", 2.0f, 6.0f),
POLISHED("polished", "polished_%s"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ private static void registerStoneBricksRecipes(Consumer<FinishedRecipe> provider
// normal variant -> cobble variant
List<ItemStack> cobbles = GTBlocks.STONE_BLOCKS.row(StoneBlockType.COBBLE).values().stream().map(ItemStack::new).toList();
List<ItemStack> mossCobbles = GTBlocks.STONE_BLOCKS.row(StoneBlockType.COBBLE_MOSSY).values().stream().map(ItemStack::new).toList();
List<ItemStack> smooths = GTBlocks.STONE_BLOCKS.row(StoneBlockType.SMOOTH).values().stream().map(ItemStack::new).toList();
List<ItemStack> stones = GTBlocks.STONE_BLOCKS.row(StoneBlockType.STONE).values().stream().map(ItemStack::new).toList();
List<ItemStack> polisheds = GTBlocks.STONE_BLOCKS.row(StoneBlockType.POLISHED).values().stream().map(ItemStack::new).toList();
List<ItemStack> bricks = GTBlocks.STONE_BLOCKS.row(StoneBlockType.BRICKS).values().stream().map(ItemStack::new).toList();
List<ItemStack> crackedBricks = GTBlocks.STONE_BLOCKS.row(StoneBlockType.BRICKS_CRACKED).values().stream().map(ItemStack::new).toList();
Expand All @@ -238,10 +238,10 @@ private static void registerStoneBricksRecipes(Consumer<FinishedRecipe> provider
List<ItemStack> squareBricks = GTBlocks.STONE_BLOCKS.row(StoneBlockType.BRICKS_SQUARE).values().stream().map(ItemStack::new).toList();
List<ItemStack> smallBricks = GTBlocks.STONE_BLOCKS.row(StoneBlockType.BRICKS_SMALL).values().stream().map(ItemStack::new).toList();

registerSmoothRecipe(provider, cobbles, smooths);
registerCobbleRecipe(provider, smooths, cobbles);
registerSmoothRecipe(provider, cobbles, stones);
registerCobbleRecipe(provider, stones, cobbles);
registerMossRecipe(provider, cobbles, mossCobbles);
registerSmoothRecipe(provider, smooths, polisheds);
registerSmoothRecipe(provider, stones, polisheds);
registerBricksRecipe(provider, polisheds, bricks, MarkerMaterials.Color.LightBlue);
registerCobbleRecipe(provider, bricks, crackedBricks);
registerMossRecipe(provider, bricks, mossBricks);
Expand All @@ -253,10 +253,10 @@ private static void registerStoneBricksRecipes(Consumer<FinishedRecipe> provider
registerBricksRecipe(provider, polisheds, squareBricks, MarkerMaterials.Color.Green);
registerBricksRecipe(provider, polisheds, smallBricks, MarkerMaterials.Color.Pink);

for (int i = 0; i < smooths.size(); i++) {
for (int i = 0; i < stones.size(); i++) {
ResourceLocation bricksId = BuiltInRegistries.ITEM.getKey(bricks.get(i).getItem());
EXTRUDER_RECIPES.recipeBuilder("extrude_" + bricksId.getPath())
.inputItems(smooths.get(i))
.inputItems(stones.get(i))
.notConsumable(SHAPE_EXTRUDER_INGOT)
.outputItems(bricks.get(i))
.duration(24).EUt(8).save(provider);
Expand Down Expand Up @@ -933,24 +933,24 @@ private static void registerFluidRecipes(Consumer<FinishedRecipe> provider) {
FLUID_HEATER_RECIPES.recipeBuilder("heat_distilled_to_steam").duration(30).EUt(VA[LV]).inputFluids(DistilledWater.getFluid(6)).circuitMeta(1).outputFluids(Steam.getFluid(960)).save(provider);
}

private static void registerSmoothRecipe(Consumer<FinishedRecipe> provider, List<ItemStack> roughStack, List<ItemStack> smoothStack) {
private static void registerSmoothRecipe(Consumer<FinishedRecipe> provider, List<ItemStack> roughStack, List<ItemStack> stoneStack) {
for (int i = 0; i < roughStack.size(); i++) {
ResourceLocation smoothId = BuiltInRegistries.ITEM.getKey(smoothStack.get(i).getItem());
VanillaRecipeHelper.addSmeltingRecipe(provider, "smelt_" + smoothId.getPath(), roughStack.get(i), smoothStack.get(i), 0.1f);
ResourceLocation stoneId = BuiltInRegistries.ITEM.getKey(stoneStack.get(i).getItem());
VanillaRecipeHelper.addSmeltingRecipe(provider, "smelt_" + stoneId.getPath(), roughStack.get(i), stoneStack.get(i), 0.1f);

EXTRUDER_RECIPES.recipeBuilder("extrude_" + smoothId.getPath())
EXTRUDER_RECIPES.recipeBuilder("extrude_" + stoneId.getPath())
.inputItems(roughStack.get(i))
.notConsumable(SHAPE_EXTRUDER_BLOCK.asStack())
.outputItems(smoothStack.get(i))
.outputItems(stoneStack.get(i))
.duration(24).EUt(8).save(provider);
}
}

private static void registerCobbleRecipe(Consumer<FinishedRecipe> provider, List<ItemStack> smoothStack, List<ItemStack> cobbleStack) {
for (int i = 0; i < smoothStack.size(); i++) {
private static void registerCobbleRecipe(Consumer<FinishedRecipe> provider, List<ItemStack> stoneStack, List<ItemStack> cobbleStack) {
for (int i = 0; i < stoneStack.size(); i++) {
ResourceLocation cobbleId = BuiltInRegistries.ITEM.getKey(cobbleStack.get(i).getItem());
FORGE_HAMMER_RECIPES.recipeBuilder("hammer_" + cobbleId.getPath())
.inputItems(smoothStack.get(i))
.inputItems(stoneStack.get(i))
.outputItems(cobbleStack.get(i))
.duration(12).EUt(4).save(provider);
}
Expand Down

0 comments on commit 2955d65

Please sign in to comment.