Bind a command to armor stand.

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

glowgrew

Active Member
Jan 26, 2017
99
7
0
Perm, Russia
Hello. How to bind a command to invisible armor stand?
code_language.skript:
on right-click on armor stand:
But, it's applying to all armor stands. I don't need it. ik this is possible.
 
maybe try to add special nbt tags like a unique name or a uuid to the armorstand and then use it to detect which one is clicked
 
code_language.skript:
on right click on armor stand:
    if clicked block's location is {loc}: #or it might be event-entity i dont remember
        #stuff
 
Last edited by a moderator:
Just check if the armor stand is invisible, you can do it with Skellett, Skript-Mirror or skStuff.
code_language.skript:
on right click on armor stand:
    #Skript-Mirror
    if event-entity.isVisible(): #this is with skQuery's %boolean% condition, if you don't have skQuery just add "is true" at the end.

    #Skellett
    if method "isVisible" from event-entity: #as the above one, uses the skQuery's if boolean condition

    #skStuff
    if "%tag ""Invisible"" of event-entity's nbt%" is "1" or "1b":
 
Status
Not open for further replies.