Denizen Script Tags


Tags are always written with a <between these marks>, and are critical to scripts, as the primary way to read data.
Learn about how tags work in The Beginner's Guide.


Showing 1 out of 2437 tags...
Name<PolygonTag.with_corner[<location>]>
ReturnsPolygonTag
MechanismPolygonTag.add_corner
DescriptionReturns a copy of the polygon, with the specified corner added to the end of the corner list.
Example
# Notes a new polygon with a new corner added.
# If the new corner has a location of "10,66,-2", and "my_polygon" has corners "0.0,0.0", "7.0,7.0", and "-5.0,6.0",
# then "my_new_polygon" will have corners  "0.0,0.0", "7.0,7.0", "-5.0,6.0", and "10.0,-2.0".
- note <polygon[my_polygon].with_corner[10,66,-2]> as:my_new_polygon
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PolygonTag.java#L711