Finally finished :)

Gonna test now :)
This commit is contained in:
Paul Reilly 2020-07-12 18:28:48 -05:00
parent d5f571afe3
commit 7f06101b80
11 changed files with 821 additions and 5 deletions

9
.idea/workspace.xml generated
View File

@ -2,6 +2,7 @@
<project version="4"> <project version="4">
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="b7e3dfbd-dfc6-4dd5-b2c6-f110c120ecb3" name="Default Changelist" comment=""> <list default="true" id="b7e3dfbd-dfc6-4dd5-b2c6-f110c120ecb3" name="Default Changelist" comment="">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/src/main/java/dev/coomware/Craftable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/dev/coomware/Craftable.java" afterDir="false" /> <change beforePath="$PROJECT_DIR$/src/main/java/dev/coomware/Craftable.java" beforeDir="false" afterPath="$PROJECT_DIR$/src/main/java/dev/coomware/Craftable.java" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@ -59,13 +60,13 @@
<screen x="0" y="0" width="1280" height="720" /> <screen x="0" y="0" width="1280" height="720" />
</state> </state>
<state x="446" y="70" key="#com.intellij.ide.util.MemberChooser/0.0.1280.720@0.0.1280.720" timestamp="1594491647536" /> <state x="446" y="70" key="#com.intellij.ide.util.MemberChooser/0.0.1280.720@0.0.1280.720" timestamp="1594491647536" />
<state x="337" y="185" key="com.intellij.ide.util.TipDialog" timestamp="1594498873985"> <state x="337" y="185" key="com.intellij.ide.util.TipDialog" timestamp="1594585936140">
<screen x="0" y="0" width="1280" height="720" /> <screen x="0" y="0" width="1280" height="720" />
</state> </state>
<state x="337" y="185" key="com.intellij.ide.util.TipDialog/0.0.1280.720@0.0.1280.720" timestamp="1594498873985" /> <state x="337" y="185" key="com.intellij.ide.util.TipDialog/0.0.1280.720@0.0.1280.720" timestamp="1594585936140" />
<state x="303" y="41" width="672" height="678" key="search.everywhere.popup" timestamp="1594500352730"> <state x="303" y="41" width="672" height="678" key="search.everywhere.popup" timestamp="1594590229840">
<screen x="0" y="0" width="1280" height="720" /> <screen x="0" y="0" width="1280" height="720" />
</state> </state>
<state x="303" y="41" width="672" height="678" key="search.everywhere.popup/0.0.1280.720@0.0.1280.720" timestamp="1594500352730" /> <state x="303" y="41" width="672" height="678" key="search.everywhere.popup/0.0.1280.720@0.0.1280.720" timestamp="1594590229840" />
</component> </component>
</project> </project>

View File

