About opening a fence gate

  • 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.
well you have deleted the variable, so if you click the sign the variable can't be true... because you already deleted it
No but i want it to enable in that 20 ticks and disable after that 20 ticks. What i'm doing are within that 20 ticks.
 
that's not really a lot of time, 20 ticks is 1 second
let me try 100 ticks then?..
--
I tried only use: (but still not working.. ?)
It is possible that it's the problem of addon/version problem?

code_language.skript:
on right click on sign:
    loop blocks in radius 5 around event-block:
        if loop-block is oak fence gate:
            if the data value of loop-block is 1:
                set the data value of loop-block to 5
                stop
            if the data value of loop-block is 5:
                set the data value of loop-block to 1
                stop
 
But it's still not working.
try placing the gate in different positions, those data values are strictly for 1 position
[doublepost=1532763731,1532763578][/doublepost]or you could do this
code_language.skript:
on right click on sign:
    send "test"
    set {pay.%player's uuid%} to true
    if {pay.%player's uuid%} is true:
        loop blocks in radius 5 around event-block:
            if loop-block is oak fence gate:
                if the data value of loop-block is 1:
                    set the data value of loop-block to 5
                    stop
                if the data value of loop-block is 5:
                    set the data value of loop-block to 1
                    stop
                if the data value of loop-block is 2:
                    set the data value of loop-block to 6
                    stop
                if the data value of loop-block is 6:
                    set the data value of loop-block to 2
                    stop
 
try placing the gate in different positions, those data values are strictly for 1 position
[doublepost=1532763731,1532763578][/doublepost]or you could do this
code_language.skript:
on right click on sign:
    send "test"
    set {pay.%player's uuid%} to true
    if {pay.%player's uuid%} is true:
        loop blocks in radius 5 around event-block:
            if loop-block is oak fence gate:
                if the data value of loop-block is 1:
                    set the data value of loop-block to 5
                    stop
                if the data value of loop-block is 5:
                    set the data value of loop-block to 1
                    stop
                if the data value of loop-block is 2:
                    set the data value of loop-block to 6
                    stop
                if the data value of loop-block is 6:
                    set the data value of loop-block to 2
                    stop
I've put fences 360 degrees from me XD non of them changed.
 
Status
Not open for further replies.