Denizen Script Mechanisms


Mechanisms are found in object properties, the 'adjust' command, and similar. These are used to change the state of an object.
Learn about how mechanisms work in The Beginner's Guide.


Showing 1 out of 632 mechanisms...
Nameadd_corner
ObjectPolygonTag
InputLocationTag
Related Tags<PolygonTag.with_corner[<location>]> Returns a copy of the polygon, with the specified corner added to the end of the corner list.
DescriptionAdds a corner to the end of the polygon's corner list.
Example
# Adjusts the polygon to have 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".
- adjust <polygon[my_polygon]> add_corner:10,66,-2
Sourcehttps://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/objects/PolygonTag.java#L833