⭐
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

Implosion

Creates a fake explosion in x radius with x amount of damage

Overview

The Implosion class provides functionality for creating implosion effects in a specified radius from a central location within a Minecraft Bukkit server environment. This class is particularly useful for creating dynamic gameplay elements and environmental interactions.

Method

create

public static void create(Location center, double radius, double damage)

Creates an implosion effect at the specified center location, inflicting damage on nearby living entities and generating an explosion at the center point.

Parameters

  • center: The central location around which the implosion will occur. This must be a valid Bukkit Location object.

  • radius: The radius within which entities will be affected by the implosion. This parameter defines the extent of the implosion's impact.

  • damage: The amount of damage inflicted on entities within the implosion radius. This value determines the intensity of the implosion's effect.

Usage Example

// Define the central location for the implosion
Location center = new Location(world, x, y, z);

// Define the radius of the implosion effect
double radius = 5.0;

// Define the amount of damage inflicted by the implosion
double damage = 10.0;

// Create the implosion effect
Implosion.create(center, radius, damage);

Notes

  • This method targets living entities within the specified radius, excluding players.

  • The implosion effect generates a localized explosion at the center point, providing additional environmental interaction.

PreviousTransmitionNextMultiShot

Last updated 1 year ago

🌟
📂
🤯