Create script that allows the player to equip any piece of armor.

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

menawshh

New Member
Nov 3, 2024
9
1
3
17
Skript 2.1.2 or 2.1.1 for 1.7.10 (does not specify the version :emoji_frowning:)



I want to make a script so that when the player equips a specific piece of armor, it executes a command, and when the player removes the specific piece of armor, it executes another command. However, I think that in this version it doesn't recognize the "on inventory click" eliasing, can someone help me?
 
Does the execution needs to be immediately?

You could make a loop that runs every second, that checks the slot of the players armor and hereby be able to make it happen this way.

Would this work out?
 
Does the execution needs to be immediately?

You could make a loop that runs every second, that checks the slot of the players armor and hereby be able to make it happen this way.

Would this work out?
I'm making a naruto c server, and I wanted to do the following system: Equip, for example, a mangekyo sharingan (an eye power) That would equip and execute a specific command, and after 10 minutes, for example, the piece of armor (mangekyo sharingan) would return to the player's inventory and after some cooldown the player could activate the armor again and the armor would execute the command
 
You wouldnt be able to use a newer version of Minecraft?
No, a more current version of Minecraft doesn't run the modpack I want, if I can't do that, is there a similar way? like if I right click on the item then it would equip a desired piece of armor and execute a command
 
You could try to see if the addon sharpSK would run on your server.

Here you have armor equip and unequip events.


 
You could try to see if the addon sharpSK would run on your server.

Here you have armor equip and unequip events.


Can I specify which armor and what name it has to have to activate?
 
You could try to see if the addon sharpSK would run on your server.

Here you have armor equip and unequip events.


i tested, itens the mods not work :emoji_frowning:
 
Have you tried something like this to get the names?

Code:
command /armorinfo:
    trigger:
        if player's helmet is set:
            send "Helmet: %player's helmet%" to player
        else:
            send "Helmet: None" to player
            
        if player's chestplate is set:
            send "Chestplate: %player's chestplate%" to player
        else:
            send "Chestplate: None" to player
            
        if player's leggings is set:
            send "Leggings: %player's leggings%" to player
        else:
            send "Leggings: None" to player
            
        if player's boots is set:
            send "Boots: %player's boots%" to player
        else:
            send "Boots: None" to player

I havent tried to work with mods before :emoji_slight_smile:

But hopefully you can get the item name.

And then make a if statement with that item.
 
Have you tried something like this to get the names?

Code:
command /armorinfo:
    trigger:
        if player's helmet is set:
            send "Helmet: %player's helmet%" to player
        else:
            send "Helmet: None" to player
           
        if player's chestplate is set:
            send "Chestplate: %player's chestplate%" to player
        else:
            send "Chestplate: None" to player
           
        if player's leggings is set:
            send "Leggings: %player's leggings%" to player
        else:
            send "Leggings: None" to player
           
        if player's boots is set:
            send "Boots: %player's boots%" to player
        else:
            send "Boots: None" to player

I havent tried to work with mods before :emoji_slight_smile:

But hopefully you can get the item name.

And then make a if statement with that item.
I already did this but the skript does not recognize the name, the name is luxxynarutox itemchakra helmet
 
I will remake my script, with the script you sent me from armor info it recognizes the armor from the mod I put in, however when I make my own the armor doesn't recognize it, I'll send you a print soon.
What does it say when you run it?

Could you give a screenshot?
 
  • Like
Reactions: MrGametop1