You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function getCuboid(location: location, tier: string) :: locations:
set {_size} to {data::%{_tier}%::size}
set {_x} to x-coord of {_location}
set {_z} to z-coord of {_location}
set {_min} to location({_x} - {_size}, -50, {_z} - {_size}, world of {_location})
set {_max} to location({_x} + {_size}, y-coord of {_location} + {data::%{_tier}%::height}, {_z} + {_size}, world of {_location})
return {_min} and {_max}
This function parsing time adds 15 seconds to the parsing.
Expected Behavior
Something about the location function plus adding all the coordinates makes the parser take longer than it should here.
Steps to Reproduce
paste function, and reload script
Errors or Screenshots
No response
Other
No response
Agreement
I have read the guidelines above and affirm I am following them with this report.
The text was updated successfully, but these errors were encountered:
If you want a solution, simply replacing the expression y-coord of {_location} + {data::%{_tier}%::height} with a new variable will reduce parse time by 3/4. It's a good practice to replace complex (not-so-complex here) expressions with variables to decrease parse times.
Skript/Server Version
Bug Description
This function parsing time adds 15 seconds to the parsing.
Expected Behavior
Something about the location function plus adding all the coordinates makes the parser take longer than it should here.
Steps to Reproduce
paste function, and reload script
Errors or Screenshots
No response
Other
No response
Agreement
The text was updated successfully, but these errors were encountered: