From a4736477287be2f9c5a60eda3638347351bd0fcb Mon Sep 17 00:00:00 2001 From: Ghasto <122754743+ghasto69@users.noreply.github.com> Date: Sat, 23 Sep 2023 14:18:29 +0400 Subject: [PATCH] Craft The Polishers --- .../88367cf7312056ae2fbd6a36564e7a0ade559139 | 17 ++++++----- .../89111a76195d73c279f4f0f24afedf84338f085b | 2 +- .../create_so/recipes/polishing_wheel.json | 29 +++++++++++++++++++ .../ghasto/create_so/ModRecipeGeneration.java | 14 +++++++++ 4 files changed, 53 insertions(+), 9 deletions(-) create mode 100644 src/generated/resources/data/create_so/recipes/polishing_wheel.json diff --git a/src/generated/resources/.cache/88367cf7312056ae2fbd6a36564e7a0ade559139 b/src/generated/resources/.cache/88367cf7312056ae2fbd6a36564e7a0ade559139 index a927906..e872778 100644 --- a/src/generated/resources/.cache/88367cf7312056ae2fbd6a36564e7a0ade559139 +++ b/src/generated/resources/.cache/88367cf7312056ae2fbd6a36564e7a0ade559139 @@ -1,13 +1,7 @@ -// 1.20.1 2023-09-23T10:38:27.484105 Create: Sandpaper Overhaul/Registrate Provider for create_so [Recipes, Advancements, Loot Tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)] +// 1.20.1 2023-09-23T14:15:36.865583 Create: Sandpaper Overhaul/Registrate Provider for create_so [Recipes, Advancements, Loot Tables, Tags (blocks), Tags (items), Tags (fluids), Tags (entity_types), Blockstates, Item models, Lang (en_us/en_ud)] +b1ff1bd075a464bccee166fa7964a1d9c06eb7b4 assets/create_so/lang/en_ud.json 09b7b42ebfd951db23d40928f784e8b9ffb2bcfa data/create_so/advancements/recipes/tools/iron_sandpaper.json 5fa8e37f2719558a26122cd719a8569f95f760b8 assets/create_so/models/item/unrefined_lapis_lazuli.json -13e511a3cf90f2b07695e3eebd3673af4b72cb5b data/create_so/recipes/obsidian_sandpaper.json -7cb55981a912dd1d2ef49ccd5171d6e2ef1172c8 data/create_so/recipes/iron_sandpaper.json -a76e99549b827415681f570b21cf1e81e8d79fb3 data/create_so/recipes/crushing/crushed_diamonds.json -f064f582da2fe48dc732ea7edabd0c72a1579dcc data/minecraft/tags/blocks/mineable/pickaxe.json -4b0e51a1c10685f7d432467339afc9c2e24793b0 assets/create_so/blockstates/polishing_wheel_controller.json -777f0bef0990a81f8662e071fb40478ef9ac098f assets/create_so/models/item/crushed_iron.json -b1ff1bd075a464bccee166fa7964a1d9c06eb7b4 assets/create_so/lang/en_ud.json 6183056b14f9697590050c3fdc9838f6fe53edab data/create_so/advancements/recipes/tools/obsidian_sandpaper.json f71c982c977c60dff1cb08121771916c65ecafc4 data/create_so/recipes/diamond_sandpaper.json ee5e0a0a7fd63467d436daf6e4c3954312c50946 assets/create_so/lang/en_us.json @@ -16,15 +10,22 @@ ac5fbcd38141e10917c105dc7e162a8397209b13 data/create_so/recipes/polishing/lapis_ 004a6c2036ca80aa4361135b506081b19b0d1b99 data/create/tags/items/sandpaper.json 6e8fdee69adadc74221e1c65308fd32467b7a471 data/create_so/advancements/recipes/tools/diamond_sandpaper.json 21273c5636cbeeab3d9f5b220855ef9544a0f19f data/create_so/recipes/sequenced_assembly/rose_quartz.json +13e511a3cf90f2b07695e3eebd3673af4b72cb5b data/create_so/recipes/obsidian_sandpaper.json +7cb55981a912dd1d2ef49ccd5171d6e2ef1172c8 data/create_so/recipes/iron_sandpaper.json a06c042668186d44c5cf1143c2d95133eaeeefd5 data/create_so/recipes/polishing/polished_rose_quartz.json 8955d747c1f8848943d1cad78cb0f78925f6c09a assets/create_so/models/item/iron_sandpaper.json 3ced3367297d657cb84b8685f4cbe16054c7ae74 assets/create_so/models/item/unfinished_rose_quartz.json 421d86a8d1ce39a2eeb2e4147c1938eef46f6c3b assets/create_so/models/item/unfinished_unrefined_lapis_lazuli.json 8287f27329d93f852eb8c4616b0290c56f4c561b assets/create_so/models/item/polishing_wheel.json 688bc48c7fd528dd91ee16c4d0fba02dd050bdb3 data/create_so/recipes/sequenced_assembly/unrefined_lapis_lazuli.json +a76e99549b827415681f570b21cf1e81e8d79fb3 data/create_so/recipes/crushing/crushed_diamonds.json 2bf0aad3c5e9fc85945c1a6c2aae8312ca2848dd data/create_so/recipes/crushing/crushed_iron.json f12d6a3da1f0fa9225d8393d979f87d7135f76ef assets/create_so/models/item/obsidian_sandpaper.json +4003c8311bcb905b4ff74f4b725f4d732a300544 data/create_so/recipes/polishing_wheel.json +f064f582da2fe48dc732ea7edabd0c72a1579dcc data/minecraft/tags/blocks/mineable/pickaxe.json +4b0e51a1c10685f7d432467339afc9c2e24793b0 assets/create_so/blockstates/polishing_wheel_controller.json eed39a4ced66f7ae644c068972d5fb1b0d076d41 data/create_so/recipes/sequenced_assembly/ink_sac.json 22866fa23344eda3baad5a317080e7112fb88ba9 assets/create_so/blockstates/polishing_wheel.json +777f0bef0990a81f8662e071fb40478ef9ac098f assets/create_so/models/item/crushed_iron.json 1de3f1f90c293f68de1ffd59e4489073ccba053e assets/create_so/models/item/crushed_diamonds.json b69fee687ce4c8ef34426bee57f9ff5b6a3dd6e3 assets/create_so/models/item/diamond_sandpaper.json diff --git a/src/generated/resources/.cache/89111a76195d73c279f4f0f24afedf84338f085b b/src/generated/resources/.cache/89111a76195d73c279f4f0f24afedf84338f085b index 884a903..43d368d 100644 --- a/src/generated/resources/.cache/89111a76195d73c279f4f0f24afedf84338f085b +++ b/src/generated/resources/.cache/89111a76195d73c279f4f0f24afedf84338f085b @@ -1,2 +1,2 @@ -// 1.20.1 2023-09-23T10:38:27.483528 Create: Sandpaper Overhaul/Create Sandpaper Overhaul's Damage Type Data +// 1.20.1 2023-09-23T14:15:36.864709 Create: Sandpaper Overhaul/Create Sandpaper Overhaul's Damage Type Data 132c7d6042e5e957f5eebe5fdbbb2dcd39c07ff7 data/create_so/damage_type/sandpaper.json diff --git a/src/generated/resources/data/create_so/recipes/polishing_wheel.json b/src/generated/resources/data/create_so/recipes/polishing_wheel.json new file mode 100644 index 0000000..768fe3a --- /dev/null +++ b/src/generated/resources/data/create_so/recipes/polishing_wheel.json @@ -0,0 +1,29 @@ +{ + "type": "create:mechanical_crafting", + "acceptMirrored": false, + "key": { + "A": { + "item": "create:sturdy_sheet" + }, + "D": { + "item": "create:brass_ingot" + }, + "P": { + "item": "minecraft:obsidian" + }, + "S": { + "item": "create:brass_block" + } + }, + "pattern": [ + " AAA ", + "ADPDA", + "APSPA", + "ADPDA", + " AAA " + ], + "result": { + "count": 2, + "item": "create_so:polishing_wheel" + } +} \ No newline at end of file diff --git a/src/main/java/com/ghasto/create_so/ModRecipeGeneration.java b/src/main/java/com/ghasto/create_so/ModRecipeGeneration.java index fe82994..e63ce07 100644 --- a/src/main/java/com/ghasto/create_so/ModRecipeGeneration.java +++ b/src/main/java/com/ghasto/create_so/ModRecipeGeneration.java @@ -1,6 +1,7 @@ package com.ghasto.create_so; import com.ghasto.create_so.content.polishing_wheel.PolishingRecipe; +import com.simibubi.create.AllBlocks; import com.simibubi.create.AllItems; import com.simibubi.create.AllRecipeTypes; import com.simibubi.create.content.fluids.transfer.FillingRecipe; @@ -9,6 +10,7 @@ import com.simibubi.create.content.processing.recipe.ProcessingRecipeBuilder; import com.simibubi.create.content.processing.recipe.ProcessingRecipeSerializer; import com.simibubi.create.content.processing.sequenced.SequencedAssemblyRecipeBuilder; +import com.simibubi.create.foundation.data.recipe.MechanicalCraftingRecipeBuilder; import com.tterrag.registrate.providers.RegistrateRecipeProvider; import net.fabricmc.fabric.api.transfer.v1.fluid.FluidConstants; @@ -67,6 +69,18 @@ public static void generateAll(RegistrateRecipeProvider p) { .addStep(FillingRecipe::new, rb -> rb.require(Fluids.WATER, FluidConstants.fromBucketFraction(1, 10))) .addStep(DeployerApplicationRecipe::new, rb -> rb.require(ItemTags.COALS).toolNotConsumed()) .build(p); + new MechanicalCraftingRecipeBuilder(ModBlocks.POLISHING_WHEEL.get(), 2) + .key('P', Items.OBSIDIAN) + .key('S', AllBlocks.BRASS_BLOCK) + .key('A', AllItems.STURDY_SHEET) + .key('D', AllItems.BRASS_INGOT) + .patternLine(" AAA ") + .patternLine("ADPDA") + .patternLine("APSPA") + .patternLine("ADPDA") + .patternLine(" AAA ") + .disallowMirrored() + .build(p); } public static ProcessingRecipeBuilder getCrushingBuilder(String id) { AllRecipeTypes crushing = AllRecipeTypes.CRUSHING;