BlockOptions
One block of a set: its faces, and whether its cell is a stair, a water bed or blocked.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
blocked? |
boolean |
undefined |
A wall of the set’s colliderHeight stands on the top, as a solid tile’s does in a tile layer. |
cover? |
readonly BlockCover[] |
undefined |
What its top grows; left out, nothing. A stair or a water bed grows none. |
fringe? |
number |
0 |
Its top’s rank for a ragged edge, a whole number. Above 0, the top hangs a brim over every drop of 0.24 m or more, and spills 0.375 m onto each neighbour at the same height whose rank is lower. |
lip? |
BlockFace |
side |
The top metre of a vertical face, such as a grass band over a cliff. |
riser? |
BlockFace |
side |
A stair’s tread fronts. |
side? |
BlockFace |
top |
The vertical faces under the top. |
stairs? |
boolean |
undefined |
The cell climbs one step in four treads toward its facing. |
top |
BlockFace |
undefined |
- |
water? |
true | PixelWaterOptions |
undefined |
The top is a bed under water: the surface stands at the legend’s waterLevel, else the map’s sea, and never under 0.35 m deep. true draws the engine’s pixel water; its options set the colours, the flow, the glints and the glow, as a PixelWaterMaterial’s do. |