-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✨ gold smithing template and new gold ingredient smithing recipes
- Loading branch information
1 parent
9e07ea2
commit 5b8eb76
Showing
11 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
...java/org/mineplugin/locusazzurro/icaruswings/common/item/GoldUpgradeSmithingTemplate.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,30 @@ | ||
package org.mineplugin.locusazzurro.icaruswings.common.item; | ||
|
||
import net.minecraft.ChatFormatting; | ||
import net.minecraft.Util; | ||
import net.minecraft.network.chat.Component; | ||
import net.minecraft.resources.ResourceLocation; | ||
import net.minecraft.world.item.SmithingTemplateItem; | ||
import org.mineplugin.locusazzurro.icaruswings.common.data.ModData; | ||
|
||
import java.util.List; | ||
|
||
public class GoldUpgradeSmithingTemplate extends SmithingTemplateItem { | ||
|
||
private static final ChatFormatting TITLE_FORMAT = ChatFormatting.GRAY; | ||
private static final ChatFormatting DESCRIPTION_FORMAT = ChatFormatting.BLUE; | ||
private static final Component GOLD_UPGRADE_APPLIES_TO = Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(ModData.MOD_ID, "smithing_template.gold_upgrade.applies_to"))).withStyle(DESCRIPTION_FORMAT); | ||
private static final Component GOLD_UPGRADE_INGREDIENT = Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(ModData.MOD_ID, "smithing_template.gold_upgrade.ingredients"))).withStyle(DESCRIPTION_FORMAT); | ||
private static final Component GOLD_UPGRADE = Component.translatable(Util.makeDescriptionId("upgrade", new ResourceLocation(ModData.MOD_ID, "gold_upgrade"))).withStyle(TITLE_FORMAT); | ||
private static final Component GOLD_UPGRADE_BASE_SLOT_DESCRIPTION = Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(ModData.MOD_ID, "smithing_template.gold_upgrade.base_slot_description"))); | ||
private static final Component GOLD_UPGRADE_ADDITIONS_SLOT_DESCRIPTION = Component.translatable(Util.makeDescriptionId("item", new ResourceLocation(ModData.MOD_ID, "smithing_template.gold_upgrade.additions_slot_description"))); | ||
private static final ResourceLocation EMPTY_SLOT_INGOT = new ResourceLocation("item/empty_slot_ingot"); | ||
private static final ResourceLocation EMPTY_SLOT_STRING = new ResourceLocation(ModData.MOD_ID, "item/empty_slot_string"); | ||
private static final ResourceLocation EMPTY_SLOT_FEATHER = new ResourceLocation(ModData.MOD_ID, "item/empty_slot_feather"); | ||
|
||
public GoldUpgradeSmithingTemplate() { | ||
super(GOLD_UPGRADE_APPLIES_TO, GOLD_UPGRADE_INGREDIENT, GOLD_UPGRADE, | ||
GOLD_UPGRADE_BASE_SLOT_DESCRIPTION, GOLD_UPGRADE_ADDITIONS_SLOT_DESCRIPTION, | ||
List.of(EMPTY_SLOT_STRING, EMPTY_SLOT_FEATHER), List.of(EMPTY_SLOT_INGOT)); | ||
} | ||
} |
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
6 changes: 6 additions & 0 deletions
6
...resources/assets/locusazzurro_icaruswings/models/item/gold_upgrade_smithing_template.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,6 @@ | ||
{ | ||
"parent": "item/generated", | ||
"textures": { | ||
"layer0": "locusazzurro_icaruswings:item/gold_upgrade_smithing_template" | ||
} | ||
} |
Binary file added
BIN
+2.33 KB
.../resources/assets/locusazzurro_icaruswings/textures/item/empty_slot_feather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.33 KB
...n/resources/assets/locusazzurro_icaruswings/textures/item/empty_slot_string.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.59 KB
...ssets/locusazzurro_icaruswings/textures/item/gold_upgrade_smithing_template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions
20
src/main/resources/data/locusazzurro_icaruswings/recipes/gold_upgrade_smithing_template.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,20 @@ | ||
{ | ||
"type": "minecraft:crafting_shaped", | ||
"pattern": [ | ||
"NNN", | ||
"NGN", | ||
"NNN" | ||
], | ||
"key": { | ||
"G": { | ||
"item": "locusazzurro_icaruswings:glistering_refined_beeswax_bar" | ||
}, | ||
"N": { | ||
"item": "minecraft:netherrack" | ||
} | ||
}, | ||
"result": { | ||
"item": "locusazzurro_icaruswings:gold_upgrade_smithing_template", | ||
"count": 1 | ||
} | ||
} |
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