Solved Help with skript arguments reference

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

TubeVillager

Member
Jan 29, 2019
28
1
0
23
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
[doublepost=1548761490,1548761456][/doublepost]and btw its not about the right amount of tags because they are right but it just didnt paste properly
 
Code:
command /shield <player>:
    trigger:
        set {_loc} to location of block at arg 1
        set {_loc2} to location of block at arg 1
        add 1 to y-coordinate of {_loc2}
        loop all blocks in radius 3 around arg 1:
            if location of loop-block is not {_loc} or {_loc2}:
                set loop-block to glass
 
testing it...
[doublepost=1548763724,1548763574][/doublepost]IT'S WORKING, THANKS!
[doublepost=1548763755][/doublepost]it works it works it works yay xd
 
Status
Not open for further replies.