mirror of
https://github.com/SimplexDevelopment/Uncraftables.git
synced 2025-07-12 11:48:34 +00:00
Update.
This commit is contained in:
18
src/main/java/io/github/paldiu/recipes/NetherWartRecipe.java
Normal file
18
src/main/java/io/github/paldiu/recipes/NetherWartRecipe.java
Normal 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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user