Particle Rectangle (Expression) — skript-particle
Addon: skript-particle · Category: Expression · Since: 1.0.0
Syntax
[a[n]] [(solid|filled)] [xz|xy|yz] rectangle (with|of) length %number% and width %number%Description
Creates a rectangle from a length and a width, or from two corners. The length and width must be greater than 0. When defining a rectangle from two corners, the corners can either be vectors or locations/entities. You cannot use both vectors and locations/entities, but you can mix and match locations and entities. When using locations, this is a shape that can be drawn without a specific location. It will be drawn between the two given locations. Note that the rectangle defaults to the xz plane, or parallel to the ground, with x being width and z being length. You can change this to the xy or yz plane by using the 'xy' or 'yz'. In all cases, the first axis is length and the second is width.
Examples
set {_shape} to rectangle with length 10 and width 5
set {_shape} to a yz rectangle from vector(0, 0, 0) to vector(10, 10, 10)
draw the shape of a rectangle with length 10 and width 5 at player
# note that the following does not require a location to be drawn at
draw the shape of a rectangle from player to player's target