mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-11-10 12:33:57 +01:00
Add config for automated brewing
- Add allowBrewingInMixer config - Add 0.5.0e to the bug report template - Allow Flywheel 0.6.6
This commit is contained in:
parent
d6ca0343b8
commit
09124ea92b
1
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
1
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
@ -49,6 +49,7 @@ body:
|
||||
label: Mod Version
|
||||
description: The version of the mod you were using when the bug occured
|
||||
options:
|
||||
- "0.5.0e"
|
||||
- "0.5.0d"
|
||||
- "0.5.0c"
|
||||
- "0.5.0b"
|
||||
|
@ -186,6 +186,7 @@ public class CreateJEI implements IModPlugin {
|
||||
.build("automatic_shapeless", MixingCategory::autoShapeless),
|
||||
|
||||
brewing = builder(BasinRecipe.class)
|
||||
.enableWhen(c -> c.allowBrewingInMixer)
|
||||
.addRecipes(() -> PotionMixingRecipes.ALL)
|
||||
.catalyst(AllBlocks.MECHANICAL_MIXER::get)
|
||||
.catalyst(AllBlocks.BASIN::get)
|
||||
|
@ -218,6 +218,10 @@ public class MechanicalMixerTileEntity extends BasinOperatingTileEntity {
|
||||
protected List<Recipe<?>> getMatchingRecipes() {
|
||||
List<Recipe<?>> matchingRecipes = super.getMatchingRecipes();
|
||||
|
||||
if (!AllConfigs.SERVER.recipes.allowBrewingInMixer.get()) {
|
||||
return matchingRecipes;
|
||||
}
|
||||
|
||||
Optional<BasinTileEntity> basin = getBasin();
|
||||
if (!basin.isPresent())
|
||||
return matchingRecipes;
|
||||
|
@ -4,6 +4,7 @@ public class CRecipes extends ConfigBase {
|
||||
|
||||
public final ConfigBool bulkPressing = b(false, "bulkPressing", Comments.bulkPressing);
|
||||
public final ConfigBool bulkCutting = b(false, "bulkCutting", Comments.bulkCutting);
|
||||
public final ConfigBool allowBrewingInMixer = b(true, "allowBrewingInMixer", Comments.allowBrewingInMixer);
|
||||
public final ConfigBool allowShapelessInMixer = b(true, "allowShapelessInMixer", Comments.allowShapelessInMixer);
|
||||
public final ConfigBool allowShapedSquareInPress = b(true, "allowShapedSquareInPress", Comments.allowShapedSquareInPress);
|
||||
public final ConfigBool allowRegularCraftingInCrafter =
|
||||
@ -28,8 +29,9 @@ public class CRecipes extends ConfigBase {
|
||||
private static class Comments {
|
||||
static String bulkPressing = "Allow the Mechanical Press to process entire stacks at a time.";
|
||||
static String bulkCutting = "Allow the Mechanical Saw to process entire stacks at a time.";
|
||||
static String allowBrewingInMixer = "Allow supported potions to be brewed by a Mechanical Mixer + Basin.";
|
||||
static String allowShapelessInMixer =
|
||||
"Allow allows any shapeless crafting recipes to be processed by a Mechanical Mixer + Basin.";
|
||||
"Allow any shapeless crafting recipes to be processed by a Mechanical Mixer + Basin.";
|
||||
static String allowShapedSquareInPress =
|
||||
"Allow any single-ingredient 2x2 or 3x3 crafting recipes to be processed by a Mechanical Press + Basin.";
|
||||
static String allowRegularCraftingInCrafter =
|
||||
|
@ -33,6 +33,6 @@ Technology that empowers the player.'''
|
||||
[[dependencies.create]]
|
||||
modId="flywheel"
|
||||
mandatory=true
|
||||
versionRange="[0.6.5,0.6.6)"
|
||||
versionRange="[0.6.5,0.6.7)"
|
||||
ordering="AFTER"
|
||||
side="CLIENT"
|
||||
|
Loading…
Reference in New Issue
Block a user