#Can someone help me with a custom enchant (armor) for skript?

1 messages · Page 1 of 1 (latest)

fallen jay
#

on player armor change: if event-item contains "&bResistance I": apply resistance 3 to player for 99 days else if player's tool's lore doesn't contain "&bResistance I": if player has potion effect resistance: execute console command "effect clear %player% resistance"

So, in this example, you will get resistance 3 if you have the lore "&bResistance I" on your item

But, in this skript, it doesn't work , I believe is only because of event-item. Can someone help me with this?

abstract niche
#

whats the name of the tool ment to be?

#

is it &bResistance I

fallen jay
#

no it was just a normal tool

#

and if u have a lore

fallen jay
#

it will give u resistance

#

when u equip an armor with that lore

abstract niche
#

event items lore?

fallen jay
#

ye

#

idk what to change it to

#

like armor-item or smth

main heron
#

if line x of [item]'s lore contains "stuff":

fallen jay
#

ty

main heron
#

also you can clear effects with skript, no need for console comamnd

fallen jay
#

im so fkn dumb

#

lmfao