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.

Help with running commands

Discussion in 'Skript' started by Antimattur, Sep 6, 2021.

Tags:
Thread Status:
Not open for further replies.
  1. Antimattur

    Antimattur Member

    Joined:
    Sep 6, 2021
    Messages:
    2
    Likes Received:
    0
    SOLVED:
    in case anyone was wondering I just had quotes around the tags section


    Script Version : 2.5.3
    Script Author: Antimattur
    Minecraft Version: 1.16.5
    Full Code:
    Code (Text):
    1. on right click:
    2.     if player is holding stick with name "wand":
    3.         set {_player} to player
    4.         make console execute "/execute at %{_player}% run summon armor_stand ^ ^ ^5 {NoGravity:1b, Silent:1b, Invulnerable:1b, Invisible:1b, Tags:["aim"]}"
    5.         if distance between location of targeted entity of player and location of player is less than 10:
    6.             set {_aim} to location of targeted entity of player
    7.             drawLine particle redstone, RGB 0, 1, 1, center player, target {_aim}, id "%player%", solid true, density 5, length 0, zigZag count 0, height 0, visibleRange 32, displacementXYZ 0, 1.2, 0, pulseDelay 1
    8.             make console execute "/kill @e[type=armor_stand,tag=aim]"
    9.              
    10. command /wand:
    11.     trigger:
    12.         give player stick with name "wand"
    13. command /aimloc:
    14.     trigger:
    15.         make console execute "/execute at %{_player}% run summon armor_stand ^ ^ ^5 {NoGravity:1b, Silent:1b, Invulnerable:1b, Invisible:1b, Tags:["aim"]}"
    Errors
    Can't understand this condition/effect: make console execute "execute at %{_player}"% run summon armor_stand ^ ^ ^5 {NoGravity:1b, Silent:1b, Invulnerable:1b, Invisible:1b, Tags:["aim"]}" (wand.sk, line 4: 'make console execute Can't understand this condition/effect: make console execute "execute at %{_player}"% run summon armor_stand ^ ^ ^5 {NoGravity:1b, Silent:1b, Invulnerable:1b, Invisible:1b, Tags:["aim"]}"')

    Other Useful Info:
    Addons using (including versions):


    SkDragon v0.17.5
    SkRayFall v1.9.25
    SkQuery v4.14
    TuSKe v1.8.2

    Troubleshooting:
    I have tried multiple versions of the "make console execute" syntax.



    Tell me if there is anything that I am forgetting to mention here or if you need more info
     
    #1 Antimattur, Sep 6, 2021
    Last edited: Sep 8, 2021
  2. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Code (Text):
    1. console command "command"
     
  3. Antimattur

    Antimattur Member

    Joined:
    Sep 6, 2021
    Messages:
    2
    Likes Received:
    0
    I still get the same error just it says it doesn't understand the effect/condition console command

    Edit: I think it has something to do with the command, because it works fine with other commands. I also tested the command and it worked when I ran it.
     
  4. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    You need to double quotes inside...
     
  5. ShyDoge

    ShyDoge Member

    Joined:
    Jul 31, 2021
    Messages:
    49
    Likes Received:
    1
    I assume the issue is that you have
    "command stuff here ["Tag Name"]}"
    Code (Text):
    1. "command stuff here ["Tag Name"]}"
    and because you have 4 quotation marks I think that (Highlighted Quotation) makes Skript end the command there.

    ["Tag Name"]}"
     
    Antimattur likes this.
Thread Status:
Not open for further replies.

Share This Page

Loading...