Structure - Template Properties (Expression) — SkBee

Addon: SkBee · Category: Expression · Since: 1.12.0

Syntax

structure mirror of %structuretemplates%

Description

Represents different properties of a structure template, including mirroring, rotation, inclusion of entities and integrity. These properties are only used for placing the structure template in a world, they are NOT saved to the structure file. Mirror determines which way the structure mirrors, either 'none', 'front back' or 'left right'. Rotation determines which way the structure is rotated, either 'none', 'clockwise 90', 'clockwise 180' or 'counterclockwise 90'. Integrity determines how damaged the building should look by randomly skipping blocks to place. This value can range from 0 to 1. With 0 removing all blocks and 1 spawning the structure in pristine condition. Include entities determines if saved entities should be spawned into the structure template (true by default). Size returns a vector offset from the starting point of the structure. This cannot be changed.

NOTE: `reset` will reset the value back to default. (added in v-2.7.2)

Examples

set structure rotation of {_s} to clockwise 90
set {_r} to structure rotation of {_s}
set {_v} to structure size of {_s}
set structure include entities of {_s} to false
set structure integrity of {_s} to 0.75
reset structure rotation of {_s}
reset structure integrity of {_s}

View source