Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package shards;
- import org.bukkit.DyeColor;
- import org.bukkit.Material;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.ShapedRecipe;
- import org.bukkit.plugin.Plugin;
- import menus.Items;
- public class Recipes {
- private Plugin plugin = Main.getPlugin(Main.class);
- private Items items = new Items();
- public ShapedRecipe boostedrecipe = new ShapedRecipe(items.boostedsword);
- public ShapedRecipe lacrecipe = new ShapedRecipe(items.lacerator);
- public ShapedRecipe butcherrecipe = new ShapedRecipe(items.butcheraxe);
- public ShapedRecipe lumberrecipe = new ShapedRecipe(items.lumberjackaxe);
- public ShapedRecipe obsidianrecipe = new ShapedRecipe(items.obsidianbreaker);
- public ShapedRecipe explosiverecipe = new ShapedRecipe(items.explosivepickaxe);
- @SuppressWarnings("deprecation")
- public void customRecipe() {
- boostedrecipe.shape(" s ", " s ", " b ");
- boostedrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
- boostedrecipe.setIngredient('b', Material.BLAZE_ROD);
- lacrecipe.shape(" b ", " b ", " s ");
- lacrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
- lacrecipe.setIngredient('b', Material.BLAZE_ROD);
- butcherrecipe.shape("xss", "xbs", "xbx");
- butcherrecipe.setIngredient('x', Material.AIR);
- butcherrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
- butcherrecipe.setIngredient('b', Material.BLAZE_ROD);
- lumberrecipe.shape("sss", " bs", " b ");
- lumberrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
- lumberrecipe.setIngredient('b', Material.BLAZE_ROD);
- obsidianrecipe.shape("sss", " b ", " b ");
- obsidianrecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
- obsidianrecipe.setIngredient('b', Material.BLAZE_ROD);
- explosiverecipe.shape("sss", "sbs", " b ");
- explosiverecipe.setIngredient('s', Material.INK_SACK, DyeColor.BROWN.getData());
- explosiverecipe.setIngredient('b', Material.BLAZE_ROD);
- plugin.getServer().addRecipe(boostedrecipe);
- plugin.getServer().addRecipe(lacrecipe);
- plugin.getServer().addRecipe(butcherrecipe);
- plugin.getServer().addRecipe(lumberrecipe);
- plugin.getServer().addRecipe(obsidianrecipe);
- plugin.getServer().addRecipe(explosiverecipe);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement