Skip to content

Commit d7e6f96

Browse files
committed
Fixed wood -> stone recipes not resetting level
1 parent 6a34a2c commit d7e6f96

File tree

6 files changed

+7
-0
lines changed

6 files changed

+7
-0
lines changed

src/client/java/net/jineric/jineric_mod/data/generation/providers/JinericRecipeProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.google.common.collect.ImmutableMap;
44
import jingy.jineric.access.ShapedRecipeJsonBuilderAccess;
55
import jingy.jineric.block.JinericBlocks;
6+
import jingy.jineric.component.JmDataComponentTypes;
67
import jingy.jineric.data.family.EquipmentFamilies;
78
import jingy.jineric.data.family.EquipmentFamily;
89
import jingy.jineric.data.family.JinericBlockFamilies;
@@ -513,6 +514,7 @@ public void offerSmithingUpgradeRecipe(Item template, Item input, TagKey<Item> m
513514
if (template.equals(JinericItems.STONE_UPGRADE_SMITHING_TEMPLATE)) {
514515
builder.jineric$componentChanges(ComponentChanges.builder()
515516
.add(DataComponentTypes.ITEM_NAME, Text.translatable(Registries.ITEM.getId(result).toTranslationKey("item")))
517+
.add(JmDataComponentTypes.LEVEL, 0)
516518
.remove(DataComponentTypes.CUSTOM_MODEL_DATA)
517519
.build()
518520
);

src/main/generated/data/minecraft/recipe/stone_axe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"result": {
66
"components": {
77
"!minecraft:custom_model_data": {},
8+
"jineric:level": 0,
89
"minecraft:item_name": {
910
"translate": "item.minecraft.stone_axe"
1011
}

src/main/generated/data/minecraft/recipe/stone_hoe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"result": {
66
"components": {
77
"!minecraft:custom_model_data": {},
8+
"jineric:level": 0,
89
"minecraft:item_name": {
910
"translate": "item.minecraft.stone_hoe"
1011
}

src/main/generated/data/minecraft/recipe/stone_pickaxe.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"result": {
66
"components": {
77
"!minecraft:custom_model_data": {},
8+
"jineric:level": 0,
89
"minecraft:item_name": {
910
"translate": "item.minecraft.stone_pickaxe"
1011
}

src/main/generated/data/minecraft/recipe/stone_shovel.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"result": {
66
"components": {
77
"!minecraft:custom_model_data": {},
8+
"jineric:level": 0,
89
"minecraft:item_name": {
910
"translate": "item.minecraft.stone_shovel"
1011
}

src/main/generated/data/minecraft/recipe/stone_sword.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"result": {
66
"components": {
77
"!minecraft:custom_model_data": {},
8+
"jineric:level": 0,
89
"minecraft:item_name": {
910
"translate": "item.minecraft.stone_sword"
1011
}

0 commit comments

Comments
 (0)