Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package me.insideintel.Utils.UtilityClasses;
- import me.insideintel.Utils.ItemBuilder;
- import net.minecraft.server.v1_13_R2.ShapedRecipes;
- import org.bukkit.Bukkit;
- import org.bukkit.Material;
- import org.bukkit.enchantments.Enchantment;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.ShapedRecipe;
- public class Util_Crafting {
- public Util_Crafting(){}
- public void allRecipes() {
- recipeEfficiency();
- recipeFortune();
- recipePower();
- recipePunch();
- recipeSharpness();
- }
- public void recipeSharpness() {
- ItemStack sharpness = new ItemStack(Material.ENCHANTED_BOOK);
- sharpness.addEnchantment(Enchantment.DAMAGE_ALL, 1);
- ShapedRecipe recipe = new ShapedRecipe(sharpness);
- recipe.shape("IAA", "APP", "APT");
- recipe.setIngredient('I', Material.IRON_INGOT);
- recipe.setIngredient('A', Material.AIR);
- recipe.setIngredient('P', Material.PAPER);
- recipe.setIngredient('T', Material.IRON_SWORD);
- Bukkit.getServer().addRecipe(recipe);
- }
- public void recipeFortune(){
- ItemStack fortune = new ItemStack(Material.ENCHANTED_BOOK);
- fortune.addEnchantment(Enchantment.LOOT_BONUS_BLOCKS, 1);
- ShapedRecipe recipe = new ShapedRecipe(fortune);
- recipe.shape("IAA", "APP", "APT");
- recipe.setIngredient('I', Material.IRON_INGOT);
- recipe.setIngredient('A', Material.AIR);
- recipe.setIngredient('P', Material.PAPER);
- recipe.setIngredient('T', Material.IRON_PICKAXE);
- Bukkit.getServer().addRecipe(recipe);
- }
- public void recipeEfficiency(){
- ItemStack efficiency = new ItemStack(Material.ENCHANTED_BOOK);
- efficiency.addEnchantment(Enchantment.DIG_SPEED, 1);
- ShapedRecipe recipe = new ShapedRecipe(efficiency);
- recipe.shape("IAA", "APP", "APT");
- recipe.setIngredient('I', Material.IRON_INGOT);
- recipe.setIngredient('A', Material.AIR);
- recipe.setIngredient('P', Material.PAPER);
- recipe.setIngredient('T', Material.STONE_PICKAXE);
- Bukkit.getServer().addRecipe(recipe);
- }
- public void recipePower(){
- ItemStack power = new ItemStack(Material.ENCHANTED_BOOK);
- power.addEnchantment(Enchantment.ARROW_DAMAGE, 1);
- ShapedRecipe recipe = new ShapedRecipe(power);
- recipe.shape("IAA", "APP", "APT");
- recipe.setIngredient('I', Material.IRON_INGOT);
- recipe.setIngredient('A', Material.AIR);
- recipe.setIngredient('P', Material.PAPER);
- recipe.setIngredient('T', Material.BOW);
- Bukkit.getServer().addRecipe(recipe);
- }
- public void recipePunch(){
- ItemStack punch = new ItemStack(Material.ENCHANTED_BOOK);
- punch.addEnchantment(Enchantment.ARROW_KNOCKBACK, 1);
- ShapedRecipe recipe = new ShapedRecipe(punch);
- recipe.shape("IAA", "APP", "APT");
- recipe.setIngredient('I', Material.IRON_INGOT);
- recipe.setIngredient('A', Material.AIR);
- recipe.setIngredient('P', Material.PAPER);
- recipe.setIngredient('T', Material.ARROW);
- Bukkit.getServer().addRecipe(recipe);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement