hexle-at / ItemEffects

ItemEffects: Add (potion) effects to any item.
https://www.spigotmc.org/resources/item-effects.91208/
MIT License
2 stars 0 forks source link

Suggestion to trigger effects only when equipped with multiple #14

Open mc-yuu2132 opened 1 year ago

mc-yuu2132 commented 1 year ago

Hello! Thank you for the nice plugin. I noticed that in this plugin, if you need to possess multiple items to get the effect, it is impossible to create. So I want the effect to be available only when, for example, item A and item B are in the inventory, or when both helmet A and leggings B are equipped. I look forward to your additions! tnx

Pianist20005 commented 1 year ago

Hey, thanks we really appreciate that!

Are u talking about armor items only? e.g.: helmet, chestplate, leggings and boots Or do you want other items, to have this "ability" too? Like a bread and a carrot. (just an example)

mc-yuu2132 commented 1 year ago

thanks for the reply! What i'm thinking of using now is for equipment items only. Although, I am convinced that if it could be done with items (like a bread and a carrot.), it would be more interesting to use

Pianist20005 commented 1 year ago

Okay for armor items we already have an inbuilt system for that: /itemeffecter armor

A gui will open and u can select the armor and the effects. On the left side (i think) you can switch between "all pieces on its own" and "whole armor only" or something like that.

For other items its not quite easy because of the following aspects:

Then there also have to run a lot of extra checks, which is not quite performance friendly. But i might think over ur suggestion again. Maybe i am going to find a good solution for that!