InvEffects icon

InvEffects -----

Potion effects from items in inventory, hand, hotbar, etc



the invEffect plugin aims to add the ability to make items give
a player potion effects from anywhere within their inventory

it features a controllable refresh period for potion effects, the ability to specify what part of inventory the items have to be in per effect per item (so you can have an item that in the hand give speed and in the off-hand resistance)


it has 4 commands:

/invEffects set [inv/hotbar/hand/offhand/Armor] [effect] [power] - applies the effect to the item in your hand

/invEffects list - lists the effects on the item in your hand

/invEffects remove [inv/hotbar/hand/offhand/Armor] [effect] - removes the effect from the item

/invEffects clear - removes all the effects on the item in your hand

inv/hotbar/hand/offhand/armor specifies where the item has to be in order for the effect to activate

inv: inventory
hotbar: the hotbar (the bottom 9 slots)
hand: in the players hand
offhand: the offhand slot (the other hand)
armor: in one of the players armor slots

it has a single permission to allow all these commands

InvEffects.use

it works by writing metadata to the items,

so if you don’t want to use the commands

you could add this metadata to an item

PublicBukkitValues:{“inveffects:InvEffects”:“speed,0”}

all the effects are comma separated so if you wanted to do 2 effects you would do

PublicBukkitValues:{“inveffects:inveffects”:“speed,0,regeneration,0”}

an effect value of speed,0 corresponds to the effect Speed I

and a value of speed,1 would give you Speed II

there is a corresponding tag for each set of spaces in your inventory


inv: “inveffects:inveffects”
hotbar: “inveffects:hotbareffects”
hand: “inveffects:handeffects”
offhand: “inveffects: offhandeffects”
armor: “inveffects:armoreffects”


if you have any thoughts or questions be sure to let me know, this is my first plugin (but definitely not my first time coding)
Resource Information
Author:
----------
Total Downloads: 473
First Release: Oct 24, 2021
Last Update: Oct 24, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings