armor potion effects help

  • 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 comminuty!

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

yoni

New Member
Jun 18, 2021
9
0
1
23
hi guys im looking a armor code for my turtle armor if someone knows how to do that when you wear "&Turtle chestplate" you get slowness and health boost and with each piece you put you get another health boost (this is what i tried:

Every 2 seconds:
Loop all players:
If loop-players is wearing diamond boots of protection 1 named "&aTurtle boots"
Apply slowness 1 and health boost 1 to loop-player for 2 seconds
 
maybe smth like this?
Code:
every 2 seconds:
  loop all players:
    if loop-players is wearing diamond helmet of protection 1 named "&aTurtle Helmet"
      add 1 to {_wearing}
    if loop-players is wearing diamond chestplate of protection 1 named "&aTurtle Chestplate"
      add 1 to {_wearing}
    if loop-players is wearing diamond leggings of protection 1 named "&aTurtle Leggings"
      add 1 to {_wearing}
    if loop-players is wearing diamond boots of protection 1 named "&aTurtle Boots"
      add 1 to {_wearing}
    if {_wearing} is set:
      apply slowness ({_wearing} / 2) and health boost {_wearing} to loop-player for 2 seconds
 
maybe smth like this?
Code:
every 2 seconds:
  loop all players:
    if loop-players is wearing diamond helmet of protection 1 named "&aTurtle Helmet"
      add 1 to {_wearing}
    if loop-players is wearing diamond chestplate of protection 1 named "&aTurtle Chestplate"
      add 1 to {_wearing}
    if loop-players is wearing diamond leggings of protection 1 named "&aTurtle Leggings"
      add 1 to {_wearing}
    if loop-players is wearing diamond boots of protection 1 named "&aTurtle Boots"
      add 1 to {_wearing}
    if {_wearing} is set:
      apply slowness ({_wearing} / 2) and health boost {_wearing} to loop-player for 2 seconds
this doesnt work for me, i get an error msg on every if loop -player is wearing cant understand condition/effect and there is no loop that matches this
 

Attachments

  • Screenshot_3.png
    Screenshot_3.png
    51.4 KB · Views: 100