1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Armor Stand Problem

Discussion in 'Skript' started by Daskomiko, Nov 24, 2021.

  1. Daskomiko

    Daskomiko New Member

    Joined:
    Apr 23, 2021
    Messages:
    6
    Likes Received:
    0
    Hey, I have a problem: I placed an armor stand and with the following script I wanted to execute a command with it. But it doesn't work, why? Here is my code:

    Skript:
    Code (Text):
    1. on right click on a armor stand:
    2.     send "test message"
    3.     player's world = "world":
    4.         send "test message"
    5.         if name of event-entity is "&4Adventskalender":
    6.             send "test message"
    7.             cancel event
    8.             execute player command "cp advent"
    Armor Stand:
    Code (Text):
    1. /summon armor_stand ~ ~ ~ {Invulnerable:1b,NoBasePlate:1b,NoGravity:1b,ShowArms:1b,ArmorItems:[{id:"leather_boots",Count:1b,tag:{display:{color:1799437}}},{id:"leather_leggings",Count:1b,tag:{display:{color:1799437}}},{id:"leather_chestplate",Count:1b,tag:{display:{color:11015717}}},{id:"player_head",Count:1b,tag:{SkullOwner:{Id:[I;-1737552557,1684161468,-2105557318,-1694640140],Properties:{textures:[{Value:"eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvMTRlNDI0YjE2NzZmZWVjM2EzZjhlYmFkZTllN2Q2YTZmNzFmNzc1NmE4NjlmMzZmN2RmMGZjMTgyZDQzNmUifX19"}]}}}}],HandItems:[{},{}],CustomName:'{"text":"Adventskalender","color":"dark_red","bold":"true"}',CustomNameVisible:1b,Pose:{Head:[4f,0f,0f],LeftLeg:[14f,0f,0f],LeftArm:[292f,10f,0f],RightArm:[288f,341f,8f]}}
    The armor stand isn't even really recognized. Thanks for helping
     
  2. yea rite

    yea rite Member

    Joined:
    Jul 11, 2021
    Messages:
    28
    Likes Received:
    2
    you cant cancel a click event
     
  3. Daskomiko

    Daskomiko New Member

    Joined:
    Apr 23, 2021
    Messages:
    6
    Likes Received:
    0
    but even, when I remove the cancel event, it isn't working, why?
     
  4. Phuple

    Phuple Member

    Joined:
    Jun 25, 2021
    Messages:
    13
    Likes Received:
    1
    pretty sure your supposed to write
    Code (Text):
    1. make player execute command "/cp advent"
     
  5. KokoPlayzYT

    KokoPlayzYT Member

    Joined:
    Aug 6, 2021
    Messages:
    14
    Likes Received:
    0
    Code (Text):
    1. execute player command ""
    needs to come with an / in the start like
    Code (Text):
    1. execute player command "/thecommand"
    also you can't cancel a click but what you can do is to type "stop" and the event wont continue checking/doing something

    and on your amorstand code you how couple of " so skript thinks some of the text is code of you closing and opening new string value, a way to fix it is to put double " on the string, here is an example:
    not fixed:
    Code (Text):
    1. "{nbtsomething:name:"somename"}
    fixed:
    Code (Text):
    1. {nbtsomething:name:""somename""}
     
  6. Daskomiko

    Daskomiko New Member

    Joined:
    Apr 23, 2021
    Messages:
    6
    Likes Received:
    0
    ahhh nice. tank you :emoji_grinning: It is working now <3
     

Share This Page

Loading...