This commit is contained in:
Matt Masters
2023-02-01 10:51:32 -06:00
parent 6cab66badf
commit 0195469165
34 changed files with 1877 additions and 1125 deletions

View File

@ -0,0 +1,18 @@
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);
}
}