CbeJl Potions API icon

CbeJl Potions API -----

Create your custom potion effects!



Step 1.

Add an API dependency to your plugin.
download release and add local dependency

Code (Text):
<dependency>
   <groupId>cbejl.plugins</groupId>
   <artifactId>CbeJlPotionsAPI</artifactId>
   <version>1.1</version> <!-- Change version on what you need -->
   <scope>system</scope>
   <systemPath>${project.basedir}/src/main/resources/CbeJlPotionsAPI-1.1.jar</systemPath> <!-- Change path on what you need -->
</dependency>

Step 2.


Create class which
Code (Text):
CustomEffectType.class
implementation and implement all abstract methods.

example

Step 3.

After create your own effect type, simply register the type using the
Code (Text):
CustomEffectManager.registerPotionEffectType(CustomPotionEffectType type)
If you want to get a potion item with your custom effect, you can call the
Code (Text):
CustomEffectManager.getPotion(org.bukkit.NamespacedKey, CustomEffectProperties properties)
method.

If you want to get a tipped arrow with your custom effect, you can call the
Code (Text):
CustomEffectManager.getTippedArrow(org.bukkit.NamespacedKey, CustomEffectProperties properties)
method.

Step 4. PROFIT!
Resource Information
Author:
----------
Total Downloads: 28
First Release: Nov 30, 2024
Last Update: Dec 1, 2024
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings