Solved Check if the player is wearing armor

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

Myval

Member
May 20, 2023
3
1
3
Hello, I was looking for a script so that the script could check if the player has armor (for example, a helmet) with an effect, do you know how to do this?
upload_2023-5-21_0-27-58.png
 
  • Like
Reactions: Milosauce
by effect, do you mean an enchant?
[doublepost=1684641928,1684637315][/doublepost]if you do then here's a command
Code:
command /helmet <player=%player%>:
    trigger:
        if arg-1 is not set:
            log "get off of console dummy"
        else if arg-1 is wearing a helmet:
            if helmet of arg-1 is enchanted:
                send "%arg-1% is wearing a helmet with %the enchantments of helmet of arg-1%" to the player
            else:
                send "%arg-1% is wearing an unenchanted helmet" to the player
        else:
            send "%arg-1% is not wearing a helmet" to the player
 
  • Like
Reactions: Myval