Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. package ironcraft.net;
  2.  
  3. import org.bukkit.Material;
  4. import org.bukkit.inventory.ItemStack;
  5. import org.bukkit.inventory.Recipe;
  6. import org.bukkit.inventory.ShapedRecipe;
  7. import org.bukkit.plugin.java.JavaPlugin;
  8.  
  9. public class Gold extends JavaPlugin {
  10.  
  11.     public void onEnable() {
  12.    
  13.     ItemStack apple = new ItemStack(Material.DIAMOND_BLOCK);
  14.    
  15.  
  16.             @SuppressWarnings("deprecation")
  17.             ShapedRecipe apple2 = new ShapedRecipe(apple);
  18.    
  19.             apple2.shape("***","*%*","***");
  20.    
  21.                 apple2.setIngredient('%', Material.IRON_BLOCK);
  22.                 apple2.setIngredient('*', Material.GOLD_BLOCK);
  23.                 getServer().addRecipe((Recipe) apple);
  24.                
  25.     }
  26.  
  27.     public void onDisable() {
  28.    
  29.     }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement