Catch Runtime Errors
- sections
- Skript 2.12
catch [run[ ]time] error[s]Catch any runtime errors produced by code within the section. This is an in progress feature.
View example
catch runtime errors:
set worldborder center of {_border} to location(0, 0, NaN value)
if last caught runtime errors contains "Your location can't have a NaN value as one of its components":
set worldborder center of {_border} to location(0, 0, 0)