I am trying to add multiple effect to my item, I have wrote a custom potion api to make my own potion. I stored the potion's effect type into the PDC as a String, and it can only store one string, but I want a list of string so that I can add two or more effect into one potion. So I wonder if I...
With this api you can create your own custom effect very easily by implements the CustomPotionEffectType interface and register the type with CustomPotionManager#registerPotionEffectType.
There are lots of non-abstract methods in the interface as optional effect behaviors, you can override them...
I want to send my item's information to the chat channel so every player in the server can see its name and lore, but I can't understand how to use HoverEvent.ShowItem.
I am using paper-api 1.18.1-R0.1-SNAPSHOT.
getWorld().spawnEntity(). To spawn a entity, you need to specify the location and the entity type.
Use Entity#customName(), and don't forget to make the custom name visible.
@EventHandler(ignoreCancelled = true)
public void onPlayerJoin(PlayerJoinEvent event) {
Player...
check this: https://www.spigotmc.org/threads/custom-enchantments-1-13.346538/
I wrote a CustomEnchantment class to wrap the Enchantment class and a EnchantmentManager to deal with enchant table and anvil, it should be able to work...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.