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