Skip to content

Commit

Permalink
Fix Upgrade Core recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Jun 19, 2024
1 parent 6b1e017 commit aabec68
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// 1.20.4 2024-06-13T23:35:46.9712488 Recipes
// 1.20.4 2024-06-19T19:44:29.9781709 Recipes
336bd70bf0493a85ea26c5c55c7a0f3c6471dbf0 data/forcecraft/advancements/recipes/building_blocks/force_black_torch.json
fbc6710f4224d531b5bba07f413f06838cb299ee data/forcecraft/advancements/recipes/building_blocks/force_blue_torch.json
8e907873e2ff90f9e39f2306846e7dabc767618e data/forcecraft/advancements/recipes/building_blocks/force_brick.json
Expand Down Expand Up @@ -299,7 +299,7 @@ a60f3fa6e61866e9501eb5fb6a13830072725ac4 data/forcecraft/advancements/recipes/tr
ceeab0b24d0872a031d4c71f9109810bb368ab33 data/forcecraft/advancements/recipes/transmutation/transmutation/stick_from_wooden_sword.json
d92a82de62880e255504c142c62a2a7f045a7a68 data/forcecraft/advancements/recipes/transmutation/transmutation/string_from_bow.json
7aa66975ecee88e5d2632fcc9028461b22c708fd data/forcecraft/advancements/recipes/transmutation/transmutation/tripwire_hook_from_crossbow.json
85aeb930e95bca65f08900d66d736f52bc440ac0 data/forcecraft/advancements/recipes/transmutation/transmutation/upgrade_core.json
0e7fb4394f47fce059d50f92e3658629ced112ff data/forcecraft/advancements/recipes/transmutation/transmutation/upgrade_core.json
95624ba0c7ba6b6b77086bbcecc3e223a21aa70d data/forcecraft/advancements/recipes/transmutation/transmutation/upgrade_tome.json
19bad840f1cec8b476ca6d990a1e6d6c2c7abc4f data/forcecraft/recipes/baconator.json
8526c208fcd8a97fd02f9e9f057b6ea98110e393 data/forcecraft/recipes/black_force_furnace_from_dye.json
Expand Down Expand Up @@ -628,7 +628,7 @@ a361232e985df1002d4d8fade4861f76b9c17ef0 data/forcecraft/recipes/transmutation/s
94f6aea5071adf60ae8dadfec8900db06f2afbc1 data/forcecraft/recipes/transmutation/stick_from_wooden_sword.json
b35719087f4f9f437680290cad42ff950fb67cab data/forcecraft/recipes/transmutation/string_from_bow.json
4467733170edd8d4c1f4c83bc251f6cc8c313e8f data/forcecraft/recipes/transmutation/tripwire_hook_from_crossbow.json
c200c5d635eaf05683a619291e6c9f7f1c946aae data/forcecraft/recipes/transmutation/upgrade_core.json
b3ffa8c5244a11de6304840692fde8f812a6c813 data/forcecraft/recipes/transmutation/upgrade_core.json
b7af9467900cd5fb9676acce1c3ac6abcaad0f0d data/forcecraft/recipes/transmutation/upgrade_tome.json
e4a67eda1975b707da50ea8df57e758e5e123c38 data/forcecraft/recipes/treasure_core.json
a5c99703bbf4bb6794ef97fa8d114988ee5c729c data/forcecraft/recipes/white_force_furnace_from_dye.json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"items": [
{
"items": [
"forcecraft:experience_core"
"forcecraft:experience_tome"
]
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
},
{
"type": "neoforge:nbt",
"item": "forcecraft:experience_core",
"item": "forcecraft:experience_tome",
"tag": "{Experience:100}"
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1764,13 +1764,13 @@ private void addTransmutationRecipes(RecipeOutput output) {
.unlockedBy("has_book", has(Items.BOOK))
.save(output, new ResourceLocation(Reference.MOD_ID, "transmutation/upgrade_tome"));

ItemStack upgradeStack = new ItemStack(ForceRegistry.EXPERIENCE_CORE.get());
CompoundTag tag = upgradeStack.getOrCreateTag();
ItemStack experienceTomeStack = new ItemStack(ForceRegistry.EXPERIENCE_TOME.get());
CompoundTag tag = experienceTomeStack.getOrCreateTag();
tag.putInt("Experience", 100);
upgradeStack.setTag(tag);
experienceTomeStack.setTag(tag);
TransmutationRecipeBuilder.transmutation(ForceRegistry.UPGRADE_CORE.get())
.requires(NBTIngredient.of(false, upgradeStack))
.unlockedBy("has_experience_tome", has(ForceRegistry.EXPERIENCE_CORE.get()))
.requires(NBTIngredient.of(false, experienceTomeStack))
.unlockedBy("has_experience_tome", has(ForceRegistry.EXPERIENCE_TOME.get()))
.save(output, new ResourceLocation(Reference.MOD_ID, "transmutation/upgrade_core"));

}
Expand Down

0 comments on commit aabec68

Please sign in to comment.