Because i'm looking it to close after it opened.ah yes, its because you set {pay.%player's uuid%} to true, then 20 ticks later you delete it
(after i cancelled that part still not working... )
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!
You can always check out skUnity Downloads for downloads and any other information about Skript!
Because i'm looking it to close after it opened.ah yes, its because you set {pay.%player's uuid%} to true, then 20 ticks later you delete 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.well you have deleted the variable, so if you click the sign the variable can't be true... because you already deleted it
let me try 100 ticks then?..that's not really a lot of time, 20 ticks is 1 second
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
that might work, that would be 5 seconds, so definitely gives you some time to click the signlet me try 100 ticks then?..
But it's still not working.that might work, that would be 5 seconds, so definitely gives you some time to click the sign
try placing the gate in different positions, those data values are strictly for 1 positionBut it's still not working.
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.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
So i'm thinking it is the problem of skript's version/addons.Ok well then I really don't know, the last code I sent, works for me, if the fence is in either direction
Can you say your addons, what version you are running and your Skript version (dont say 'latest')So i'm thinking it is the problem of skript's version/addons.