Skip to content

Commit 211b1b8

Browse files
[fix] Fix Recipe Serializers have wrong namespace
[update] Update MODPACK-README.md for `sound` field explanation
1 parent 84da984 commit 211b1b8

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

MODPACK-README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
## Recipe
99
### Printing
10-
`Printing` of Printer supports custom printing recipe. It is the same format as the recipe of Create, with type `create_dragons_plus:grinding`.
10+
`Printing` of Printer supports custom printing recipe. It has similar format as the recipe of Create, with type `create_dragons_plus:grinding`. Printing recipe requires extra `sound` field as Printing-Finish-Sound, for example `"sound": "item.book.page_turn"`.
1111
Template item is in 2nd position of input, printing material item is in 1st position of input.
1212
### Grinding
1313
`Grinding` of Mechanical Grindstone supports custom grinding recipe. It is the same format as the recipe of Create, with type `create_dragons_plus:printing`.

src/generated/resources/data/create_enchantment_industry/recipe/grinding/ars_nouveau/experience_gem.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"modid": "ars_nouveau"
66
}
77
],
8-
"type": "create_dragons_plus:grinding",
8+
"type": "create_enchantment_industry:grinding",
99
"ingredients": [
1010
{
1111
"item": "ars_nouveau:experience_gem"

src/generated/resources/data/create_enchantment_industry/recipe/grinding/ars_nouveau/greater_experience_gem.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"modid": "ars_nouveau"
66
}
77
],
8-
"type": "create_dragons_plus:grinding",
8+
"type": "create_enchantment_industry:grinding",
99
"ingredients": [
1010
{
1111
"item": "ars_nouveau:greater_experience_gem"

src/generated/resources/data/create_enchantment_industry/recipe/grinding/create_sa/heap_of_experience.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"modid": "create_sa"
66
}
77
],
8-
"type": "create_dragons_plus:grinding",
8+
"type": "create_enchantment_industry:grinding",
99
"ingredients": [
1010
{
1111
"item": "create_sa:heap_of_experience"

src/generated/resources/data/create_enchantment_industry/recipe/grinding/experience_block.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
2-
"type": "create_dragons_plus:grinding",
2+
"type": "create_enchantment_industry:grinding",
33
"ingredients": [
44
{
55
"item": "create:experience_block"
66
}
77
],
8+
"sound": "minecraft:book_page_turn",
89
"results": [
910
{
1011
"amount": 27,

src/generated/resources/data/create_enchantment_industry/recipe/grinding/experience_nugget.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "create_dragons_plus:grinding",
2+
"type": "create_enchantment_industry:grinding",
33
"ingredients": [
44
{
55
"item": "create:experience_nugget"

src/generated/resources/data/create_enchantment_industry/recipe/grinding/super_experience_block.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "create_dragons_plus:grinding",
2+
"type": "create_enchantment_industry:grinding",
33
"ingredients": [
44
{
55
"item": "create_enchantment_industry:super_experience_block"

src/generated/resources/data/create_enchantment_industry/recipe/grinding/super_experience_nugget.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"type": "create_dragons_plus:grinding",
2+
"type": "create_enchantment_industry:grinding",
33
"ingredients": [
44
{
55
"item": "create_enchantment_industry:super_experience_nugget"

src/main/java/plus/dragons/createenchantmentindustry/common/registry/CEIRecipes.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
import net.minecraft.world.item.crafting.RecipeType;
2626
import net.neoforged.bus.api.IEventBus;
2727
import net.neoforged.neoforge.registries.DeferredRegister;
28-
import plus.dragons.createdragonsplus.common.CDPCommon;
2928
import plus.dragons.createdragonsplus.common.recipe.CustomProcessingRecipeParams;
3029
import plus.dragons.createdragonsplus.common.recipe.CustomProcessingRecipeSerializer;
3130
import plus.dragons.createdragonsplus.common.recipe.RecipeTypeInfo;
@@ -36,7 +35,7 @@
3635

3736
public class CEIRecipes {
3837
private static final DeferredRegister<RecipeType<?>> TYPES = DeferredRegister.create(BuiltInRegistries.RECIPE_TYPE, CEICommon.ID);
39-
private static final DeferredRegister<RecipeSerializer<?>> SERIALIZERS = DeferredRegister.create(BuiltInRegistries.RECIPE_SERIALIZER, CDPCommon.ID);
38+
private static final DeferredRegister<RecipeSerializer<?>> SERIALIZERS = DeferredRegister.create(BuiltInRegistries.RECIPE_SERIALIZER, CEICommon.ID);
4039
public static final RecipeTypeInfo<PrintingRecipe> PRINTING = register("printing", () -> new CustomProcessingRecipeSerializer<>(
4140
PrintingRecipe::new,
4241
PrintingRecipeParams.CODEC,

0 commit comments

Comments
 (0)