diff options
Diffstat (limited to 'src/main/java/moe/nea/funnyteleporters/FunnyRecipeProvider.java')
-rw-r--r-- | src/main/java/moe/nea/funnyteleporters/FunnyRecipeProvider.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/main/java/moe/nea/funnyteleporters/FunnyRecipeProvider.java b/src/main/java/moe/nea/funnyteleporters/FunnyRecipeProvider.java index 5b7ee14..a3023a7 100644 --- a/src/main/java/moe/nea/funnyteleporters/FunnyRecipeProvider.java +++ b/src/main/java/moe/nea/funnyteleporters/FunnyRecipeProvider.java @@ -3,6 +3,7 @@ package moe.nea.funnyteleporters; import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput; import net.fabricmc.fabric.api.datagen.v1.provider.FabricRecipeProvider; import net.minecraft.data.server.recipe.RecipeExporter; +import net.minecraft.data.server.recipe.ShapedRecipeJsonBuilder; import net.minecraft.data.server.recipe.ShapelessRecipeJsonBuilder; import net.minecraft.item.Items; import net.minecraft.recipe.book.RecipeCategory; @@ -23,5 +24,32 @@ public class FunnyRecipeProvider extends FabricRecipeProvider { .criterion(hasItem(Items.ENDER_CHEST), conditionsFromItem(Items.ENDER_CHEST)) .offerTo(recipeExporter); + ShapedRecipeJsonBuilder.create(RecipeCategory.BUILDING_BLOCKS, FunnyRegistry.ENDER_PEARL_BLOCK) + .pattern("eee").pattern("eee").pattern("eee") + .input('e', Items.ENDER_PEARL) + .criterion(hasItem(Items.ENDER_PEARL), conditionsFromItem(Items.ENDER_PEARL)) + .offerTo(recipeExporter); + + ShapelessRecipeJsonBuilder.create(RecipeCategory.MISC, Items.ENDER_PEARL, 9) + .input(FunnyRegistry.ENDER_PEARL_BLOCK) + .criterion(hasItem(FunnyRegistry.ENDER_PEARL_BLOCK), conditionsFromItem(FunnyRegistry.ENDER_PEARL_BLOCK)) + .offerTo(recipeExporter); + ShapedRecipeJsonBuilder.create(RecipeCategory.TRANSPORTATION, FunnyRegistry.TELEPORTER) + .pattern("ooo") + .pattern("oeo") + .pattern("ooo") + .input('o', Items.OBSIDIAN) + .input('e', FunnyRegistry.ENDER_PEARL_BLOCK) + .criterion(hasItem(FunnyRegistry.ENDER_PEARL_BLOCK), conditionsFromItem(FunnyRegistry.ENDER_PEARL_BLOCK)) + .offerTo(recipeExporter); + ShapedRecipeJsonBuilder.create(RecipeCategory.TOOLS, FunnyRegistry.TELEPORTER_WAND) + .pattern(" e") + .pattern(" r ") + .pattern("s ") + .input('e', FunnyRegistry.ENDER_PEARL_BLOCK) + .input('r', Items.REDSTONE_BLOCK) + .input('s', Items.STICK) + .criterion(hasItem(Items.ENDER_PEARL), conditionsFromItem(Items.ENDER_PEARL)) + .offerTo(recipeExporter); } } |