Hi, I am trying to check if a block inside a region is being destroyed, I usually did that using this code and it worked perfectly:
but I wanted to use variables because I need to make it possible to be re-settable via a command in-game, I used this syntax:
where {coal} contains the name of the region, but it's just doing nothing like it's never checking into that region.
Does anyone know how to solve this?
[doublepost=1512737816,1512737072][/doublepost]I also tried using "%coal%" as described here:
but it still gives me this error:
code_language.skript:
on break:
if event-block is in the region "a":
if event-block is coal ore:
##Do something
but I wanted to use variables because I need to make it possible to be re-settable via a command in-game, I used this syntax:
code_language.skript:
on break:
if event-block is in the region {coal}:
if event-block is coal ore:
##Do something
where {coal} contains the name of the region, but it's just doing nothing like it's never checking into that region.
Does anyone know how to solve this?
[doublepost=1512737816,1512737072][/doublepost]I also tried using "%coal%" as described here:
code_language.skript:
on break:
if event-block is in the region "%{coal}%":
if event-block is coal ore:
##Do something
but it still gives me this error: