Guest User

Untitled

a guest
Jun 15th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public void onEnable()
  2. {
  3. ModeCheckManager.init(this);
  4. getCommand("debug").setExecutor(this);
  5. getServer().getPluginManager().registerEvents(this, this);
  6. ItemStack is = new ItemStack(Material.PISTON_HEAD);
  7. PistonHead ph = (PistonHead) is.getData();
  8. ph.setShort(false);;
  9. is.setData((MaterialData) ph);
  10. NamespacedKey isk = new NamespacedKey(this, "piston_head_key");
  11. ShapedRecipe isr = new ShapedRecipe(isk, is);
  12.  
  13. isr.shape("...", ".D.", "...");
  14. isr.setIngredient('D', Material.EGG);
  15.  
  16. Bukkit.addRecipe(isr);
  17. }
Add Comment
Please, Sign In to add comment