Advertisement
Knager

Untitled

Mar 15th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. package me.knager.customrecipe;
  2.  
  3. import org.bukkit.material.*;
  4. import org.bukkit.inventory.*;
  5. import org.bukkit.plugin.java.*;
  6.  
  7. import net.minecraft.server.v1_12_R1.Material;
  8.  
  9. public class CustomRecipe extends JavaPlugin {
  10.  
  11.    
  12.    
  13.    
  14.     public void onEnable() {
  15.        
  16.     }
  17.    
  18.     ItemStack sand = new ItemStack(Material.SAND, 1);
  19.    
  20.     ShapedRecipe sand = new ShapedRecipe(gravel);
  21.    
  22.     gravel.shape("*")
  23.    
  24.     gravel.setIngredient('*', Material.SAND);
  25.    
  26.     getServer().addRecipe(gravel);
  27. }
  28.  
  29.     public void onDisable() {
  30.        
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement