mirror of
https://github.com/SimplexDevelopment/Uncraftables.git
synced 2025-07-06 10:46:42 +00:00
Update.
This commit is contained in:
22
src/main/java/io/github/paldiu/recipes/TotemRecipe.java
Normal file
22
src/main/java/io/github/paldiu/recipes/TotemRecipe.java
Normal file
@ -0,0 +1,22 @@
|
||||
package io.github.paldiu.recipes;
|
||||
|
||||
import io.github.paldiu.Uncraftables;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.inventory.ShapedRecipe;
|
||||
|
||||
public class TotemRecipe extends Craftable {
|
||||
public TotemRecipe(Uncraftables plugin) {
|
||||
super(plugin);
|
||||
|
||||
if (!getConfigValues().totemEnabled()) return;
|
||||
|
||||
ShapedRecipe recipe = getUtil().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);
|
||||
getPlugin().getServer().addRecipe(recipe);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user