Solved how do i make a if armour slot?

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

Yeet

Member
Nov 16, 2020
4
1
3
28
My code is as follows:
on inventory click:
if
(the clicked slot is a amour slot):

But I'm not sure how to code it to only happen if the amour slot is
equipped.

I'm running Skript 2.5.1
minecraft version is 1.16.4
 
Last edited:
My code is as follows:
on inventory click:
if
(the clicked slot is a amour slot):

But I'm not sure how to code it to only happen if the amour slot is
equipped.

I'm running Skript 2.5.1
minecraft version is 1.16.4

Hi @Yeet,
you can use these syntaxes:

Code:
sharpsk on armour equip:
    if event-item is <helmet/chestplate/leggins/boots>:

sharpsk on armour unequip:
    if event-item is <helmet/chestplate/leggins/boots>:

Please, use SharpSk addon for the syntax to work!

If this helps you, please give a rep and rate this reply :emoji_slight_smile:
 
Last edited:
Hi @Yeet,
you can use these syntaxes:

Code:
sharpsk on armour equip:
    if event-item is <helmet/chestplate/leggins/boots>:

sharpsk on armour unequip:
    if event-item is <helmet/chestplate/leggins/boots>:

Please, use SharpSk addon for the syntax to work!

If this helps you, please give a rep and rate this reply :emoji_slight_smile:
Thanks for the response, it's been a great help however, when i run my script it says:
[Server thread/ERROR]: Can't compare an item stack with '<helmet/chestplate/leggings/boots>' (welcome.sk, line 41: if event-item is <helmet/chestplate/leggings/boots>:')
 
Status
Not open for further replies.