generated from CottonMC/FabricStarter
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
as much more owl-drawing as I can do before I pass out
- Loading branch information
Showing
29 changed files
with
198 additions
and
23 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,5 @@ Spore bundle and sporebrush ash items - edited from assets in ["RPG Items - Retr | |
Springstool, glowcap, and paddle rhizome blocks - Cart3r | ||
Mycoturge's journal, spore pouch, side sword, springstool shield, and arrow of grief items, relaxation effect icon - danidoom | ||
Grief HUD animation - [email protected] | ||
Springstool bounce sound effect - edited from sounds by [pbimal](https://freesound.org/people/pbimal/sounds/534111/) and [odeean](https://freesound.org/people/odeean/sounds/139476/) on FreeSound | ||
Springstool bounce sound effect - edited from sounds by [pbimal](https://freesound.org/people/pbimal/sounds/534111/) and [odeean](https://freesound.org/people/odeean/sounds/139476/) on FreeSound | ||
Glowcap buzz sound effect - edited from sounds by [EverydaySounds](https://freesound.org/people/EverydaySounds/sounds/125064/) and [deleted_user_14597403](https://freesound.org/people/deleted_user_14597403/sounds/678717/) |
Binary file not shown.
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
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
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
61 changes: 61 additions & 0 deletions
61
src/main/java/gay/lemmaeof/mycoturgy/patchouli/PotCookingPage.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,61 @@ | ||
package gay.lemmaeof.mycoturgy.patchouli; | ||
|
||
import gay.lemmaeof.mycoturgy.Mycoturgy; | ||
import gay.lemmaeof.mycoturgy.init.MycoturgyRecipes; | ||
import gay.lemmaeof.mycoturgy.recipe.PotCookingRecipe; | ||
import it.unimi.dsi.fastutil.ints.IntIntPair; | ||
import net.minecraft.client.gui.GuiGraphics; | ||
import net.minecraft.item.ItemStack; | ||
import net.minecraft.registry.DynamicRegistryManager; | ||
import net.minecraft.text.Text; | ||
import net.minecraft.util.Identifier; | ||
import net.minecraft.world.World; | ||
import vazkii.patchouli.client.book.page.abstr.PageDoubleRecipeRegistry; | ||
|
||
public class PotCookingPage extends PageDoubleRecipeRegistry<PotCookingRecipe> { | ||
private static final Identifier POT_COOKING_TEXTURE = new Identifier(Mycoturgy.MODID, "textures/gui/pot_cooking.png"); | ||
private static final IntIntPair[] POSITIONS = new IntIntPair[] { | ||
IntIntPair.of(22, 4), | ||
IntIntPair.of(58, 4), | ||
IntIntPair.of(76, 32), | ||
IntIntPair.of(58, 60), | ||
IntIntPair.of(22, 60), | ||
IntIntPair.of(4, 32) | ||
}; | ||
|
||
public PotCookingPage() { | ||
super(MycoturgyRecipes.POT_COOKING_RECIPE); | ||
} | ||
|
||
@Override | ||
protected void drawRecipe(GuiGraphics graphics, PotCookingRecipe recipe, int recipeX, int recipeY, int mouseX, int mouseY, boolean second) { | ||
graphics.drawTexture(POT_COOKING_TEXTURE, recipeX, recipeY, 0F, 0F, 96, 80, 128, 128); | ||
this.parent.drawCenteredStringNoShadow(graphics, this.getTitle(second).asOrderedText(), 58, recipeY - 10, this.book.headerColor); | ||
for (int i = 0; i < recipe.getIngredients().size(); i++) { | ||
this.parent.renderIngredient(graphics, recipeX + POSITIONS[i].firstInt(), recipeY + POSITIONS[i].secondInt(), mouseX, mouseY, recipe.getIngredients().get(i)); | ||
} | ||
this.parent.renderItemStack(graphics, recipeX + 40, recipeY + 32, mouseX, mouseY, recipe.getResult(DynamicRegistryManager.EMPTY)); | ||
if (recipe.getHyphaCost() > 0) { | ||
this.parent.drawCenteredStringNoShadow(graphics, "" + recipe.getHyphaCost(), recipeX + 31, recipeY + 40, this.book.textColor); | ||
if (this.parent.isMouseInRelativeRange(mouseX, mouseY, recipeX + 23, recipeY + 28, 16, 20)) { | ||
this.parent.setTooltip(Text.translatable("text.mycoturgy.hypha_cost")); | ||
} | ||
} | ||
if (recipe.getLamellaCost() > 0) { | ||
this.parent.drawCenteredStringNoShadow(graphics, "" + recipe.getLamellaCost(), recipeX + 65, recipeY + 40, this.book.textColor); | ||
if (this.parent.isMouseInRelativeRange(mouseX, mouseY, recipeX + 54, recipeY + 28, 16, 20)) { | ||
this.parent.setTooltip(Text.translatable("text.mycoturgy.lamella_cost")); | ||
} | ||
} | ||
} | ||
|
||
@Override | ||
protected ItemStack getRecipeOutput(World level, PotCookingRecipe recipe) { | ||
return recipe.getResult(level.getRegistryManager()); | ||
} | ||
|
||
@Override | ||
protected int getRecipeHeight() { | ||
return 100; | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
.../mycoturgy/patchouli_books/mycoturge_journal/en_us/entries/journal/note_laced_dagger.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,17 @@ | ||
{ | ||
"name": "Note: Laced Dagger", | ||
"icon": "mycoturgy:laced_dagger", | ||
"category": "mycoturgy:journal", | ||
"advancement": "mycoturgy:research/meditate_laced_dagger", | ||
"pages": [ | ||
{ | ||
"type": "text", | ||
"text": "My experimentations with $(item)spores$() have found that contacting them can be quite a surprise to those not expecting it. This may be beneficial to put to use as a $(key)sidearm$() for self-defense.$(br)$(br)$(5)(Temporary recipe, bear with me)$()" | ||
}, | ||
{ | ||
"type": "mycoturgy:pot_cooking", | ||
"recipe": "mycoturgy:laced_dagger", | ||
"text": "I should be sure to $(key)raise it in short bursts$() - too long and enemies will notice before I have time to $(key)counter their attacks$()." | ||
} | ||
] | ||
} |
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
Binary file not shown.
File renamed without changes
Binary file not shown.
Binary file removed
BIN
-347 Bytes
src/main/resources/assets/mycoturgy/textures/gui/journal_blank_page.png
Binary file not shown.
Binary file removed
BIN
-1.9 KB
src/main/resources/assets/mycoturgy/textures/gui/journal_crafting_page.png
Binary file not shown.
Binary file removed
BIN
-2.06 KB
src/main/resources/assets/mycoturgy/textures/gui/journal_index_page.png
Binary file not shown.
Binary file removed
BIN
-2.16 KB
src/main/resources/assets/mycoturgy/textures/gui/journal_smelting_page.png
Binary file not shown.
Binary file removed
BIN
-598 Bytes
src/main/resources/assets/mycoturgy/textures/gui/journal_title_page.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.