package top.penowl.quidproquo.rituals; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import top.penowl.quidproquo.Ritual; public class BatSpewRitual extends Ritual { @Override public void setup() { addIngredient(Material.WHEAT, 64); addIngredient(Material.IRON_PICKAXE, 1); addSacrifice(EntityType.CHICKEN, 1); name = "bat spew"; backfire = 0.1; description = "Summon a cauldron of bats to strike fear into your enemy."; } @Override public void execute(Player caster, Player target, Location location) { for (int i = 0; i < 20; i++) { target.getWorld().spawnEntity(target.getLocation(), EntityType.BAT); } } }