⭐
StarAPI Documentation
  • ⭐API Information
    • ❔About Our API's
    • ⬇️Installing Our API
  • 🌟StarAPI (Spigot/Paper)
    • 📂Abilities
      • ⏳Transmition
      • 🤯Implosion
      • 🏹MultiShot
    • 📂Builders
      • 👕Armor Builder
      • 📊Bossbar Builder
      • ☄️Command Builder
      • ⚔️Item Builder
      • 🧟‍♂️Mob Builder
      • 💯Scoreboard Builder
      • 🔗Webhook Builder
      • 🔨Message Builder
      • 🏗️Actionbar Builder
    • 📂Files
      • 📃Create Files
      • 📁Create Folders
      • 📖Read Files
      • 🖊️Write Files
    • 📂Inventory Utilities
      • 💎Animated Items
      • 📖Book Content
      • 📔Book GUI
      • 🎞️Filler
      • 🪁Inventory Items
      • 📝Inventory Name
      • 💀Inventory Skulls
    • 📂Message Utilities
      • 🤖Auto Responses
      • 🎨Message Colors
    • 📂Recipes
      • ⚒️Crafting Recipes
      • 🧑‍🍳Furnace Recipes
    • 📂Timers
      • 🕙Active Timers
      • ❌Cancel Timers
      • 🕙Delayed Timers
      • 🕐Create Timers
    • 📂Misc
      • 💀Give Skulls
      • 📈Progress Bars
      • ⬛Block Placer
Powered by GitBook
On this page
  • Overview
  • Method
  • Parameters
  • Notes
  1. StarAPI (Spigot/Paper)
  2. Abilities

MultiShot

Fires multiple arrows that are specified and defined.

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

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

// 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);

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.

PreviousImplosionNextBuilders

Last updated 1 year ago

🌟
📂
🏹