From bf94581ab408e7c34bb940a9f74c43dae347a209 Mon Sep 17 00:00:00 2001 From: OffsetMonkey538 <71213040+OffsetMonkey538@users.noreply.github.com> Date: Wed, 18 Oct 2023 15:45:37 +0300 Subject: [PATCH] Add recipe for getting spirit bottles to EMI --- .../client/emi/CompactMobFarmsEmiPlugin.java | 30 +++++++++++++++++++ .../emi/CompactMobFarmsEmiPlugin.java | 12 -------- 2 files changed, 30 insertions(+), 12 deletions(-) create mode 100644 src/client/java/top/offsetmonkey538/compactmobfarms/client/emi/CompactMobFarmsEmiPlugin.java delete mode 100644 src/main/java/top/offsetmonkey538/compactmobfarms/emi/CompactMobFarmsEmiPlugin.java diff --git a/src/client/java/top/offsetmonkey538/compactmobfarms/client/emi/CompactMobFarmsEmiPlugin.java b/src/client/java/top/offsetmonkey538/compactmobfarms/client/emi/CompactMobFarmsEmiPlugin.java new file mode 100644 index 0000000..ff13436 --- /dev/null +++ b/src/client/java/top/offsetmonkey538/compactmobfarms/client/emi/CompactMobFarmsEmiPlugin.java @@ -0,0 +1,30 @@ +package top.offsetmonkey538.compactmobfarms.emi; + +import dev.emi.emi.api.EmiPlugin; +import dev.emi.emi.api.EmiRegistry; +import dev.emi.emi.api.recipe.EmiRecipeCategory; +import dev.emi.emi.api.recipe.EmiWorldInteractionRecipe; +import dev.emi.emi.api.stack.Comparison; +import dev.emi.emi.api.stack.EmiStack; +import net.minecraft.entity.EntityType; +import net.minecraft.item.Items; +import top.offsetmonkey538.compactmobfarms.config.EntityTiers; +import top.offsetmonkey538.compactmobfarms.item.ModItems; + +import static top.offsetmonkey538.compactmobfarms.CompactMobFarms.*; + +public class CompactMobFarmsEmiPlugin implements EmiPlugin { + + @Override + public void register(EmiRegistry registry) { + registry.addRecipe(EmiWorldInteractionRecipe.builder() + .id(id("/spirit_bottle")) + .leftInput(EmiStack.of(Items.GLASS_BOTTLE)) + .rightInput(EmiStack.of(Items.SPAWNER), true) + .output(EmiStack.of(ModItems.SPIRIT_BOTTLE)) + .build() + ); + + + } +} diff --git a/src/main/java/top/offsetmonkey538/compactmobfarms/emi/CompactMobFarmsEmiPlugin.java b/src/main/java/top/offsetmonkey538/compactmobfarms/emi/CompactMobFarmsEmiPlugin.java deleted file mode 100644 index b7789c5..0000000 --- a/src/main/java/top/offsetmonkey538/compactmobfarms/emi/CompactMobFarmsEmiPlugin.java +++ /dev/null @@ -1,12 +0,0 @@ -package top.offsetmonkey538.compactmobfarms.emi; - -import dev.emi.emi.api.EmiPlugin; -import dev.emi.emi.api.EmiRegistry; - -public class CompactMobFarmsEmiPlugin implements EmiPlugin { - - @Override - public void register(EmiRegistry registry) { - - } -}