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 our 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.

Detect if entity is wearing a block

Discussion in 'Skript' started by Killerz1243, Dec 11, 2019.

  1. Killerz1243

    Killerz1243 Member

    Joined:
    Oct 31, 2019
    Messages:
    4
    Likes Received:
    0
    Code:
    Code (Text):
    1. on damage of a zombie:
    2.     if victim is wearing oak leaves:
    3.         send "help" to all players
    There was no error, however, when the zombie is wearing oak leaves on its head, then hurt, it doesn't send "help" in the chat.

    I have searched the forum and could not find anything that might help.
     
  2. Goose

    Goose Well-Known Member

    Joined:
    Nov 23, 2019
    Messages:
    184
    Likes Received:
    7
    wild guess here


    Code (Text):
    1. on damage of a zombie:
    2.     if victim is wearing oak leaves:
    3.         broadcast "help"
     
  3. Killerz1243

    Killerz1243 Member

    Joined:
    Oct 31, 2019
    Messages:
    4
    Likes Received:
    0
    "help" is still not being broadcasted tho
     
  4. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    233
    Likes Received:
    11
    Code (Skript):
    1. on damage:
    2.     if victim is a zombie:
    3.         if victim's chestplate is oak leaves:
    4.             broadcast "help"
     
  5. Vorze

    Vorze Well-Known Member

    Joined:
    Jul 10, 2017
    Messages:
    65
    Likes Received:
    2
    Code (Text):
    1. if  victim's head is oak leaves:
     
  6. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    233
    Likes Received:
    11
    Have you tested it? i think its kinda worng...
     
  7. Vorze

    Vorze Well-Known Member

    Joined:
    Jul 10, 2017
    Messages:
    65
    Likes Received:
    2
    yea is victim's head or helmet
     
  8. novastosha

    novastosha Well-Known Member

    Joined:
    Jan 11, 2019
    Messages:
    233
    Likes Received:
    11
    helmet will work but head meh....
     
  9. Vorze

    Vorze Well-Known Member

    Joined:
    Jul 10, 2017
    Messages:
    65
    Likes Received:
    2
    try it
     
Loading...