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 our 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 Help with skript arguments reference

Discussion in 'Skript' started by TubeVillager, Jan 29, 2019.

Thread Status:
Not open for further replies.
  1. TubeVillager

    TubeVillager Active Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    Hey people,

    I am writing a skript for my server, to make a system with which you can trap players in a cage.
    However, it doesnt work. Can someone please help me? (The problem is that it doesnt recognice the player reference / the location of the player but i dont know what to use i tried everything and i left it here so thats why it says {<player>}, its the last thing i tried because i came here.)

    command /trap <player>:
    trigger:
    set block 1 under {<player>} to glass
    set {pos.1} to block 1 under {<player>}
    set block 1 north of {pos.1} to glass
    set {pos.2} to block 2 north of {pos.1}
    set block 1 above {pos.2} to glass
    set block 2 above {pos.2} to glass
    set block 3 above {pos.2} to glass
    set block 1 south of {pos.1} to glass
    set {pos.3} to block 2 south of {pos.1}
    set block 1 above {pos.3} to glass
    set block 2 above {pos.3} to glass
    set block 3 above {pos.3} to glass
    set block 1 west of {pos.1} to glass
    set {pos.4} to block 2 west of {pos.1}
    set block 1 above {pos.4} to glass
    set block 2 above {pos.4} to glass
    set block 3 above {pos.4} to glass
    set block 1 east of {pos.1} to glass
    set {pos.5} to block 2 east of {pos.1}
    set block 1 above {pos.5} to glass
    set block 2 above {pos.5} to glass
    set block 3 above {pos.5} to glass
    set block 1 north 1 west of {pos.1} to glass
    set block 1 north 1 east of {pos.1} to glass
    set block 1 south 1 west of {pos.1} to glass
    set block 1 south 1 east of {pos.1} to glass
    set block 2 north 1 east 1 above {pos.1} to glass
    set block 2 north 1 east 2 above {pos.1} to glass
    set block 2 north 1 east 3 above {pos.1} to glass
    set block 1 north 2 east 1 above {pos.1} to glass
    set block 1 north 2 east 2 above {pos.1} to glass
    set block 1 north 2 east 3 above {pos.1} to glass
    set block 2 north 1 west 1 above {pos.1} to glass
    set block 2 north 1 west 2 above {pos.1} to glass
    set block 2 north 1 west 3 above {pos.1} to glass
    set block 1 north 2 west 1 above {pos.1} to glass
    set block 1 north 2 west 2 above {pos.1} to glass
    set block 1 north 2 west 3 above {pos.1} to glass
    set block 2 south 1 east 1 above {pos.1} to glass
    set block 2 south 1 east 2 above {pos.1} to glass
    set block 2 south 1 east 3 above {pos.1} to glass
    set block 1 south 2 east 1 above {pos.1} to glass
    set block 1 south 2 east 2 above {pos.1} to glass
    set block 1 south 2 east 3 above {pos.1} to glass
    set block 2 south 1 west 1 above {pos.1} to glass
    set block 2 south 1 west 2 above {pos.1} to glass
    set block 2 south 1 west 3 above {pos.1} to glass
    set block 1 south 2 west 1 above {pos.1} to glass
    set block 1 south 2 west 2 above {pos.1} to glass
    set block 1 south 2 west 3 above {pos.1} to glass
    set block 4 above {pos.1} to glass
    set {pos.6} to block 4 above {pos.1}
    set block 1 north 1 east of {pos.6} to glass
    set block 1 north 1 west of {pos.6} to glass
    set block 1 south 1 east of {pos.6} to glass
    set block 1 south 1 west of {pos.6} to glass
    set block 1 north of {pos.6} to glass
    set block 1 south of {pos.6} to glass
    set block 1 east of {pos.6} to glass
    set block 1 west of {pos.6} to glass
    --- Double Post Merged, Jan 29, 2019, Original Post Date: Jan 29, 2019 ---
    and btw its not about the right amount of tags because they are right but it just didnt paste properly
     
  2. Lego_freak1999

    Joined:
    Jan 26, 2017
    Messages:
    366
    Likes Received:
    19
    Code (Text):
    1. command /shield <player>:
    2.     trigger:
    3.         set {_loc} to location of block at arg 1
    4.         set {_loc2} to location of block at arg 1
    5.         add 1 to y-coordinate of {_loc2}
    6.         loop all blocks in radius 3 around arg 1:
    7.             if location of loop-block is not {_loc} or {_loc2}:
    8.                 set loop-block to glass
    9.  
     
  3. TubeVillager

    TubeVillager Active Member

    Joined:
    Jan 29, 2019
    Messages:
    28
    Likes Received:
    1
    testing it...
    --- Double Post Merged, Jan 29, 2019, Original Post Date: Jan 29, 2019 ---
    IT'S WORKING, THANKS!
    --- Double Post Merged, Jan 29, 2019 ---
    it works it works it works yay xd
     
Thread Status:
Not open for further replies.
Loading...