Files
Uncraftables/src/main/java/io/github/paldiu/recipes/NetherWartRecipe.java
Matt Masters 0195469165 Update.
2023-02-01 10:51:32 -06:00

19 lines
591 B
Java

package io.github.paldiu.recipes;
import io.github.paldiu.Uncraftables;
import org.bukkit.Material;
import org.bukkit.inventory.ShapelessRecipe;
public class NetherWartRecipe extends Craftable {
public NetherWartRecipe(Uncraftables plugin) {
super(plugin);
if (!getConfigValues().netherWartEnabled()) return;
ShapelessRecipe recipe = getUtil().shapeless(Material.NETHER_WART, "netherwart_recipe");
recipe.addIngredient(1, Material.NETHER_WART_BLOCK);
recipe.getResult().setAmount(9);
getPlugin().getServer().addRecipe(recipe);
}
}