Solved Give a player chain armour?

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

    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.

iStopcontact

Member
Feb 18, 2017
115
2
18
I have a little thing that i dont know how to solve it.
Made my own kit system and i want to give player a chain chestplate, but it wont work.
I allready tried chainmail but it still doesnt work.
Does anybody know how i can fix it?
My skript:
code_language.skript:
        if arg 1 is "default":
            send "{@PVP} &a&lDefault &7kit selected" to arg 2
            clear arg 2's inventory
            play raw sound "note.pling" at arg 2 with pitch 1 volume 0.1
            give 1 stone sword of unbreaking 1, sharpness 1 to arg 2
            give 1 bow of unbreaking 1 to arg 2
            give 8 arrow to arg 2
            equip arg 2 with iron Helmet of unbreaking 1
            equip arg 2 with chainmail ChestPlate of unreaking 1
            equip arg 2 with leather Leggings of unbreaking 1
            equip arg 2 with leather Boots of unbreaking 1
 
code_language.skript:
equip arg 2 with chainmail ChestPlate of unreaking 1
You have written unbreaking false.


code_language.skript:
equip arg 2 with chain ChestPlate of unbreaking 1
 
code_language.skript:
equip arg 2 with chainmail ChestPlate of unreaking 1
You have written unbreaking false.


code_language.skript:
equip arg 2 with chain ChestPlate of unbreaking 1
I see... Im such a noob xd
I like watch at it for like 1 hour and didnt notice it
Well ty <3
 
Tip:
The equip and give (aka add) effect has support for multiple objects at the same time, which let you to do the following:
code_language.skript:
add 1 stone, 1 bow and 8 arrows to the player
And:
code_language.skript:
equip player with iron helmet, chainmail chestplate, leather leggings and leather boots
 
Status
Not open for further replies.