From d5f571afe37bb2d60fcddd42130a955b40ae60fd Mon Sep 17 00:00:00 2001 From: Paul Reilly Date: Sat, 11 Jul 2020 15:48:21 -0500 Subject: [PATCH] added more recipes title --- .idea/vcs.xml | 6 ++ .idea/workspace.xml | 15 +++- src/main/java/dev/coomware/Craftable.java | 101 ++++++++++++++++++++++ 3 files changed, 119 insertions(+), 3 deletions(-) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 7192b7b..aebebea 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -1,7 +1,9 @@ - + + + + + \ No newline at end of file diff --git a/src/main/java/dev/coomware/Craftable.java b/src/main/java/dev/coomware/Craftable.java index 93528c6..1a8280c 100644 --- a/src/main/java/dev/coomware/Craftable.java +++ b/src/main/java/dev/coomware/Craftable.java @@ -18,6 +18,7 @@ public class Craftable { goldHorseArmor(); diamondHorseArmor(); nametag(); + eggs(); } private void saddle() { @@ -80,4 +81,104 @@ public class Craftable { nametag.setIngredient('p', Material.PAPER); plugin.server.addRecipe(nametag); } + + // EGGS --- EGGS --- EGGS --- EGGS --- EGGS \\ + + private void eggs() { + beeEgg(); + blazeEgg(); + caveSpiderEgg(); + creeperEgg(); + dolphinEgg(); + drownedEgg(); + elderGuardEgg(); + endermanEgg(); + endermiteEgg(); + } + + private void beeEgg() { + ShapedRecipe beeEgg = util.shaped(Material.BEE_SPAWN_EGG, "bee_egg_recipe"); + beeEgg.shape("aha","heh","aha"); + beeEgg.setIngredient('a', Material.AIR); + beeEgg.setIngredient('h', Material.HONEYCOMB); + beeEgg.setIngredient('e', Material.EGG); + plugin.server.addRecipe(beeEgg); + } + + private void blazeEgg() { + ShapedRecipe blazeEgg = util.shaped(Material.BLAZE_SPAWN_EGG, "blaze_egg_recipe"); + blazeEgg.shape("sbs","beb","sbs"); + blazeEgg.setIngredient('s', Material.SOUL_SOIL); + blazeEgg.setIngredient('b', Material.BLAZE_ROD); + blazeEgg.setIngredient('e', Material.EGG); + plugin.server.addRecipe(blazeEgg); + } + + private void caveSpiderEgg() { + ShapedRecipe caveSpiderEgg = util.shaped(Material.CAVE_SPIDER_SPAWN_EGG, "cave_spider_egg_recipe"); + caveSpiderEgg.shape("afa","ses","afa"); + caveSpiderEgg.setIngredient('a', Material.AIR); + caveSpiderEgg.setIngredient('f', Material.FERMENTED_SPIDER_EYE); + caveSpiderEgg.setIngredient('s', Material.SPIDER_EYE); + caveSpiderEgg.setIngredient('e', Material.SPIDER_SPAWN_EGG); + plugin.server.addRecipe(caveSpiderEgg); + } + + private void creeperEgg() { + ShapedRecipe creeperEgg = util.shaped(Material.CREEPER_SPAWN_EGG, "creeper_egg_recipe"); + creeperEgg.shape("aga","geg","aga"); + creeperEgg.setIngredient('a', Material.AIR); + creeperEgg.setIngredient('g', Material.GUNPOWDER); + creeperEgg.setIngredient('e', Material.EGG); + plugin.server.addRecipe(creeperEgg); + } + + private void dolphinEgg() { + ShapedRecipe dolphin = util.shaped(Material.DOLPHIN_SPAWN_EGG, "dolphin_egg_recipe"); + dolphin.shape("aca","wew","aca"); + dolphin.setIngredient('a', Material.AIR); + dolphin.setIngredient('w', Material.WATER_BUCKET); + dolphin.setIngredient('c', Material.COD); + dolphin.setIngredient('e', Material.EGG); + plugin.server.addRecipe(dolphin); + } + + private void drownedEgg() { + ShapedRecipe drowned = util.shaped(Material.DROWNED_SPAWN_EGG, "drowned_egg_recipe"); + drowned.shape("awa","fef","awa"); + drowned.setIngredient('a', Material.AIR); + drowned.setIngredient('w', Material.WATER_BUCKET); + drowned.setIngredient('f', Material.FISHING_ROD); + drowned.setIngredient('e', Material.ZOMBIE_SPAWN_EGG); + plugin.server.addRecipe(drowned); + } + + private void elderGuardEgg() { + ShapedRecipe eldGuard = util.shaped(Material.ELDER_GUARDIAN_SPAWN_EGG, "elder_guardian_egg_recipe"); + eldGuard.shape("apa","ses","apa"); + eldGuard.setIngredient('a', Material.AIR); + eldGuard.setIngredient('p', Material.PRISMARINE_SHARD); + eldGuard.setIngredient('e', Material.GUARDIAN_SPAWN_EGG); + eldGuard.setIngredient('s', Material.SPONGE); + plugin.server.addRecipe(eldGuard); + } + + private void endermanEgg() { + ShapedRecipe enderman = util.shaped(Material.ENDERMAN_SPAWN_EGG, "enderman_egg_recipe"); + enderman.shape("apa","pep","apa"); + enderman.setIngredient('a', Material.AIR); + enderman.setIngredient('p', Material.ENDER_PEARL); + enderman.setIngredient('e', Material.EGG); + plugin.server.addRecipe(enderman); + } + + private void endermiteEgg() { + ShapedRecipe endermite = util.shaped(Material.ENDERMITE_SPAWN_EGG, "endermite_egg_recipe"); + endermite.shape("apa","cec","apa"); + endermite.setIngredient('a', Material.AIR); + endermite.setIngredient('p', Material.ENDER_PEARL); + endermite.setIngredient('c', Material.CHORUS_FRUIT); + endermite.setIngredient('e', Material.EGG); + plugin.server.addRecipe(endermite); + } }