Skip to content

Commit

Permalink
一些修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Jun 10, 2024
1 parent 6a4bff5 commit 9a221fc
Show file tree
Hide file tree
Showing 22 changed files with 32 additions and 22 deletions.
3 changes: 3 additions & 0 deletions common/src/main/java/dev/dubhe/anvilcraft/init/ModBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -852,6 +852,7 @@ public class ModBlocks {
HasItem hasItem = new HasItemIngredient(new Vec3(0.0, -1.0, 0.0), item).notHasTag("BlockEntityTag.entity");
AnvilRecipe.Builder.create(RecipeCategory.MISC)
.icon(ctx.get())
.type(AnvilRecipeType.TIMEWARP)
.hasBlock(
ModBlocks.CORRUPTED_BEACON.get(),
new Vec3(0.0, -2.0, 0.0),
Expand Down Expand Up @@ -892,6 +893,7 @@ public class ModBlocks {
).loadItemData("resin");
AnvilRecipe.Builder.create(RecipeCategory.MISC)
.icon(ctx.get())
.type(AnvilRecipeType.TIMEWARP)
.hasBlock(
ModBlocks.CORRUPTED_BEACON.get(),
new Vec3(0.0, -2.0, 0.0),
Expand Down Expand Up @@ -929,6 +931,7 @@ public class ModBlocks {
).loadItemData("resin");
AnvilRecipe.Builder.create(RecipeCategory.MISC)
.icon(ctx.get())
.type(AnvilRecipeType.TIMEWARP)
.hasBlock(
ModBlocks.CORRUPTED_BEACON.get(),
new Vec3(0.0, -2.0, 0.0),
Expand Down
7 changes: 7 additions & 0 deletions common/src/main/java/dev/dubhe/anvilcraft/init/ModItems.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import dev.dubhe.anvilcraft.data.generator.AnvilCraftDatagen;
import dev.dubhe.anvilcraft.data.generator.recipe.TimeWarpRecipesLoader;
import dev.dubhe.anvilcraft.data.recipe.anvil.AnvilRecipe;
import dev.dubhe.anvilcraft.data.recipe.anvil.AnvilRecipeType;
import dev.dubhe.anvilcraft.data.recipe.crafting.ShapedTagRecipeBuilder;
import dev.dubhe.anvilcraft.item.AmethystAxeItem;
import dev.dubhe.anvilcraft.item.AmethystHoeItem;
Expand Down Expand Up @@ -174,6 +175,7 @@ public class ModItems {
.item("flour", Item::new)
.tag(ModItemTags.FLOUR, ModItemTags.WHEAT_FLOUR)
.recipe((ctx, provider) -> AnvilRecipe.Builder.create(RecipeCategory.MISC, ctx.get().getDefaultInstance())
.type(AnvilRecipeType.ITEM_SMASH)
.hasBlock(ModBlocks.STAMPING_PLATFORM.get())
.hasItemIngredient(new Vec3(0.0, -0.75, 0.0), Items.WHEAT)
.spawnItem(new Vec3(0.0, -0.75, 0.0), ctx.get())
Expand Down Expand Up @@ -592,6 +594,7 @@ public class ModItems {
.save(provider, BuiltInRegistries.ITEM.getKey(ctx.get()).getPath() + "_forge");
AnvilRecipe.Builder.create(RecipeCategory.MISC)
.icon(Items.ANCIENT_DEBRIS)
.type(AnvilRecipeType.TIMEWARP)
.hasBlock(
ModBlocks.CORRUPTED_BEACON.get(),
new Vec3(0.0, -2.0, 0.0),
Expand Down Expand Up @@ -975,6 +978,7 @@ public class ModItems {
)
.save(provider, BuiltInRegistries.ITEM.getKey(ctx.get()).getPath() + "_forge");
AnvilRecipe.Builder.create(RecipeCategory.MISC, ctx.get().getDefaultInstance())
.type(AnvilRecipeType.SUPER_HEATING)
.hasBlock(ModBlocks.HEATER.get(), new Vec3(0.0, -2.0, 0.0), Map.entry(OVERLOAD, false))
.hasBlock(Blocks.CAULDRON)
.hasItemIngredient(new Vec3(0.0, -1.0, 0.0), 1, ModItemTags.TIN_INGOTS)
Expand All @@ -995,6 +999,7 @@ public class ModItems {
)
);
AnvilRecipe.Builder.create(RecipeCategory.MISC, ctx.get().getDefaultInstance())
.type(AnvilRecipeType.SUPER_HEATING)
.hasBlock(ModBlocks.HEATER.get(), new Vec3(0.0, -2.0, 0.0), Map.entry(OVERLOAD, false))
.hasBlock(Blocks.CAULDRON)
.hasItemIngredient(new Vec3(0.0, -1.0, 0.0), 1, ModItemTags.TIN_INGOTS_FORGE)
Expand Down Expand Up @@ -1068,6 +1073,7 @@ public class ModItems {
)
.save(provider, BuiltInRegistries.ITEM.getKey(ctx.get()).getPath() + "_forge");
AnvilRecipe.Builder.create(RecipeCategory.MISC, ctx.get().getDefaultInstance())
.type(AnvilRecipeType.SUPER_HEATING)
.hasBlock(ModBlocks.HEATER.get(), new Vec3(0.0, -2.0, 0.0), Map.entry(OVERLOAD, false))
.hasBlock(Blocks.CAULDRON)
.hasItemIngredient(new Vec3(0.0, -1.0, 0.0), 1, ModItemTags.ZINC_INGOTS)
Expand All @@ -1088,6 +1094,7 @@ public class ModItems {
)
);
AnvilRecipe.Builder.create(RecipeCategory.MISC, ctx.get().getDefaultInstance())
.type(AnvilRecipeType.SUPER_HEATING)
.hasBlock(ModBlocks.HEATER.get(), new Vec3(0.0, -2.0, 0.0), Map.entry(OVERLOAD, false))
.hasBlock(Blocks.CAULDRON)
.hasItemIngredient(new Vec3(0.0, -1.0, 0.0), 1, ModItemTags.ZINC_INGOTS_FORGE)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "item_smash",
"icon": {
"item": "anvilcraft:flour"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:brass_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:brass_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:bronze_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:bronze_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "anvilcraft:amber_block"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "minecraft:ancient_debris"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "anvilcraft:mob_amber_block"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "anvilcraft:mob_amber_block"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"transformOptions": [
"replaceAnvil",
"keepInventory"
"keepInventory",
"replaceAnvil"
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "item_smash",
"icon": {
"item": "anvilcraft:flour"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:brass_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:brass_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:bronze_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "super_heating",
"icon": {
"item": "anvilcraft:bronze_ingot"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "anvilcraft:amber_block"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "minecraft:ancient_debris"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "anvilcraft:mob_amber_block"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "anvilcraft:anvil_processing",
"anvil_recipe_type": "generic",
"anvil_recipe_type": "timewarp",
"icon": {
"item": "anvilcraft:mob_amber_block"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
],
"transformOptions": [
"replaceAnvil",
"keepInventory"
"keepInventory",
"replaceAnvil"
]
}

0 comments on commit 9a221fc

Please sign in to comment.