🤯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.

Last updated