Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a delay to potion brewing in cauldrons
Now takes a bit longer than the brewing stand, to make up for the cauldron being cheaper. Works using "unfermented potions", which slowly stir into a regular potion under heat.
- Loading branch information
1 parent
7af942b
commit 98ba9aa
Showing
21 changed files
with
331 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
"prop": "cauldron_brewing", | ||
"type": "inspirations:config" | ||
} | ||
] | ||
], | ||
"instant": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,6 @@ | |
"prop": "cauldron_brewing", | ||
"type": "inspirations:config" | ||
} | ||
] | ||
], | ||
"instant": false | ||
} |
14 changes: 14 additions & 0 deletions
14
src/generated/resources/data/inspirations/recipes/cauldron/potion/potion_ferment.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"type": "inspirations:cauldron_potion_ferment", | ||
"conditions": [ | ||
{ | ||
"prop": "recipes_module", | ||
"type": "inspirations:config" | ||
}, | ||
{ | ||
"prop": "cauldron_brewing", | ||
"type": "inspirations:config" | ||
} | ||
], | ||
"time": 600 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...main/java/knightminer/inspirations/library/recipe/cauldron/recipe/ICauldronTransform.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package knightminer.inspirations.library.recipe.cauldron.recipe; | ||
|
||
import knightminer.inspirations.library.recipe.RecipeTypes; | ||
import knightminer.inspirations.library.recipe.cauldron.contents.ICauldronContents; | ||
import knightminer.inspirations.library.recipe.cauldron.inventory.ICauldronState; | ||
import net.minecraft.item.crafting.IRecipeType; | ||
import net.minecraft.util.SoundEvent; | ||
import slimeknights.mantle.recipe.ICustomOutputRecipe; | ||
|
||
/** | ||
* Recipe that transforms contents in a cauldron given time and temperature | ||
*/ | ||
public interface ICauldronTransform extends ICustomOutputRecipe<ICauldronState> { | ||
/** | ||
* Gets the output contents for this recipe based on the input contents | ||
* @param inv Cauldron state | ||
* @return New contents | ||
*/ | ||
ICauldronContents getContentOutput(ICauldronState inv); | ||
|
||
/** | ||
* Gets the sound to play upon completion of the recipe | ||
* @return Recipe sound | ||
*/ | ||
SoundEvent getSound(); | ||
|
||
/** | ||
* Gets the recipe duration in ticks (1/20 of a second) | ||
* @return Recipe duration | ||
*/ | ||
int getTime(); | ||
|
||
@Override | ||
default IRecipeType<?> getType() { | ||
return RecipeTypes.CAULDRON_TRANSFORM; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.