first commit
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user