> For the complete documentation index, see [llms.txt](https://glitchtechs.gitbook.io/galaxy/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://glitchtechs.gitbook.io/galaxy/starapi-spigot-paper/abilities/multishot.md).

# MultiShot

## Overview

The `MultiShot` class provides a method for a player to perform multiple arrow shots simultaneously within a Minecraft Bukkit server environment. This class enhances gameplay dynamics by allowing players to unleash a barrage of arrows with customizable attributes.

## Method

`create`

```java
public static void create(Player player, int arrowAmount, double damage, boolean isCritical)
```

Initiates a multi-shot action for the specified player, launching multiple arrows in the direction the player is facing.

## Parameters

* `player`: The player initiating the multi-shot action. This must be a valid Bukkit `Player` object.
* `arrowAmount`: The number of arrows to be fired simultaneously. This parameter determines the intensity of the multi-shot attack.
* `damage`: The amount of damage inflicted by each arrow. This value influences the effectiveness of the multi-shot attack.
* `isCritical`: A boolean flag indicating whether the arrows should be critical hits. When set to `true`, arrows have an increased chance of causing critical damage.

**Usage Example**

{% code lineNumbers="true" %}

```java
// Define the player initiating the multi-shot action
Player player = ...

// Define the number of arrows to be fired simultaneously
int arrowAmount = 5;

// Define the amount of damage inflicted by each arrow
double damage = 8.0;

// Define whether the arrows should be critical hits
boolean isCritical = true;

// Perform the multi-shot action
MultiShot.create(player, arrowAmount, damage, isCritical);
```

{% endcode %}

## Notes

* This method consumes arrows from the player's inventory to perform the multi-shot action.
* Each arrow fired inherits the specified damage and critical status parameters.
* Players must have a sufficient supply of arrows in their inventory to execute the multi-shot action successfully.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://glitchtechs.gitbook.io/galaxy/starapi-spigot-paper/abilities/multishot.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
