Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ironcraft.net;
- import org.bukkit.Material;
- import org.bukkit.inventory.ItemStack;
- import org.bukkit.inventory.Recipe;
- import org.bukkit.inventory.ShapedRecipe;
- import org.bukkit.plugin.java.JavaPlugin;
- public class Gold extends JavaPlugin {
- public void onEnable() {
- ItemStack apple = new ItemStack(Material.DIAMOND_BLOCK);
- @SuppressWarnings("deprecation")
- ShapedRecipe apple2 = new ShapedRecipe(apple);
- apple2.shape("***","*%*","***");
- apple2.setIngredient('%', Material.IRON_BLOCK);
- apple2.setIngredient('*', Material.GOLD_BLOCK);
- getServer().addRecipe((Recipe) apple);
- }
- public void onDisable() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement