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!
Does it matter what region is first? You can just use if region at ... contains ... or whatever you want to do with it. If it does matter, tell me why.It says a list with all the regions at the clicked block. It always starts with a region, but why that region? I want a specific region to be first.
maybe something like this or?When you click a certain block, it's going to (areashop) /as addfriend %player% %region at clicked block%. The problem is, when it's not the areashop region first, you're not going to be added.
If I'm going to use contains, I'm going to use a lot of work doing that.
on click:
clicked block is set
region at clicked block contains "areashop"
make player execute command "/as addfriend %player% areashop"
Something like this maybe: idkThey are named b1-200. Not sure what you mean with "variable, in which you keep all of those plots".
on click:
clicked block is set
loop region at clicked block:
loop-value parsed as "b%integer%" is set
make player execute command "/as addfriend %player% %loop-value%"
I could be wrong, but I think it shows regions based on priority... IF you are wanting to set a region to show in the list first.... then you will have to set the priorities of your region.
Also you can use the syntax for checking if region at click block contains "b"
Can you try this for me?"There's no loop that matches 'loop-value parsed as "b%integer%"
[doublepost=1537466349,1537466290][/doublepost]
And no, it's not about Priority, already tried.
on click:
clicked block is set
set {_t::*} to region at clicked block
loop {_t::*}:
loop-value parsed as "b%integer%" is set
make player execute command "/as addfriend %player% %loop-value%"
Can you send your code?"There's no loop that matches 'loop-value' execute console command /as delfriend %player %loop-value%
on right click on iron door:
if player can build at event-block:
wait 1 tick
toggle event-block
play sound "BLOCK_IRON_DOOR_OPEN" to player with volume 1 with pitch 5
else if player has permission "guard":
wait 1 tick
toggle event-block
play sound "BLOCK_IRON_DOOR_OPEN" to player with volume 1 with pitch 5
else if player has permission "officer":
wait 1 tick
toggle event-block
play sound "BLOCK_IRON_DOOR_OPEN" to player with volume 1 with pitch 5
set {_t::*} to region at clicked block
loop {_t::*}:
loop-value parsed as "b%integer%" is set
make player execute command "/as addfriend %player% %loop-value%"
set {_t::*} to region at clicked block
loop {_t::*}:
set {_lv} to "%loop-value%"
{_lv} parsed as "b%integer%" is set
make player execute command "/as addfriend %player% %loop-value%"