So these are some questions i want some clarification on so here are a few hopefully you can help me.
#1. Custom enchants working on everything.
I made some lored enchants wich wierdly activate regardless of bieing in the code that it needs to have the lore to activate here is the code i have at the moment:
on damage:
attacker is a player
chance of 10%
if lore of attacker's held item contains "Wither I":
apply wither 1 to victim for 10 seconds
#lore1
This will apply for everything for example your fist and stuff and i dont want that.
#2. Having a cooldown for the specific enchant.
So i wanted to make some kind of cooldown for the enchant. I am in 1.12.1 right now so that will do good.
You know the attack cooldowns that have been added in 1.9? Well my custom enchants activate on every move likewise on spam clicking i only want it to activate when it is fully charged of youre attack bar.
If anyone can help me with this it would be much appericiated.
PS: Please if you can show me how it is done in skript.
Best regards: WiebeHero
[doublepost=1505045493,1505045250][/doublepost]Oh and 1 more Question.
#3. Hiding flags and creating new ones.
So i want to have to be able to remove the when in main hand: 1.6 attack speed 4 attack damage and stuff. But afterwards i did that i want to still be able to get new flags on it likely lore. Thank you for reading.
#1. Custom enchants working on everything.
I made some lored enchants wich wierdly activate regardless of bieing in the code that it needs to have the lore to activate here is the code i have at the moment:
on damage:
attacker is a player
chance of 10%
if lore of attacker's held item contains "Wither I":
apply wither 1 to victim for 10 seconds
#lore1
This will apply for everything for example your fist and stuff and i dont want that.
#2. Having a cooldown for the specific enchant.
So i wanted to make some kind of cooldown for the enchant. I am in 1.12.1 right now so that will do good.
You know the attack cooldowns that have been added in 1.9? Well my custom enchants activate on every move likewise on spam clicking i only want it to activate when it is fully charged of youre attack bar.
If anyone can help me with this it would be much appericiated.
PS: Please if you can show me how it is done in skript.
Best regards: WiebeHero
[doublepost=1505045493,1505045250][/doublepost]Oh and 1 more Question.
#3. Hiding flags and creating new ones.
So i want to have to be able to remove the when in main hand: 1.6 attack speed 4 attack damage and stuff. But afterwards i did that i want to still be able to get new flags on it likely lore. Thank you for reading.