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!

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

Solved /do commad

Discussion in 'Requests' started by The77Gamer, Sep 2, 2022.

  1. The77Gamer

    The77Gamer Member

    Joined:
    Aug 16, 2022
    Messages:
    10
    Likes Received:
    0
    What im trying to do is something like this. If I did "/do enchant player's tool with sharpness 5" it would enchant my tool with sharpness 5
    Code (Text):
    1. command /do [<text>]:
    2.     trigger:
    3.         %arg-1%


     
  2. Best Answer:
    Post #5 by lotzy, Sep 12, 2022
  3. RoosSkywalker

    RoosSkywalker Member

    Joined:
    Jul 16, 2022
    Messages:
    15
    Likes Received:
    0
  4. The77Gamer

    The77Gamer Member

    Joined:
    Aug 16, 2022
    Messages:
    10
    Likes Received:
    0
  5. RoosSkywalker

    RoosSkywalker Member

    Joined:
    Jul 16, 2022
    Messages:
    15
    Likes Received:
    0
    Then you make another command in your script. /do will execute everything in your trigger.
    You cannot have /do do two completely different things because they are different data types.
     
  6. lotzy

    lotzy Active Member

    Joined:
    Mar 15, 2022
    Messages:
    171
    Likes Received:
    24
    with Skcrew addon or SkQuery addon or SkJade addon:
    Code (Text):
    1. command /do <text>:
    2.   trigger:
    3.     evaluate arg-1
    with Skript-reflect addon:
    Code (Text):
    1. import:
    2.   ch.njol.skript.lang.parser.ParserInstance
    3.   ch.njol.skript.lang.Effect
    4. effect evaluate %text%:
    5.   trigger:
    6.     set {_parser} to ParserInstance.get()
    7.     {_parser}.setCurrentEvent(event.getEventName(), event.getClass())
    8.     Effect.parse(expr-1, null).run(event)
    9.     {_parser}.deleteCurrentEvent()
    10.  
    11. command /do <text>:
    12.   trigger:
    13.     evaluate arg-1
     
    #5 lotzy, Sep 12, 2022
    Last edited: Sep 12, 2022

Share This Page

Loading...