So little old me again guys XD.
I have been practicing a bit with lore and its been going great buuut something happend. (Of course)
When the sun rise all the mobs around me started gaining wither 1 and fake explosions of damage while i wasnt doing anytrhing nor hitting them with the item that contains the lore.
Infact whilst im doing this it just keeps applying the mobs with the wither 1 effect whilst the sword doesnt even have the specific lore! so here is the code right now.
on damage:
chance of 10%
if lore of attacker's held item contains "Wither I":
apply wither 1 to victim for 10 seconds
on damage:
chance of 100%
if lore of attacker's held item contains "Heavy Hand I":
create fake explosion at location of victim
remove damage/100 to victim's health
Best regards: WiebeHero
I have been practicing a bit with lore and its been going great buuut something happend. (Of course)
When the sun rise all the mobs around me started gaining wither 1 and fake explosions of damage while i wasnt doing anytrhing nor hitting them with the item that contains the lore.
Infact whilst im doing this it just keeps applying the mobs with the wither 1 effect whilst the sword doesnt even have the specific lore! so here is the code right now.
on damage:
chance of 10%
if lore of attacker's held item contains "Wither I":
apply wither 1 to victim for 10 seconds
on damage:
chance of 100%
if lore of attacker's held item contains "Heavy Hand I":
create fake explosion at location of victim
remove damage/100 to victim's health
Best regards: WiebeHero