How would i go about this

Discussion in 'Plugin Development' started by zombieman1000, Apr 29, 2013.

Thread Status:
Not open for further replies.
  1. Offline

    zombieman1000

    Well im thinking of making a plugin that makes a recipe for sponge. Never made a recipe plugin before so no idea. this is what i want to recipe to be ( w= string s= sapling)

    www
    wsw
    www
     
  2. Offline

    Minnymin3

    Code:
    public Recipe recipe() {
    ItemStack sponge = new ItemStack(Material.SPONGE);
     
    ShapedRecipe recipe = new ShapedRecipe(sponge);
    recipe.shape(" BBB ", "BAB", " BBB ");
    recipe.setIngredient('B', Material.STRING);
    recipe.setIngredient('A', Material.SAPLING);
    return recipe;
    }
    
    Then put getServer().addRecipe(recipe()) in your onEnable
     
Thread Status:
Not open for further replies.

Share This Page