1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Anti Naked Kill Skript

Discussion in 'Skript' started by epicgamerjudy, Nov 28, 2021.

Tags:
  1. epicgamerjudy

    epicgamerjudy Member

    Joined:
    Nov 28, 2021
    Messages:
    1
    Likes Received:
    0
    so a skript i have disables people being able to hurt players without armor. but i want the player to be able to hurt the naked player if the naked player hit them.

    this is what i have so far. please help!

    Code (Text):
    1. on damage:
    2.     if victim is not wearing an netherite helmet or diamond helmet or iron helmet or chainmail helmet or gold helmet:
    3.         cancel event
    4.     if victim is not wearing an netherite chestplate or diamond chestplate or iron chestplate or chainmail chestplate or gold chestplate:
    5.         cancel event
    6.     if victim is not wearing an netherite leggings or diamond leggings or iron leggings or chainmail leggings or gold leggings:
    7.         cancel event
    8.     if victim is not wearing an netherite boots or diamond boots or iron boots or chainmail boots or gold boots:
    9.         cancel event
     
  2. oHeckGage

    oHeckGage Active Member

    Joined:
    Mar 24, 2020
    Messages:
    105
    Likes Received:
    4
    you could just check their armor value and if it's none then theyre not wearing any armor
    Code (Text):
    1.  
    2. on damage:
    3.     if victim's armor value is 0:
    4.         cancel event
    5.  
     

Share This Page

Loading...