set armor with lore and enchant

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

TurkiA

Member
Jan 25, 2021
2
0
1
18
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"
[doublepost=1611598505,1611598447][/doublepost]pleas help me as fast as possible
 
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"
[doublepost=1611598505,1611598447][/doublepost]pleas help me as fast as possible
maybe with lore "{leggingsskypvp1}" ? also pgive errors please
 
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:
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}% "


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}% "
 
Status
Not open for further replies.