Power Projectiles

Power Projectiles

167 Downloads

How do you craft the power projectiles?

MrPlayInDirt opened this issue ยท 1 comments

commented

i cant find the crafting recipe list for the plugin
can you please send me a list

commented

Thanks for trying out the plugin!

The usage instructions are in the README: https://github.com/thehale/power-projectiles#crafting-and-use

Crafting and Use

As long as a player has gotten the Enchanter advancement, he/she can also see the recipe for all Power Projectiles. Each projectile's lore (the text below its name) contains instructions for how to use it.

I don't maintain a separate crafting list because the recipes can change. If you're comfortable with the code, you can look for the getRecipe functions to see where the current recipes are defined.

For example, here's the recipe for the Jail Arrow. The shape of the recipe corresponds to the three rows in the crafting table.

public Recipe getRecipe() {
ShapedRecipe recipe = new ShapedRecipe(
this.getRecipeKey(),
new JailArrow()
);
recipe.shape("III", "IAI", "III");
recipe.setIngredient('I', Material.IRON_BARS);
recipe.setIngredient('A', Material.ARROW);
return recipe;
}

The other type of recipe are shapeless recipes like the one for the Swap Arrow, where the specified ingredients have to be in the crafting table, but no specific order is required.

@Override
public Recipe getRecipe() {
ShapelessRecipe recipe = new ShapelessRecipe(
this.getRecipeKey(),
new SwapArrow()
);
recipe.addIngredient(2, Material.ENDER_PEARL)
.addIngredient(Material.ARROW);
return recipe;
}