I'm trying to make a funny minigame but i can't use variables here? I have the latest version of skript and Skbee on 1.21.1
Code:
function getPillarlocation():
loop 3 times:
set {_x} to random integer between -50 and 50
set {_y} to random integer between 50 and 60
set {_z} to random integer between -50 and 50
set {_location} to location at {_x}, {_y}, {_z} in world "void"
set {_yFiller} to -65
set {_filler} to location at {_x}, {_yFiller}, {_z} in world "void"
while {_filler} is not {_location}:
set block at {_filler} to bedrock
set {_yFiller} to {_yFiller} + 1
set {_filler} to location at {_x},{_yFiller}, {_z} in world "void"
command /pillar <text>:
permission: op
trigger:
if arg-1 is set:
if arg-1 is "start":
getPillarlocation()