I've got plenty of functions in my skript code, but those that return a value are considered errors by intelliskript?
function find2BlockGap(xcoord: number,zcoord: number):: location: loop all blocks between location({_xcoord},320,{_zcoord}) and location({_xcoord},-63,{_zcoord}): block at loop-block is not solid block below loop-block is not solid block below (block below loop-block) is solid set {_return} to location of loop-block exit loop return {_return} broadcast {_return}
Thank you for reporting this!
Of course, the return value should be recognized and it should be acknowledged in expression parsing. I think atm functions always return "unknown". Will be fixing this ASAP!
I've got plenty of functions in my skript code, but those that return a value are considered errors by intelliskript?
function find2BlockGap(xcoord: number,zcoord: number):: location: loop all blocks between location({_xcoord},320,{_zcoord}) and location({_xcoord},-63,{_zcoord}): block at loop-block is not solid block below loop-block is not solid block below (block below loop-block) is solid set {_return} to location of loop-block exit loop return {_return} broadcast {_return}
If i remove the return part, everything's fine![image](https://github.com/user-attachments/assets/b70ac5a5-2922-4639-8ba4-d8f8d3e59134)