diff --git a/src/generated/resources/.cache/cache b/src/generated/resources/.cache/cache index bc1f5d466..57579baa9 100644 --- a/src/generated/resources/.cache/cache +++ b/src/generated/resources/.cache/cache @@ -5359,7 +5359,7 @@ f6e2fb5725f3730d01fae4a2b1a04d11095eab5f data/create/recipes/scorchia_pillar_fro 66e8559dc15ce13042bd007247e2851022362b9e data/create/recipes/scorchia_pillar_from_stone_types_scorchia_stonecutting.json 2e0ecbd3619f080d0fc6fe48307c5a5bcc2e91b4 data/create/recipes/scoria_pillar_from_scoria_stonecutting.json d6e16599de7424513e1457b07acb6370815d2bd7 data/create/recipes/scoria_pillar_from_stone_types_scoria_stonecutting.json -b49a0da57a179edc087eee224221ded22fd1be01 data/create/recipes/sequenced_assembly/precision_mechanism.json +b3fad45a09a05b285de31283a720b32e6fc63dc6 data/create/recipes/sequenced_assembly/precision_mechanism.json de17d82738a5e0242eb3109fd2a75337160fc843 data/create/recipes/sequenced_assembly/sturdy_sheet.json 7610e0be633b1ade7ae39db3dbbfe1bd14aa333a data/create/recipes/sequenced_assembly/track.json 5e7648d55555c263539a2696b8d1f8d352a71dc9 data/create/recipes/small_andesite_brick_slab.json diff --git a/src/generated/resources/data/create/recipes/sequenced_assembly/precision_mechanism.json b/src/generated/resources/data/create/recipes/sequenced_assembly/precision_mechanism.json index c130de722..581708a72 100644 --- a/src/generated/resources/data/create/recipes/sequenced_assembly/precision_mechanism.json +++ b/src/generated/resources/data/create/recipes/sequenced_assembly/precision_mechanism.json @@ -73,6 +73,10 @@ "item": "create:cogwheel", "chance": 5.0 }, + { + "item": "minecraft:gold_nugget", + "chance": 3.0 + }, { "item": "create:shaft", "chance": 2.0 @@ -81,10 +85,6 @@ "item": "create:crushed_gold_ore", "chance": 2.0 }, - { - "item": "minecraft:gold_nugget", - "chance": 2.0 - }, { "item": "minecraft:iron_ingot" }, diff --git a/src/main/java/com/simibubi/create/compat/jei/category/SequencedAssemblyCategory.java b/src/main/java/com/simibubi/create/compat/jei/category/SequencedAssemblyCategory.java index 43a22f27e..1dbcd15ad 100644 --- a/src/main/java/com/simibubi/create/compat/jei/category/SequencedAssemblyCategory.java +++ b/src/main/java/com/simibubi/create/compat/jei/category/SequencedAssemblyCategory.java @@ -57,8 +57,7 @@ public class SequencedAssemblyCategory extends CreateRecipeCategory= minX && mouseX < maxX && mouseY >= minY && mouseY < maxY) { float chance = recipe.getOutputChance(); tooltip.add(junk); - tooltip.add(Lang.translateDirect("recipe.processing.chance", chance < 0.01 ? ">99" : 100 - (int) (chance * 100)) - .withStyle(ChatFormatting.GOLD)); + tooltip.add(chanceComponent(1 - chance)); return tooltip; } @@ -198,4 +196,10 @@ public class SequencedAssemblyCategory extends CreateRecipeCategory 0.99 ? ">99" : String.valueOf(Math.round(chance * 100)); + return Lang.translateDirect("recipe.processing.chance", number) + .withStyle(ChatFormatting.GOLD); + } } diff --git a/src/main/java/com/simibubi/create/foundation/data/recipe/SequencedAssemblyRecipeGen.java b/src/main/java/com/simibubi/create/foundation/data/recipe/SequencedAssemblyRecipeGen.java index bda6fda47..8a26855b5 100644 --- a/src/main/java/com/simibubi/create/foundation/data/recipe/SequencedAssemblyRecipeGen.java +++ b/src/main/java/com/simibubi/create/foundation/data/recipe/SequencedAssemblyRecipeGen.java @@ -41,9 +41,9 @@ public class SequencedAssemblyRecipeGen extends CreateRecipeProvider { .addOutput(AllItems.GOLDEN_SHEET.get(), 8) .addOutput(AllItems.ANDESITE_ALLOY.get(), 8) .addOutput(AllBlocks.COGWHEEL.get(), 5) + .addOutput(Items.GOLD_NUGGET, 3) .addOutput(AllBlocks.SHAFT.get(), 2) .addOutput(AllItems.CRUSHED_GOLD.get(), 2) - .addOutput(Items.GOLD_NUGGET, 2) .addOutput(Items.IRON_INGOT, 1) .addOutput(Items.CLOCK, 1) .loops(5)