Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void onEnable()
- {
- ModeCheckManager.init(this);
- getCommand("debug").setExecutor(this);
- getServer().getPluginManager().registerEvents(this, this);
- ItemStack is = new ItemStack(Material.PISTON_HEAD);
- PistonHead ph = (PistonHead) is.getData();
- ph.setShort(false);;
- is.setData((MaterialData) ph);
- NamespacedKey isk = new NamespacedKey(this, "piston_head_key");
- ShapedRecipe isr = new ShapedRecipe(isk, is);
- isr.shape("...", ".D.", "...");
- isr.setIngredient('D', Material.EGG);
- Bukkit.addRecipe(isr);
- }
Add Comment
Please, Sign In to add comment