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.

help make custom enchant

Discussion in 'Skript' started by ツナー, Mar 10, 2021.

Thread Status:
Not open for further replies.
  1. ツナー

    ツナー Member

    Joined:
    Dec 20, 2020
    Messages:
    16
    Likes Received:
    0
    Code (Text):
    1. on damage:
    2.     if victim is wearing an armor:
    3.         if victim's armor has custom enchantment Wolf:
    4.             if level of custom enchantment Wolf of attacker's tool is 1:
    5.                 if {cooldown.%victim%} is true:
    6.                     stop
    7.                     cancel event
    8.                 if {cooldown.%victim%} is not set:
    9.                     set {cooldown.%victim%} to false
    10.                 if {cooldown.%victim%} is false:
    11.                     set {cooldown.%victim%} to true
    12.                     spawn 3 wolf at victim's location
    13.                     wait 1 ticks
    14.                     tame the last spawned wolf to the victim
    15.                     set name of last spawned wolf to "&7%victim% Wolf"
    16.                     wait 1 ticks
    17.                     spawn 1 wolf at victim's location
    18.                     tame the last spawned wolf to the victim
    19.                     set name of last spawned wolf to "&7%victim% Wolf"
    20.                     wait 15 seconds
    21.                     kill all animals where [input's name is "&7%victim% Wolf"]
    22.                 wait 25 seconds
    23.                 set {cooldown.%victim%} to false
    24.         if victim's armor has custom enchantment Wolf:
    25.             if level of custom enchantment Wolf of attacker's tool is 2:
    26.                 if {cooldown.%victim%} is true:
    27.                     stop
    28.                     cancel event
    29.                 if {cooldown.%victim%} is not set:
    30.                     set {cooldown.%victim%} to false
    31.                 if {cooldown.%victim%} is false:
    32.                     set {cooldown.%victim%} to true
    33.                     spawn 3 wolf at victim's location
    34.                     wait 1 ticks
    35.                     tame the last spawned wolf to the victim
    36.                     set name of last spawned wolf to "&7%victim% Wolf"
    37.                     wait 1 ticks
    38.                     spawn 1 wolf at victim's location
    39.                     tame the last spawned wolf to the victim
    40.                     set name of last spawned wolf to "&7%victim% Wolf"
    41.                     wait 20 seconds
    42.                     kill all animals where [input's name is "&7%victim% Wolf"]
    43.                 wait 30 seconds
    44.                 set {cooldown.%victim%} to false
    45.         if victim's armor has custom enchantment Wolf:
    46.             if level of custom enchantment Wolf of attacker's tool is 3:
    47.                 if {cooldown.%victim%} is true:
    48.                     stop
    49.                     cancel event
    50.                 if {cooldown.%victim%} is not set:
    51.                     set {cooldown.%victim%} to false
    52.                 if {cooldown.%victim%} is false:
    53.                     set {cooldown.%victim%} to true
    54.                     spawn 5 wolf at victim's location
    55.                     wait 1 ticks
    56.                     tame the last spawned wolf to the victim
    57.                     set name of last spawned wolf to "&7%victim% Wolf"
    58.                     wait 1 ticks
    59.                     spawn 1 wolf at victim's location
    60.                     tame the last spawned wolf to the victim
    61.                     set name of last spawned wolf to "&7%victim% Wolf"
    62.                     wait 15 seconds
    63.                     kill all animals where [input's name is "&7%victim% Wolf"]
    64.                 wait 25 seconds
    65.                 set {cooldown.%victim%} to false
    [​IMG]
    Help me ;(
     
  2. Xgod2205

    Xgod2205 Member

    Joined:
    Feb 25, 2021
    Messages:
    17
    Likes Received:
    0
    I need to see line 169, 190 and 211
     
  3. ツナー

    ツナー Member

    Joined:
    Dec 20, 2020
    Messages:
    16
    Likes Received:
    0
    Code (Text):
    1. on damage:
    2.     if victim is wearing an armor:
    3.         if victim's armor has custom enchantment Wolf:
    4.             if level of custom enchantment Wolf of attacker's tool is 1:
    5.                 if {cooldown.%victim%} is true:
    6.                     stop
    7.                     cancel event
    8.                 if {cooldown.%victim%} is not set:
    9.                     set {cooldown.%victim%} to false
    10.                 if {cooldown.%victim%} is false:
    11.                     set {cooldown.%victim%} to true
    12.                     spawn 3 wolf at victim's location
    13.                     wait 1 ticks
    14.                     tame the last spawned wolf to the victim
    15.                     set name of last spawned wolf to "&7%victim% Wolf"
    16.                     wait 1 ticks
    17.                     spawn 1 wolf at victim's location
    18.                     tame the last spawned wolf to the victim
    19.                     set name of last spawned wolf to "&7%victim% Wolf"
    20.                     wait 15 seconds
    21.                     kill all animals where [input's name is "&7%victim% Wolf"]
    22.                 wait 25 seconds
    23.                 set {cooldown.%victim%} to false
    24.         if victim's armor has custom enchantment Wolf:
    25.             if level of custom enchantment Wolf of attacker's tool is 2:
    26.                 if {cooldown.%victim%} is true:
    27.                     stop
    28.                     cancel event
    29.                 if {cooldown.%victim%} is not set:
    30.                     set {cooldown.%victim%} to false
    31.                 if {cooldown.%victim%} is false:
    32.                     set {cooldown.%victim%} to true
    33.                     spawn 3 wolf at victim's location
    34.                     wait 1 ticks
    35.                     tame the last spawned wolf to the victim
    36.                     set name of last spawned wolf to "&7%victim% Wolf"
    37.                     wait 1 ticks
    38.                     spawn 1 wolf at victim's location
    39.                     tame the last spawned wolf to the victim
    40.                     set name of last spawned wolf to "&7%victim% Wolf"
    41.                     wait 20 seconds
    42.                     kill all animals where [input's name is "&7%victim% Wolf"]
    43.                 wait 30 seconds
    44.                 set {cooldown.%victim%} to false
    45.         if victim's armor has custom enchantment Wolf:
    46.             if level of custom enchantment Wolf of attacker's tool is 3:
    47.                 if {cooldown.%victim%} is true:
    48.                     stop
    49.                     cancel event
    50.                 if {cooldown.%victim%} is not set:
    51.                     set {cooldown.%victim%} to false
    52.                 if {cooldown.%victim%} is false:
    53.                     set {cooldown.%victim%} to true
    54.                     spawn 5 wolf at victim's location
    55.                     wait 1 ticks
    56.                     tame the last spawned wolf to the victim
    57.                     set name of last spawned wolf to "&7%victim% Wolf"
    58.                     wait 1 ticks
    59.                     spawn 1 wolf at victim's location
    60.                     tame the last spawned wolf to the victim
    61.                     set name of last spawned wolf to "&7%victim% Wolf"
    62.                     wait 15 seconds
    63.                     kill all animals where [input's name is "&7%victim% Wolf"]
    64.                 wait 25 seconds
    65.                 set {cooldown.%victim%} to false
    Line 3, 24, and 45 error ;(
     
  4. Xgod2205

    Xgod2205 Member

    Joined:
    Feb 25, 2021
    Messages:
    17
    Likes Received:
    0
    1. ahh i see you would have to loop the victim and see if {lore::*} contains "wolf"
     
  5. ツナー

    ツナー Member

    Joined:
    Dec 20, 2020
    Messages:
    16
    Likes Received:
    0
    can u give me an example?
     
Thread Status:
Not open for further replies.

Share This Page

Loading...