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...
Namescale
ObjectImageTag
InputMapTag
Related Tags<ImageTag.width> Returns the image's width (in pixels).
<ImageTag.height> Returns the image's height (in pixels).
DescriptionRescales an image.
The input is a ObjectType:MapTag with "width" and "height" keys.
Both are optional, and default to the image's current respective value.
Example
Rescales an image to be 50x50
- adjust def:image scale:[width=50;height=50]
Example
Makes an image taller, keeping its existing width.
- adjust def:short_image scale:[height=100]
Sourcehttps://github.com/DenizenScript/Denizen-Core/blob/master/src/main/java/com/denizenscript/denizencore/objects/core/ImageTag.java#L245