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.

set armor with lore and enchant

Discussion in 'Skript' started by TurkiA, Jan 25, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. TurkiA

    TurkiA Member

    Joined:
    Jan 25, 2021
    Messages:
    2
    Likes Received:
    0
    so i'm trying to do game named skypvp
    and if you write /skypvp it teleports u to the world and give you the kit
    but i have a problem with the kit only in the armor
    so i want a core that gives you a helmet or any armor with a lore and an enchant on it
    here is the code i made








    command /skypvp:
    trigger:
    send "&b&lSky&4&lPvP &a┃ Welcome "
    send "&e&lEnjoy!"
    teleport player to {lobby.xskypvpx}
    set player's gamemode to survival
    send "&b&lSky&4&lPvP &8&l» &d&lYou Are Now In the game."
    heal player
    clear player's inventory

    give stone sword of sharpness 1 named "&6Sword" to player

    give bow named "&6Bow" to player

    give 32 arrow named "&6Arrows" to player
    set player's helmet to to iron helmet of protection 1 with lore {_helmetskypvp1}
    set player's chestplate to to chain chestplate with lore {_chestplateskypvp1}
    set player's leggings to to chain leggings with lore {_leggingsskypvp1}
    set player's boots to iron boots of protection 1 with lore {_bootsskypvp1}
    command /setskypvp:
    permission: skypvp.set
    permission message: &cNot your work.
    trigger:
    set {lobby.xskypvpx} to location of player
    send "&b&lSky&4&lPvP &8» &aSuccessfuly Set spawn."
    set {_helmetskypvp1} to iron helmet of protection 1 named "&9Armor"
    set line 1 of lore of {_helmetskypvp} to "&9cannot be dropped"
    set {_chestplateskypvp1} to chain chestplate named "9Armor"
    set line 1 of lore of {_chestplateskypvp1} to "&9cannot be dropped"
    set {_leggingsskypvp1} to iron leggings named "&9Armor"
    set line 1 of lore of {_leggingsskypvp1} to "&9cannot be dropped"
    set {_bootsskypvp1} to iron boots of protection 1 named "&9Armor"
    set line 1 of lore of {_bootsskypvp1} to "&9cannot be dropped"
    on death:
    if player is in world "xskypvpx":
    teleport player to {lobby.xskypvpx}
    attacker is a player
    apply potion of speed of tier 2 to player for 10 seconds
    give attacker 2 gold ingot
    heal attacker
    clear drops

    on respawn:
    if player is in world "xskypvpx":
    wait 1 tick
    teleport player to {lobby.xskypvpx}
    set player's gamemode to survival
    heal player
    clear player's inventory

    give stone sword of sharpness 1 named "&6Sword" to player

    give bow named "&6Bow" to player

    give 32 arrow named "&6Arrows" to player
    set player's helmet to to iron helmet of protection 1 with lore {_helmetskypvp1}
    set player's chestplate to to chain chestplate with lore {_chestplateskypvp1}
    set player's leggings to to chain leggings with lore {_leggingsskypvp1}
    set player's boots to iron boots of protection 1 with lore {_bootsskypvp1}
    on drop:
    world is "xskypvpx"
    event-item is a helmet named "&9Armor":
    if line 1 of lore of event-item is "&9cannot be dropped":
    cancel event
    send "&c you can't drop an item from your kit"
    event-item is a chestplate named "&9Armor":
    if line 1 of lore of event-item is "&9cannot be dropped":
    cancel event
    send "&c you can't drop an item from your kit"
    event-item is a leggings named "&9Armor":
    if line 1 of lore of event-item is "&9cannot be dropped":
    cancel event
    send "&c you can't drop an item from your kit"
    event-item is a boots named "&9Armor":
    if line 1 of lore of event-item is "&9cannot be dropped":
    cancel event
    send "&c you can't drop an item from your kit"
    --- Double Post Merged, Jan 25, 2021, Original Post Date: Jan 25, 2021 ---
    pleas help me as fast as possible
     
  2. FireRoz

    FireRoz Active Member

    Joined:
    May 28, 2020
    Messages:
    134
    Likes Received:
    6
    maybe with lore "{leggingsskypvp1}" ? also pgive errors please
     
  3. Dogloverblue17

    Joined:
    Sep 2, 2020
    Messages:
    28
    Likes Received:
    1
    This should work, and for future, PLEASE put your code in a code insert, its super annoying when you dont, but here

    Also, i made very little changes, i just did "%{_helmetskypvp1}% " instead of just {_helmetskypvp1}. This Should Work Hopefully
    Code (Text):
    1. command /skypvp:
    2.   trigger:
    3.     send "&b&lSky&4&lPvP &a┃ Welcome "
    4.     send "&e&lEnjoy!"
    5.     teleport player to {lobby.xskypvpx}
    6.     set player's gamemode to survival
    7.     send "&b&lSky&4&lPvP &8&l» &d&lYou Are Now In the game."
    8.     heal player
    9.     clear player's inventory
    10.     give stone sword of sharpness 1 named "&6Sword" to player
    11.     give bow named "&6Bow" to player
    12.     give 32 arrow named "&6Arrows" to player
    13.     set player's helmet to to iron helmet of protection 1 with lore "%{_helmetskypvp1}% "
    14.     set player's chestplate to to chain chestplate with lore "%{_chestplateskypvp1}% "
    15.     set player's leggings to to chain leggings with lore "%{_leggingsskypvp1}% "
    16.     set player's boots to iron boots of protection 1 with lore "%{_bootsskypvp1}% "
    17.  
    18.  
    19. on respawn:
    20.   if player is in world "xskypvpx":
    21.     wait 1 tick
    22.     teleport player to {lobby.xskypvpx}
    23.     set player's gamemode to survival
    24.     heal player
    25.     clear player's inventory
    26.  
    27.     give stone sword of sharpness 1 named "&6Sword" to player
    28.  
    29.     give bow named "&6Bow" to player
    30.  
    31.     give 32 arrow named "&6Arrows" to player
    32.     set player's helmet to to iron helmet of protection 1 with lore "%{_helmetskypvp1}% "
    33.     set player's chestplate to to chain chestplate with lore "%{_chestplateskypvp1}% "
    34.     set player's leggings to to chain leggings with lore "%{_leggingsskypvp1}% "
    35.     set player's boots to iron boots of protection 1 with lore "%{_bootsskypvp1}% "
    36.  
     
Thread Status:
Not open for further replies.

Share This Page

Loading...