32 lines
801 B
Java
32 lines
801 B
Java
|
|
package de.winniepat.kingdomClashSurvival.crafting;
|
||
|
|
|
||
|
|
import org.bukkit.*;
|
||
|
|
import org.bukkit.NamespacedKey;
|
||
|
|
import org.bukkit.inventory.*;
|
||
|
|
import org.bukkit.plugin.java.JavaPlugin;
|
||
|
|
|
||
|
|
public class TridentRecipe {
|
||
|
|
|
||
|
|
public static NamespacedKey key;
|
||
|
|
|
||
|
|
public static void register(JavaPlugin plugin) {
|
||
|
|
ItemStack trident = new ItemStack(Material.TRIDENT);
|
||
|
|
|
||
|
|
key = new NamespacedKey(plugin, "trident");
|
||
|
|
ShapedRecipe recipe = new ShapedRecipe(key, trident);
|
||
|
|
|
||
|
|
recipe.shape(
|
||
|
|
" PP",
|
||
|
|
"NBP",
|
||
|
|
"BN "
|
||
|
|
);
|
||
|
|
|
||
|
|
recipe.setIngredient('P', Material.AMETHYST_SHARD);
|
||
|
|
recipe.setIngredient('B', Material.BREEZE_ROD);
|
||
|
|
recipe.setIngredient('N', Material.NAUTILUS_SHELL);
|
||
|
|
|
||
|
|
Bukkit.addRecipe(recipe);
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|