Helmet Effect wont work

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the community!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

DPPPPP

Member
Jul 22, 2023
27
0
1
on armor change:
if event-item is netherite helmet named "&2Life-Infused &aPeridot Helmet &5T3":
while player is wearing netherite helmet named "&2Life-Infused &aPeridot Helmet &5T3":
apply regeneration to player for 5 seconds
wait 5 seconds
Thats my code and it wont give me regen when i wear the helm. yes i have checked if the helmet is exact and no it still doesent work please hep me
 
Well, you can try this, works for me.
Code:
on armor change:
  if event-item is netherite helmet named "&2Life-Infused &aPeridot Helmet &5T3":
    apply regeneration 1 to player for 5 seconds
I hope its what you wanted.
 
still doesent effect wirg regeneration
maybe you could try
execute console command "/effect give %event-player% regeneration infinite"
and then have an else statement and then
execute console command "/effect clear %event-player%"