Skip to content

Maaxxxii/RecipeBuilder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RecipeBuilder

How to Use

1- Copy and paste RecipeBuilder.java

2- Create your recipe. Example:

//First paremeter is main plugin class, second is NameSpaceKey and last is resut
ShapedRecipe recipe = new RepiceBuilder(this, "test", new ItemStack(Material.NETHER_STAR))
            //First paremeter item and secon is column
            .addIngredientsToColumn(Material.DIRT, 1)
            .build();

3- Add recipe to server in OnEnable. Example:

    @Override
    public void onEnable() {
        ShapedRecipe recipe = new RepiceBuilder(this, "test", new ItemStack(Material.NETHER_STAR))
            .addIngredientsToColumn(Material.DIRT, 1)
            .build();
            
        getServer().addRecipe(recipe);
    }

Example Output

This is an image

Other Examples

ShapedRecipe recipe = new RepiceBuilder(this, "test", new ItemStack(Material.NETHER_STAR))
            .addIngredient(Material.DIRT, 1)
            .build();
ShapedRecipe recipe = new RepiceBuilder(this, "test", new ItemStack(Material.NETHER_STAR))
            .addIngredientsToRow(Material.DIRT, 1)
            .build();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%