@ -2,10 +2,11 @@ package dev.coomware;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.inventory.ShapedRecipe; import org.bukkit.inventory.ShapedRecipe;
import org.bukkit.inventory.ShapelessRecipe;
public class Craftable { public class Craftable {
private Uncraftables plugin; private Uncraftables plugin;
private CraftingUtils util = Uncraftables.plugin.util; private static final CraftingUtils util = Uncraftables.plugin.util;
public Craftable(Uncraftables instance) { public Craftable(Uncraftables instance) {
plugin = instance; plugin = instance;
@ -19,6 +20,85 @@ public class Craftable {
diamondHorseArmor(); diamondHorseArmor();
nametag(); nametag();
eggs(); eggs();
spawner();
discs();
bedrock();
barrier();
bell();
netherstar();
elytra();
trident();
netherwart();
cryingObsidian();
endFrame();
totem();
}
private void totem() {
ShapedRecipe recipe = util.shaped(Material.TOTEM_OF_UNDYING, "totem_recipe");
recipe.shape("aea","ibi","aga");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('e', Material.EMERALD);
recipe.setIngredient('i', Material.GOLD_INGOT);
recipe.setIngredient('b', Material.GOLD_BLOCK);
recipe.setIngredient('g', Material.GOLDEN_APPLE);
plugin.server.addRecipe(recipe);
}
private void netherwart() {
ShapelessRecipe recipe = util.shapeless(Material.NETHER_WART, "netherwart_recipe");
recipe.addIngredient(1, Material.NETHER_WART_BLOCK);
recipe.getResult().setAmount(9);
plugin.server.addRecipe(recipe);
}
private void cryingObsidian() {
ShapelessRecipe recipe = util.shapeless(Material.CRYING_OBSIDIAN, "crying_obsidian_recipe");
recipe.addIngredient(1, Material.OBSIDIAN);
recipe.addIngredient(4, Material.GHAST_TEAR);
recipe.getResult().setAmount(2);
plugin.server.addRecipe(recipe);
}
private void endFrame() {
ShapedRecipe recipe = util.shaped(Material.END_PORTAL_FRAME, "end_frame_recipe");
recipe.shape("pap","eoe","eee");
recipe.setIngredient('p', Material.ENDER_PEARL);
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('e', Material.END_STONE);
recipe.setIngredient('o', Material.OBSIDIAN);
plugin.server.addRecipe(recipe);
}
private void trident() {
ShapedRecipe recipe = util.shaped(Material.TRIDENT, "trident_recipe");
recipe.shape("add","apd","paa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('p', Material.PRISMARINE_SHARD);
recipe.setIngredient('d', Material.DIAMOND);
plugin.server.addRecipe(recipe);
}
private void elytra() {
ShapedRecipe recipe = util.shaped(Material.ELYTRA, "elytra_recipe");
recipe.shape("sds","mnm","mam");
recipe.setIngredient('s', Material.STRING);
recipe.setIngredient('d', Material.DIAMOND);
recipe.setIngredient('m', Material.PHANTOM_MEMBRANE);
recipe.setIngredient('n', Material.NETHER_STAR);
recipe.setIngredient('a', Material.AIR);
plugin.server.addRecipe(recipe);
}
private void netherstar() {
ShapedRecipe recipe = util.shaped(Material.NETHER_STAR, "netherstar_recipe");
recipe.shape("nwn","sss","bqb");
recipe.setIngredient('n', Material.NETHER_WART);
recipe.setIngredient('w', Material.WITHER_SKELETON_SKULL);
recipe.setIngredient('s', Material.SOUL_SAND);
recipe.setIngredient('b', Material.BLAZE_ROD);
recipe.setIngredient('q', Material.QUARTZ);
plugin.server.addRecipe(recipe);
} }
private void saddle() { private void saddle() {
@ -30,6 +110,16 @@ public class Craftable {
plugin.server.addRecipe(saddle); plugin.server.addRecipe(saddle);
} }
private void bell() {
ShapedRecipe recipe = util.shaped(Material.BELL, "bell_recipe");
recipe.shape("s*s","sis","sns");
recipe.setIngredient('s', Material.STONE);
recipe.setIngredient('*', Material.STICK);
recipe.setIngredient('i', Material.GOLD_INGOT);
recipe.setIngredient('n', Material.GOLD_NUGGET);
plugin.server.addRecipe(recipe);
}
private void leatherHorseArmor() { private void leatherHorseArmor() {
ShapedRecipe armor = util.shaped(Material.LEATHER_HORSE_ARMOR, "leather_horse_armor_recipe"); ShapedRecipe armor = util.shaped(Material.LEATHER_HORSE_ARMOR, "leather_horse_armor_recipe");
armor.shape("aal","l*l","lsi"); armor.shape("aal","l*l","lsi");
@ -82,6 +172,158 @@ public class Craftable {
plugin.server.addRecipe(nametag); plugin.server.addRecipe(nametag);
} }
private void spawner() {
ShapedRecipe recipe = util.shaped(Material.SPAWNER, "spawner_recipe");
recipe.shape("ccc","cec","ccc");
recipe.setIngredient('c', Material.CHAIN);
recipe.setIngredient('e', Material.PIG_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void bedrock() {
ShapelessRecipe recipe = util.shapeless(Material.BEDROCK, "bedrock_recipe");
recipe.addIngredient(2, Material.OBSIDIAN);
recipe.addIngredient(2, Material.STONE);
recipe.addIngredient(1, Material.DIAMOND);
recipe.addIngredient(1, Material.IRON_INGOT);
recipe.addIngredient(1, Material.COAL);
recipe.addIngredient(1, Material.WATER_BUCKET);
recipe.addIngredient(1, Material.LAVA_BUCKET);
recipe.getResult().setAmount(4);
plugin.server.addRecipe(recipe);
}
private void barrier() {
ShapedRecipe recipe = util.shaped(Material.BARRIER, "barrier_recipe");
recipe.shape("ggg","gbg","ggg");
recipe.setIngredient('g', Material.GLASS);
recipe.setIngredient('b', Material.BEDROCK);
plugin.server.addRecipe(recipe);
}
// MUSIC DISCS \\
private void discs() {
cd11();
cd13();
cdBLOCKS();
cdCAT();
cdCHIRP();
cdFAR();
cdMALL();
cdMELLOHI();
cdPIGSTEP();
cdSTAL();
cdSTRAD();
cdWAIT();
cdWARD();
}
private void cd13() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_13, "13_recipe");
recipe.shape("fff","fyf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('y', Material.YELLOW_DYE);
plugin.server.addRecipe(recipe);
}
private void cdCAT() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_CAT, "cat_recipe");
recipe.shape("fff","fgf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('g', Material.LIME_DYE);
plugin.server.addRecipe(recipe);
}
private void cdBLOCKS() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_BLOCKS, "blocks_recipe");
recipe.shape("fff","fof","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('o', Material.ORANGE_DYE);
plugin.server.addRecipe(recipe);
}
private void cdCHIRP() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_CHIRP, "chirp_recipe");
recipe.shape("fff","frf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('r', Material.RED_DYE);
plugin.server.addRecipe(recipe);
}
private void cdFAR() {
ShapelessRecipe recipe = util.shapeless(Material.MUSIC_DISC_FAR, "far_recipe");
recipe.addIngredient(2, Material.BONE_MEAL);
recipe.addIngredient(1, Material.MUSIC_DISC_CAT);
plugin.server.addRecipe(recipe);
}
private void cdMALL() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_MALL, "mall_recipe");
recipe.shape("fff","fpf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('p', Material.PURPLE_DYE);
plugin.server.addRecipe(recipe);
}
private void cdMELLOHI() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_MELLOHI, "mellohi_recipe");
recipe.shape("fff","fpf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('p', Material.PINK_DYE);
plugin.server.addRecipe(recipe);
}
private void cdSTAL() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_STAL, "stal_recipe");
recipe.shape("fff","fbf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('b', Material.BLACK_DYE);
plugin.server.addRecipe(recipe);
}
private void cdSTRAD() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_STRAD, "strad_recipe");
recipe.shape("fff","fwf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('w', Material.WHITE_DYE);
plugin.server.addRecipe(recipe);
}
private void cdWARD() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_WARD, "ward_recipe");
recipe.shape("fff","fgf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('g', Material.GREEN_DYE);
plugin.server.addRecipe(recipe);
}
private void cd11() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_11, "11_recipe");
recipe.shape("fff","fbf","ffa");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('b', Material.BLACK_DYE);
recipe.setIngredient('a', Material.AIR);
plugin.server.addRecipe(recipe);
}
private void cdWAIT() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_WAIT, "wait_recipe");
recipe.shape("fff","fbf","fff");
recipe.setIngredient('f', Material.FLINT);
recipe.setIngredient('b', Material.BLUE_DYE);
plugin.server.addRecipe(recipe);
}
private void cdPIGSTEP() {
ShapedRecipe recipe = util.shaped(Material.MUSIC_DISC_PIGSTEP, "pigstep_recipe");
recipe.shape("nqn","qyq","nqn");
recipe.setIngredient('n', Material.NETHER_BRICK);
recipe.setIngredient('q', Material.QUARTZ);
recipe.setIngredient('y', Material.YELLOW_DYE);
plugin.server.addRecipe(recipe);
}
// EGGS --- EGGS --- EGGS --- EGGS --- EGGS \\ // EGGS --- EGGS --- EGGS --- EGGS --- EGGS \\
private void eggs() { private void eggs() {
@ -94,6 +336,61 @@ public class Craftable {
elderGuardEgg(); elderGuardEgg();
endermanEgg(); endermanEgg();
endermiteEgg(); endermiteEgg();
evokerEgg();
foxEgg();
ghastEgg();
guardianEgg();
hoglinEgg();
huskEgg();
llamaEgg();
magmaCubeEgg();
pandaEgg();
phantomEgg();
piglinEgg();
pillagerEgg();
polarBearEgg();
ravagerEgg();
shulkerEgg();
silverfishEgg();
skeletonEgg();
slimeEgg();
spiderEgg();
strayEgg();
striderEgg();
vexEgg();
vindicatorEgg();
witchEgg();
witherSkeletonEgg();
wolfEgg();
zoglinEgg();
zombieEgg();
zombieVillagerEgg();
zPiglinEgg();
//non-hostile
batEgg();
catEgg();
chickenEgg();
codEgg();
cowEgg();
donkeyEgg();
horseEgg();
mooshroomEgg();
muleEgg();
ocelotEgg();
parrotEgg();
pigEgg();
pufferfishEgg();
rabbitEgg();
salmonEgg();
sheepEgg();
sHorseEgg();
squidEgg();
traderEgg();
traderLlamaEgg();
tropicalFishEgg();
turtleEgg();
villagerEgg();
zHorseEgg();
} }
private void beeEgg() { private void beeEgg() {
@ -181,4 +478,505 @@ public class Craftable {
endermite.setIngredient('e', Material.EGG); endermite.setIngredient('e', Material.EGG);
plugin.server.addRecipe(endermite); plugin.server.addRecipe(endermite);
} }
private void evokerEgg() {
ShapedRecipe evoker = util.shaped(Material.EVOKER_SPAWN_EGG, "evoker_egg_recipe");
evoker.shape("ata","eve","ata");
evoker.setIngredient('a', Material.AIR);
evoker.setIngredient('t', Material.TOTEM_OF_UNDYING);
evoker.setIngredient('e', Material.EMERALD);
evoker.setIngredient('v', Material.VINDICATOR_SPAWN_EGG);
plugin.server.addRecipe(evoker);
}
private void foxEgg() {
ShapedRecipe recipe = util.shaped(Material.FOX_SPAWN_EGG, "fox_egg_recipe");
recipe.shape("asa","ses","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SWEET_BERRIES);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void ghastEgg() {
ShapedRecipe recipe = util.shaped(Material.GHAST_SPAWN_EGG, "ghast_egg_recipe");
recipe.shape("sts","geg","sts");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('t', Material.GHAST_TEAR);
recipe.setIngredient('g', Material.GUNPOWDER);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void guardianEgg() {
ShapedRecipe recipe = util.shaped(Material.GUARDIAN_SPAWN_EGG, "guardian_egg_recipe");
recipe.shape("apa","pep","apa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('p', Material.PRISMARINE_SHARD);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void hoglinEgg() {
ShapedRecipe recipe = util.shaped(Material.HOGLIN_SPAWN_EGG, "hoglin_egg_recipe");
recipe.shape("sls","pep","sls");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('p', Material.PORKCHOP);
recipe.setIngredient('l', Material.LEATHER);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void huskEgg() {
ShapedRecipe recipe = util.shaped(Material.HUSK_SPAWN_EGG, "husk_egg_recipe");
recipe.shape("asa","rer","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SAND);
recipe.setIngredient('e', Material.ZOMBIE_SPAWN_EGG);
recipe.setIngredient('r', Material.ROTTEN_FLESH);
plugin.server.addRecipe(recipe);
}
private void llamaEgg() {
ShapedRecipe recipe = util.shaped(Material.LLAMA_SPAWN_EGG, "llama_egg_recipe");
recipe.shape("aca","lel","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.WHITE_CARPET);
recipe.setIngredient('e', Material.EGG);
recipe.setIngredient('l', Material.LEATHER);
plugin.server.addRecipe(recipe);
}
private void magmaCubeEgg() {
ShapedRecipe recipe = util.shaped(Material.MAGMA_CUBE_SPAWN_EGG, "magma_cube_egg_recipe");
recipe.shape("scs","cec","scs");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('c', Material.MAGMA_CREAM);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void pandaEgg() {
ShapedRecipe recipe = util.shaped(Material.PANDA_SPAWN_EGG, "panda_egg_recipe");
recipe.shape("aba","beb","aba");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('b', Material.BAMBOO);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void phantomEgg() {
ShapedRecipe recipe = util.shaped(Material.PHANTOM_SPAWN_EGG, "phantom_egg_recipe");
recipe.shape("ama","mem","ama");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('m', Material.PHANTOM_MEMBRANE);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void piglinEgg() {
ShapedRecipe recipe = util.shaped(Material.PIGLIN_SPAWN_EGG, "piglin_egg_recipe");
recipe.shape("sgs","nen","sgs");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('n', Material.GOLD_NUGGET);
recipe.setIngredient('g', Material.GOLD_INGOT);
recipe.setIngredient('e', Material.PIG_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void pillagerEgg() {
ShapedRecipe recipe = util.shaped(Material.PILLAGER_SPAWN_EGG, "pillager_egg_recipe");
recipe.shape("aca","*e*","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.CROSSBOW);
recipe.setIngredient('*', Material.ARROW);
recipe.setIngredient('e', Material.VILLAGER_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void polarBearEgg() {
ShapedRecipe recipe = util.shaped(Material.POLAR_BEAR_SPAWN_EGG, "polar_bear_egg_recipe");
recipe.shape("aca","ses","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.COD);
recipe.setIngredient('e', Material.EGG);
recipe.setIngredient('s', Material.SALMON);
plugin.server.addRecipe(recipe);
}
private void ravagerEgg() {
ShapedRecipe recipe = util.shaped(Material.RAVAGER_SPAWN_EGG, "ravager_egg_recipe");
recipe.shape("asa","ses","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SADDLE);
recipe.setIngredient('e', Material.HOGLIN_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void shulkerEgg() {
ShapedRecipe recipe = util.shaped(Material.SHULKER_SPAWN_EGG, "shulker_egg_recipe");
recipe.shape("scs","beb","scs");
recipe.setIngredient('s', Material.END_STONE);
recipe.setIngredient('c', Material.CHORUS_FRUIT);
recipe.setIngredient('b', Material.SHULKER_SHELL);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void silverfishEgg() {
ShapedRecipe recipe = util.shaped(Material.SILVERFISH_SPAWN_EGG, "silverfish_egg_recipe");
recipe.shape("asa","cec","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.STONE_BRICKS);
recipe.setIngredient('c', Material.CHISELED_STONE_BRICKS);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void skeletonEgg() {
ShapedRecipe recipe = util.shaped(Material.SKELETON_SPAWN_EGG, "skeleton_egg_recipe");
recipe.shape("aba","beb","aba");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('b', Material.BONE);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void slimeEgg() {
ShapedRecipe recipe = util.shaped(Material.SLIME_SPAWN_EGG, "slime_egg_recipe");
recipe.shape("asa","ses","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SLIME_BALL);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void spiderEgg() {
ShapedRecipe recipe = util.shaped(Material.SPIDER_SPAWN_EGG, "spider_egg_recipe");
recipe.shape("aia","ses","aia");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('i', Material.SPIDER_EYE);
recipe.setIngredient('s', Material.STRING);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void strayEgg() {
ShapedRecipe recipe = util.shaped(Material.STRAY_SPAWN_EGG, "stray_egg_recipe");
recipe.shape("asa","iei","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SNOWBALL);
recipe.setIngredient('e', Material.SKELETON_SPAWN_EGG);
recipe.setIngredient('i', Material.ICE);
plugin.server.addRecipe(recipe);
}
private void striderEgg() {
ShapedRecipe recipe = util.shaped(Material.STRIDER_SPAWN_EGG, "strider_egg_recipe");
recipe.shape("sls","lel","sls");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('l', Material.LAVA_BUCKET);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void vexEgg() {
ShapedRecipe recipe = util.shaped(Material.VEX_SPAWN_EGG, "vex_egg_recipe");
recipe.shape("afa","fef","afa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('f', Material.FEATHER);
recipe.setIngredient('e', Material.EVOKER_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void vindicatorEgg() {
ShapedRecipe recipe = util.shaped(Material.VINDICATOR_SPAWN_EGG, "vindicator_egg_recipe");
recipe.shape("axa","*e*","axa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('x', Material.IRON_AXE);
recipe.setIngredient('e', Material.PILLAGER_SPAWN_EGG);
recipe.setIngredient('*', Material.EMERALD);
plugin.server.addRecipe(recipe);
}
private void witchEgg() {
ShapedRecipe recipe = util.shaped(Material.WITCH_SPAWN_EGG, "witch_egg_recipe");
recipe.shape("apa","ses","apa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('p', Material.SPLASH_POTION);
recipe.setIngredient('s', Material.STICK);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void witherSkeletonEgg() {
ShapedRecipe recipe = util.shaped(Material.WITHER_SKELETON_SPAWN_EGG, "wither_skeleton_egg_recipe");
recipe.shape("scs","cec","scs");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('c', Material.COAL);
recipe.setIngredient('e', Material.SKELETON_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void wolfEgg() {
ShapedRecipe recipe = util.shaped(Material.WOLF_SPAWN_EGG, "wolf_egg_recipe");
recipe.shape("aba","nen","aba");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('b', Material.BONE);
recipe.setIngredient('n', Material.NAME_TAG);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void zoglinEgg() {
ShapedRecipe recipe = util.shaped(Material.ZOGLIN_SPAWN_EGG, "zoglin_egg_recipe");
recipe.shape("srs","rer","srs");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('r', Material.ROTTEN_FLESH);
recipe.setIngredient('e', Material.HOGLIN_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void zombieEgg() {
ShapedRecipe recipe = util.shaped(Material.ZOMBIE_SPAWN_EGG, "zombie_egg_recipe");
recipe.shape("ara","rer","ara");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('r', Material.ROTTEN_FLESH);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void zombieVillagerEgg() {
ShapedRecipe recipe = util.shaped(Material.ZOMBIE_VILLAGER_SPAWN_EGG, "z_villager_egg_recipe");
recipe.shape("ara","rer","ara");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('r', Material.ROTTEN_FLESH);
recipe.setIngredient('e', Material.VILLAGER_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void zPiglinEgg() {
ShapedRecipe recipe = util.shaped(Material.ZOMBIFIED_PIGLIN_SPAWN_EGG, "z_piglin_egg_recipe");
recipe.shape("srs","rer","srs");
recipe.setIngredient('s', Material.SOUL_SOIL);
recipe.setIngredient('r', Material.ROTTEN_FLESH);
recipe.setIngredient('e', Material.PIGLIN_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
// NON-HOSTILE \\
private void batEgg() {
ShapedRecipe recipe = util.shaped(Material.BAT_SPAWN_EGG, "bat_egg_recipe");
recipe.shape("aba","fef","aba");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('b', Material.APPLE);
recipe.setIngredient('e', Material.CHICKEN_SPAWN_EGG);
recipe.setIngredient('f', Material.FEATHER);
plugin.server.addRecipe(recipe);
}
private void catEgg() {
ShapedRecipe recipe = util.shaped(Material.CAT_SPAWN_EGG, "cat_egg_recipe");
recipe.shape("aca","ses","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.COD);
recipe.setIngredient('s', Material.SALMON);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void chickenEgg() {
ShapedRecipe recipe = util.shaped(Material.CHICKEN_SPAWN_EGG, "chicken_egg_recipe");
recipe.shape("afa","fef","afa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('f', Material.FEATHER);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void codEgg() {
ShapedRecipe recipe = util.shaped(Material.COD_SPAWN_EGG, "cod_egg_recipe");
recipe.shape("aca","cec","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.COD);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void cowEgg() {
ShapedRecipe recipe = util.shaped(Material.COW_SPAWN_EGG, "cow_egg_recipe");
recipe.shape("ala","lel","ala");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('l', Material.LEATHER);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void donkeyEgg() {
ShapelessRecipe recipe = util.shapeless(Material.DONKEY_SPAWN_EGG, "donkey_egg_recipe");
recipe.addIngredient(Material.HORSE_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void horseEgg() {
ShapedRecipe recipe = util.shaped(Material.HORSE_SPAWN_EGG, "horse_egg_recipe");
recipe.shape("asa","lel","ala");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SADDLE);
recipe.setIngredient('e', Material.EGG);
recipe.setIngredient('l', Material.LEATHER);
plugin.server.addRecipe(recipe);
}
private void mooshroomEgg() {
ShapedRecipe recipe = util.shaped(Material.MOOSHROOM_SPAWN_EGG, "mooshroom_egg_recipe");
recipe.shape("ara","rer","ara");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('r', Material.RED_MUSHROOM);
recipe.setIngredient('e', Material.COW_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void muleEgg() {
ShapelessRecipe recipe = util.shapeless(Material.MULE_SPAWN_EGG, "mule_egg_recipe");
recipe.addIngredient(2, Material.CHEST);
recipe.addIngredient(1, Material.HORSE_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void ocelotEgg() {
ShapedRecipe recipe = util.shaped(Material.OCELOT_SPAWN_EGG, "ocelot_egg_recipe");
recipe.shape("aca","ses","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.COCOA_BEANS);
recipe.setIngredient('s', Material.SALMON);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void parrotEgg() {
ShapedRecipe recipe = util.shaped(Material.PARROT_SPAWN_EGG, "parrot_egg_recipe");
recipe.shape("asa","fef","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.WHEAT_SEEDS);
recipe.setIngredient('f', Material.FEATHER);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void pigEgg() {
ShapedRecipe recipe = util.shaped(Material.PIG_SPAWN_EGG, "pig_egg_recipe");
recipe.shape("aca","cec","aca");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('c', Material.PORKCHOP);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void pufferfishEgg() {
ShapedRecipe recipe = util.shaped(Material.PUFFERFISH_SPAWN_EGG, "pufferfish_egg_recipe");
recipe.shape("apa","pep","apa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('p', Material.PUFFERFISH);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void rabbitEgg() {
ShapedRecipe recipe = util.shaped(Material.RABBIT_SPAWN_EGG, "rabbit_egg_recipe");
recipe.shape("aha","heh","afa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('h', Material.RABBIT_HIDE);
recipe.setIngredient('e', Material.EGG);
recipe.setIngredient('f', Material.RABBIT_FOOT);
plugin.server.addRecipe(recipe);
}
private void salmonEgg() {
ShapedRecipe recipe = util.shaped(Material.SALMON_SPAWN_EGG, "salmon_egg_recipe");
recipe.shape("asa","ses","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SALMON);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void sheepEgg() {
ShapedRecipe recipe = util.shaped(Material.SHEEP_SPAWN_EGG, "sheep_egg_recipe");
recipe.shape("awa","mem","awa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('w', Material.WHITE_WOOL);
recipe.setIngredient('m', Material.MUTTON);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void sHorseEgg() {
ShapelessRecipe recipe = util.shapeless(Material.ZOMBIE_HORSE_SPAWN_EGG, "z_horse_egg_recipe");
recipe.addIngredient(2, Material.SKELETON_SPAWN_EGG);
recipe.addIngredient(1, Material.HORSE_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void squidEgg() {
ShapedRecipe recipe = util.shaped(Material.SQUID_SPAWN_EGG, "squid_egg_recipe");
recipe.shape("aia","iei","aia");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('i', Material.INK_SAC);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void tropicalFishEgg() {
ShapelessRecipe recipe = util.shapeless(Material.TROPICAL_FISH_SPAWN_EGG, "t_fish_egg_recipe");
recipe.addIngredient(1, Material.COD);
recipe.addIngredient(1, Material.EGG);
recipe.addIngredient(1, Material.PUFFERFISH);
recipe.addIngredient(1, Material.SALMON);
recipe.addIngredient(1, Material.TROPICAL_FISH);
plugin.server.addRecipe(recipe);
}
private void traderLlamaEgg() {
ShapelessRecipe recipe = util.shapeless(Material.TRADER_LLAMA_SPAWN_EGG, "t_llama_egg_recipe");
recipe.addIngredient(1, Material.LLAMA_SPAWN_EGG);
recipe.addIngredient(1, Material.WANDERING_TRADER_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void turtleEgg() {
ShapedRecipe recipe = util.shaped(Material.TURTLE_SPAWN_EGG, "turtle_egg_recipe");
recipe.shape("asa","ses","asa");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('s', Material.SCUTE);
recipe.setIngredient('e', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void villagerEgg() {
ShapedRecipe recipe = util.shaped(Material.VILLAGER_SPAWN_EGG, "villager_egg_recipe");
recipe.shape("aea","p*p","aea");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('e', Material.EGG);
recipe.setIngredient('p', Material.POPPY);
recipe.setIngredient('*', Material.EGG);
plugin.server.addRecipe(recipe);
}
private void traderEgg() {
ShapedRecipe recipe = util.shaped(Material.WANDERING_TRADER_SPAWN_EGG, "trader_egg_recipe");
recipe.shape("aea","e*e","aea");
recipe.setIngredient('a', Material.AIR);
recipe.setIngredient('e', Material.EMERALD);
recipe.setIngredient('*', Material.VILLAGER_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
private void zHorseEgg() {
ShapelessRecipe recipe = util.shapeless(Material.ZOMBIE_HORSE_SPAWN_EGG, "z_horse_egg_recipe");
recipe.addIngredient(1, Material.ZOMBIE_SPAWN_EGG);
recipe.addIngredient(1, Material.HORSE_SPAWN_EGG);
plugin.server.addRecipe(recipe);
}
} }

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,6 @@
name: Uncraftables
main: dev.coomware.Uncraftables
version: 1.0.0
author: CoomWare
description: Adds in crafting recipes for all uncraftable items.
api-version: 1.16

View File

@ -0,0 +1,5 @@
#Generated by Maven
#Sun Jul 12 18:27:05 CDT 2020
version=1.0.0
groupId=dev.coomware
artifactId=Uncraftables

View File

@ -0,0 +1,3 @@
dev\coomware\Uncraftables.class
dev\coomware\Craftable.class
dev\coomware\CraftingUtils.class

View File

@ -0,0 +1,3 @@
C:\Users\Nilbog\Documents\NetBeansProjects\Uncraftables\src\main\java\dev\coomware\Uncraftables.java
C:\Users\Nilbog\Documents\NetBeansProjects\Uncraftables\src\main\java\dev\coomware\CraftingUtils.java
C:\Users\Nilbog\Documents\NetBeansProjects\Uncraftables\src\main\java\dev\coomware\Craftable.java